[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xen SMMU support


  • To: Anda-alexandra Dorneanu <anda-alexandra.dorneanu@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Thu, 2 Jul 2020 09:55:08 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mZT6FTPvPXzesJ3aMFCRJOZ4/2FvPq5B5HCXZElmbKg=; b=bnNx3POXsAwAQbhencXkAOjvmbmwZsQcE9wY2K8k+IXJdZEVHij4JYK5pGkHEyHhakc/RSZ44CHBb9rE7PLywgzo8Ctfx1OKpyglaswzmcTyuTKcIT4wHIPm8IGCTqSqf020PTgNkqEtwGbBo2ziqvxUVHcdRh29bVqzJCjXklVPRfOx3ZRia90nAu0csUPbgEvbgHdkQwH3etzU9ZDTv3Z6KnPt6T93T6CVPe7+VhTgVtsPyUvgmuo3GNjB8+0Fh9vHt4S8bGf/iDtHEKeY0TugmA0MlJ5yAhO/WaFr4jHO+NZZiS5ypFArXavN6LtTPLRXLARyX5uT4ukm1jpPOA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VVa4Kn3fK6F/PfqBIEt4wEQacjvCJt5/H1rQF6u7u/ZmfUFAkR4NIxG+1/QiIX+owDBgP9QFIAS62MkNJX1iDs/U6LNJP+bYD3y6fb2ZNFtpoFhNzFOc5M5hUo0eNXDpKBfikoJizRaEzIjhwmwYQAyRdOqu/oz2h8ESQmEZQ54tWUHdzyrrFD+vMusSiXIDzrwudaPtRhCHPa7Hw4dvUvxhZGzUEYZX3AO4i2Nm0zinx0w9rpim5F7zp+AHODXMFfePiFyBDrVMMvoLWx+UElNguN1CEtVX1Y6RCKR3GcH9j1i+pULuSzaS2qOxjQcr1JSoEb4LJ9wa5badyXu9VA==
  • Authentication-results-original: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=arm.com;
  • Cc: nd <nd@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 02 Jul 2020 09:56:45 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AdZQNO3LzOcPU+zARcWmSmBtyblpDgAIfBwA
  • Thread-topic: Xen SMMU support

Hi Anda

> On 2 Jul 2020, at 06:54, Anda-alexandra Dorneanu 
> <anda-alexandra.dorneanu@xxxxxxx> wrote:
> 
> Hi,
>  
> I am currently running Xen with SMMU enabled on an ARM64 platform with 4 
> Cortex-A72 cores, GICv2 and SMMUv2. There are SMMU faults when booting Dom0, 
> such as:
>  
>                 [    3.972767] mmc0: sdhci: Resp(XEN) smmu: 
> /soc/iommu@9000000: Unhandled context fault: fsr=0x402, iova=0xea060200, 
> fsynr=0x180000, cb=0  
>  
> Has someone encountered such problems and can provide some guidelines for 
> SMMU support on Dom0?

This means that the access to 0xea060200 was forbidden by the SMMU.
It also tells you that the DMA master ID of your device is handled by the SMMU 
context bank 0

So first thing to check is if 0xea060200 is a valid guest physical address in 
your Dom0.
Normally Xen should use the same page tables for the SMMU and the dom0 so if 
something is accessible by the guest it is accessible for the devices assign to 
it.
Here the device seem to properly be assigned to dom0 so maybe the driver is 
trying to hit somewhere invalid ?

Regards
Bertrand

>  
> Regards,
> Anda




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.