Re: [PATCH v2 1/1] iommu/vt-d: Move PCI PASID enablement to probe path

From: Baolu Lu
Date: Sun Sep 01 2024 - 22:41:43 EST


On 8/19/24 1:18 PM, Lu Baolu wrote:
Currently, PCI PASID is enabled alongside PCI ATS when an iommu domain is
attached to the device and disabled when the device transitions to block
translation mode. This approach is inappropriate as PCI PASID is a device
feature independent of the type of the attached domain.

Enable PCI PASID during the IOMMU device probe and disables it during the
release path.

Suggested-by: Yi Liu<yi.l.liu@xxxxxxxxx>
Signed-off-by: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx>
Reviewed-by: Yi Liu<yi.l.liu@xxxxxxxxx>
---
drivers/iommu/intel/iommu.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)

Queued for v6.12-rc1.

Thanks,
baolu