Re: [PATCH v2] iommufd: modify iommufd_fault_iopf_enable limitation

From: Jason Gunthorpe
Date: Thu Nov 07 2024 - 12:13:01 EST


On Thu, Nov 07, 2024 at 04:37:11AM +0000, Zhangfei Gao wrote:
> 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.
>
> Co-developed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Signed-off-by: Zhangfei Gao <zhangfei.gao@xxxxxxxxxx>
> Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> ---
> drivers/iommu/iommufd/fault.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)

Applied to iommufd thanks

Jason