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

RE: [EXT] Re: Xen SMMU support


  • To: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • From: Anda-alexandra Dorneanu <anda-alexandra.dorneanu@xxxxxxx>
  • Date: Thu, 13 Aug 2020 14:35:45 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.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=i1f2YHCorQA/qBSwkQ8xfRyWP/8ppDFplVJheTmwqNc=; b=Vfimdz7bIz7/tvMIkKfSL172dw9ZjMA5TNeByDPRu3fXLtWP7ih8A2DXrYQjQbtrfCfRTXuN5wD08nN26DBoIWwBcSg4Joun+gVK40kRVRb5ScprWeI5jWvof7ZXt7z6WEdwQCN/+ywpyFOilVivcWNrWW7fmzZ4+2ZZeGyQLZD6mk8IEZvWSdTfo4FrkcOOFgFjaU2kAzGuohl8W4SO2EjcV9ltqVwVfEZJ7Gh2R+no5D+eDjJf2MEhyI4v9ImPaL27aPDpAv3j2a/st0K36esuc9F5JZDNibD+vZ2qZSVZkPdpYWB/t8aH+TMoi/WMPVuXxlaFut8mDP5+0GcvTA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j+v/0PoeWHc3OmX/KWLVzUow1WoDesnumec3MHOXzbKUTuljiXfkhUPqY8ivx+tE6UwjwPl6hcKdOEVxhUFxbiBbF/PL6Q4Y9HYIYnJue93lL6cCntquxpQ6j1b+Ysi2fuTMJcPTYvxuCqFqf0iQkVvMYFalG3n3WOoP5hoOKHfXTAhzSMk++2rcvW3JU3uLChc2eHdNXb8YnmtzlfNs6QkO9TB2+cJrDOgOIh1moVC4tX4i7XahVP/BZP5WICrg7oLe90G2qFTjMzI0EEg+Yyi/9HP7l/d0Bi14od1zqyRHl9PsuQ2/Io58jvceqn4V91aStjGaZ5ijGcuOnogt2A==
  • Authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=nxp.com;
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>, Rahul Singh <Rahul.Singh@xxxxxxx>, Laurentiu Tudor <laurentiu.tudor@xxxxxxx>, Diana Madalina Craciun <diana.craciun@xxxxxxx>, Peng Fan <peng.fan@xxxxxxx>
  • Delivery-date: Thu, 13 Aug 2020 14:37:56 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Thread-index: AdZQNO3LzOcPU+zARcWmSmBtyblpDgAIfBwACEoComA=
  • Thread-topic: [EXT] Re: Xen SMMU support


-----Original Message-----
From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx> 
Sent: Thursday, July 2, 2020 12:55 PM
To: Anda-alexandra Dorneanu <anda-alexandra.dorneanu@xxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxxx; nd <nd@xxxxxxx>; Rahul Singh 
<Rahul.Singh@xxxxxxx>
Subject: [EXT] Re: Xen SMMU support

Caution: EXT Email

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 ?

[Anda]:  Thank you for the given suggestions. 
Turns out that it was an issue with the Xen SMMU driver. We will send a patch 
with the fix.

Regards,
Anda

Regards
Bertrand

>
> Regards,
> Anda




 


Rackspace

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