]> git.ipfire.org Git - thirdparty/linux.git/commit
iommu/vt-d: Move PCI PASID enablement to probe path
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 2 Sep 2024 02:27:19 +0000 (10:27 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 2 Sep 2024 16:14:59 +0000 (18:14 +0200)
commitccb02b27bb50c0f5a8f6fd745aecf4ac4beda73f
tree334be94af5ea6f895006e7d45811e9d9514fdbba
parent3cf74230c139f208b7fb313ae0054386eee31a81
iommu/vt-d: Move PCI PASID enablement to probe path

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@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240819051805.116936-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c