iommu/vt-d: Allow SVA with device-specific IOPF
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 13 Apr 2023 04:06:30 +0000 (12:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 10:05:46 +0000 (12:05 +0200)
commita86fb7717320bf2c05701cbcfaab5afc452d1480
treef39ef5b37d57edcd34a4af9ad4d53e4df4057fc8
parent84c9ef72b64d9bd0d8a219a75019ec4c2da77a08
iommu/vt-d: Allow SVA with device-specific IOPF

Currently enabling SVA requires IOPF support from the IOMMU and device
PCI PRI. However, some devices can handle IOPF by itself without ever
sending PCI page requests nor advertising PRI capability.

Allow SVA support with IOPF handled either by IOMMU (PCI PRI) or device
driver (device-specific IOPF). As long as IOPF could be handled, SVA
should continue to work.

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-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c