Re: [PATCH RFC v2 01/11] iommu: Add pasid_bits field in struct dev_iommu

From: Lu Baolu
Date: Wed Mar 30 2022 - 08:18:30 EST


On 2022/3/30 15:05, Tian, Kevin wrote:
From: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx>
Sent: Tuesday, March 29, 2022 1:38 PM

Use this field to save the pasid/ssid bits that a device is able to
support with its IOMMU hardware. It is a generic attribute of a device
and lifting it into the per-device dev_iommu struct makes it possible
to allocate a PASID for device without calls into the IOMMU drivers.
Any iommu driver which suports PASID related features should set this
field before features are enabled on the devices.
Miss a clarification for non-PCI SVA as discussed here:

https://lore.kernel.org/all/85d61ad6-0cf0-ac65-3312-32d0cdeb1b27@xxxxxxxxxxxxxxx/

Yes. Thanks for the reminding.

Best regards,
baolu