]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/vt-d: Refactor PCI PRI enabling/disabling callbacks
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 2 Jul 2024 13:08:39 +0000 (21:08 +0800)
committerWill Deacon <will@kernel.org>
Wed, 3 Jul 2024 15:39:26 +0000 (16:39 +0100)
commit3753311c9190f833963fb47336dfe17221d93706
tree1b00d472a5f858c1634e92661905b2b499ce0cbd
parentf90584f4beb84211c4d21b319cc13f391fe9f3c2
iommu/vt-d: Refactor PCI PRI enabling/disabling callbacks

Commit 0095bf83554f8 ("iommu: Improve iopf_queue_remove_device()")
specified the flow for disabling the PRI on a device. Refactor the
PRI callbacks in the intel iommu driver to better manage PRI
enabling and disabling and align it with the device queue interfaces
in the iommu core.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240701112317.94022-3-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20240702130839.108139-8-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/pasid.c