iommufd: Allow fault reporting for non-PRI PCI devices
authorZhangfei Gao <zhangfei.gao@linaro.org>
Thu, 7 Nov 2024 04:37:11 +0000 (04:37 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 7 Nov 2024 17:06:01 +0000 (13:06 -0400)
commitc9d6ee6699fd6626b0974143a72c3406276e1c65
treea97cdc25fa14154038a86e9cf842801ce5cf86f7
parent0bcceb1f51c77f6b98a7aab00847ed340bf36e35
iommufd: Allow fault reporting for non-PRI PCI devices

iommufd_fault_iopf_enable has limitation to PRI on PCI/SRIOV VFs because
the PRI might be a shared resource and current iommu subsystem is not
ready to support enabling/disabling PRI on a VF without any impact on
others.

However, we have devices that appear as PCI but are actually on the AMBA
bus. These fake PCI devices have PASID capability, support stall as well
as SRIOV, so remove the limitation for these devices.

Link: https://patch.msgid.link/r/20241107043711.116-1-zhangfei.gao@linaro.org
Co-developed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/fault.c