All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Cleanup around iommu_set_fault_handler()
@ 2025-11-06 20:34 ` Jason Gunthorpe
  0 siblings, 0 replies; 30+ messages in thread
From: Jason Gunthorpe @ 2025-11-06 20:34 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno, Christian Benvenuti, Heiko Stuebner,
	iommu, Jernej Skrabec, Joerg Roedel, Leon Romanovsky,
	linux-arm-kernel, linux-arm-msm, linux-mediatek, linux-rdma,
	linux-rockchip, linux-sunxi, Matthias Brugger, Nelson Escobar,
	Rob Clark, Robin Murphy, Samuel Holland, Suravee Suthikulpanit,
	Chen-Yu Tsai, Will Deacon, Yong Wu
  Cc: Lu Baolu, patches

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.

v2:
 - 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

Signed-off-by: Jason Gunthorpe <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                |  7 -------
 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(+), 21 deletions(-)


base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
-- 
2.43.0



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2025-11-20 19:35 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-06 20:34 [PATCH v2 0/3] Cleanup around iommu_set_fault_handler() Jason Gunthorpe
2025-11-06 20:34 ` Jason Gunthorpe
2025-11-06 20:34 ` [PATCH v2 1/3] RDMA/usnic: Remove iommu_set_fault_handler() Jason Gunthorpe
2025-11-06 20:34   ` Jason Gunthorpe
2025-11-17  6:37   ` Tian, Kevin
2025-11-17  6:37     ` Tian, Kevin
2025-11-06 20:34 ` [PATCH v2 2/3] iommu/amd: Don't call report_iommu_fault() Jason Gunthorpe
2025-11-06 20:34   ` Jason Gunthorpe
2025-11-08 11:17   ` Vasant Hegde
2025-11-08 11:17     ` Vasant Hegde
2025-11-18 18:57     ` Jason Gunthorpe
2025-11-18 18:57       ` Jason Gunthorpe
2025-11-17  6:38   ` Tian, Kevin
2025-11-17  6:38     ` Tian, Kevin
2025-11-18 18:58     ` Jason Gunthorpe
2025-11-18 18:58       ` Jason Gunthorpe
2025-11-18 23:58       ` Tian, Kevin
2025-11-18 23:58         ` Tian, Kevin
2025-11-20 19:35         ` Jason Gunthorpe
2025-11-20 19:35           ` Jason Gunthorpe
2025-11-06 20:34 ` [PATCH v2 3/3] iommu: Allow drivers to say if they use report_iommu_fault() Jason Gunthorpe
2025-11-06 20:34   ` Jason Gunthorpe
2025-11-08 11:20   ` Vasant Hegde
2025-11-08 11:20     ` Vasant Hegde
2025-11-17  6:43   ` Tian, Kevin
2025-11-17  6:43     ` Tian, Kevin
2025-11-18  1:30   ` Chaoyi Chen
2025-11-18  1:30     ` Chaoyi Chen
2025-11-18 19:00     ` Jason Gunthorpe
2025-11-18 19:00       ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.