[PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain helper
Shameerali Kolothum Thodi
shameerali.kolothum.thodi at huawei.com
Fri Mar 10 08:07:38 PST 2023
> -----Original Message-----
> From: Jason Gunthorpe [mailto:jgg at nvidia.com]
> Sent: 10 March 2023 15:57
> To: Shameerali Kolothum Thodi <shameerali.kolothum.thodi at huawei.com>
> Cc: Eric Auger <eric.auger at redhat.com>; Nicolin Chen
> <nicolinc at nvidia.com>; robin.murphy at arm.com; will at kernel.org;
> kevin.tian at intel.com; baolu.lu at linux.intel.com; joro at 8bytes.org;
> jean-philippe at linaro.org; linux-arm-kernel at lists.infradead.org;
> iommu at lists.linux.dev; linux-kernel at vger.kernel.org
> Subject: Re: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain
> helper
>
> On Fri, Mar 10, 2023 at 03:44:02PM +0000, Shameerali Kolothum Thodi
> wrote:
> >
> >
> > > -----Original Message-----
> > > From: Jason Gunthorpe [mailto:jgg at nvidia.com]
> > > Sent: 10 March 2023 15:33
> > > To: Eric Auger <eric.auger at redhat.com>
> > > Cc: Nicolin Chen <nicolinc at nvidia.com>; robin.murphy at arm.com;
> > > will at kernel.org; kevin.tian at intel.com; baolu.lu at linux.intel.com;
> > > joro at 8bytes.org; Shameerali Kolothum Thodi
> > > <shameerali.kolothum.thodi at huawei.com>; jean-philippe at linaro.org;
> > > linux-arm-kernel at lists.infradead.org; iommu at lists.linux.dev;
> > > linux-kernel at vger.kernel.org
> > > Subject: Re: [PATCH v1 01/14] iommu: Add
> iommu_get_unmanaged_domain
> > > helper
> > >
> > > On Fri, Mar 10, 2023 at 11:14:59AM +0100, Eric Auger wrote:
> > > > Hi Nicolin,
> > > >
> > > > On 3/9/23 11:53, Nicolin Chen wrote:
> > > > > The nature of ITS virtualization on ARM is done via hypercalls,
> > > > > so kernel handles all IOVA mappings for the MSI doorbell in
> > > > > iommu_dma_prepare_msi() and iommu_dma_compose_msi_msg().
> The
> > > current
> > > > > virtualization solution with a 2-stage nested translation setup
> > > > > is to do 1:1 IOVA mappings at stage-1
> > > > Note that if we still intend to use that trick there is a known
> > > > issue at kernel side that needs to be fixed.
> > > >
> > > > ARM DEN 0049E.b IORT specification mandates that when RMRs are
> > > > present, the OS must preserve PCIe configuration performed by the
> > > > boot FW.
> > >
> > > This limitation doesn't seem necessary for this MSI stuff?
> > >
> > > What is it for?
> >
> > That is to make sure the Stream Ids specified in RMR are still valid
> > and is not being reassigned by OS. The kernel checks for
> > this(iort_rmr_has_dev()),
> >
> https://lore.kernel.org/linux-arm-kernel/20220420164836.1181-5-shameer
> > ali.kolothum.thodi at huawei.com/
>
> So "boot configration" is more like "don't change the RIDs"? Ie don't enable
> SRIOV?
Yes. Don't think it will work with SR-IOV if you can't guarantee the RMR specified
SID.
Thanks,
Shameer
More information about the linux-arm-kernel
mailing list