[PATCH v3 0/3] Cleanup around iommu_set_fault_handler()
Jason Gunthorpe
jgg at nvidia.com
Thu Nov 20 11:46:21 PST 2025
report_iommu_fault() is an older API that has been superseded by
iommu_report_device_fault() which is capable to support PRI.
Only four external drivers consume this via iommu_set_fault_handler()
drivers/remoteproc/omap_remoteproc.c
drivers/remoteproc/qcom_q6v5_adsp.c
drivers/gpu/drm/msm
drivers/infiniband/hw/usnic
Remove the use in usnic as the iommu driver logging is good enough these
days.
Remove generation support from the AMD iommu driver since msm and two
remoteproc drivers are not used on AMD x86 CPUs.
Fail iommu_set_fault_handler() if the underlying iommu driver does not
support it.
v3:
- Go back to the v1 version of the AMD, removing the print was the right
thing, explain in the commit message.
v2: https://patch.msgid.link/r/0-v2-25fc75484cab+ab-iommu_set_fault_jgg@nvidia.com
- Revise commit messages
- Move report_iommu_fault_supported into the struct iommu_ops
- Put back the pr_err in the AMD driver
v1: https://patch.msgid.link/r/0-v1-391058a85f30+14b-iommu_set_fault_jgg@nvidia.com
Jason Gunthorpe (3):
RDMA/usnic: Remove iommu_set_fault_handler()
iommu/amd: Don't call report_iommu_fault()
iommu: Allow drivers to say if they use report_iommu_fault()
drivers/infiniband/hw/usnic/usnic_uiom.c | 13 -------------
drivers/iommu/amd/iommu.c | 24 ------------------------
drivers/iommu/arm/arm-smmu/arm-smmu.c | 1 +
drivers/iommu/arm/arm-smmu/qcom_iommu.c | 1 +
drivers/iommu/iommu.c | 6 +++++-
drivers/iommu/ipmmu-vmsa.c | 1 +
drivers/iommu/mtk_iommu.c | 1 +
drivers/iommu/mtk_iommu_v1.c | 1 +
drivers/iommu/omap-iommu.c | 1 +
drivers/iommu/rockchip-iommu.c | 1 +
drivers/iommu/sun50i-iommu.c | 1 +
include/linux/iommu.h | 3 +++
12 files changed, 16 insertions(+), 38 deletions(-)
base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
--
2.43.0
More information about the linux-arm-kernel
mailing list