iommu/vt-d: Move PRI handling to IOPF feature path
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 13 Apr 2023 04:06:33 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:48 +0000 (12:05 +0200)
commitfbcde5bb92bd3d299688d615dce26c59d3f63694
tree82d2fa4cd17455db7c6d8027b505102e6315a23d
parent5ae4008055fed503f7bf42aeed45d3b032a79876
iommu/vt-d: Move PRI handling to IOPF feature path

PRI is only used for IOPF. With this move, the PCI/PRI feature could be
controlled by the device driver through iommu_dev_enable/disable_feature()
interfaces.

Reviewed-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20230324120234.313643-6-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c