Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] iommu/rockchip: page fault and reset handling fixes
@ 2026-12-03  2:38 Arun Iyengar via B4 Relay
  2026-12-03  2:38 ` [PATCH v2 1/3] iommu/rockchip: Rate-limit the page fault reports Arun Iyengar via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-12-03  2:38 UTC (permalink / raw)
  To: Joerg Roedel (AMD), Will Deacon, Robin Murphy, Heiko Stuebner,
	Jeffy Chen, Tomasz Figa
  Cc: Simon Xue, iommu, linux-arm-kernel, linux-rockchip, linux-kernel,
	Arun Iyengar

Fixes for the Rockchip IOMMU, found on an Orange Pi 5 (RK3588S) with
codec jobs that fault (Hantro VEPU121 JPEG encoder, rkvdec VDPU381):
the fault reports are rate-limited, FORCE_RESET had its poll period and
timeout swapped, and the stall/paging helpers skipped a bank whose
state differed from the other bank's.

The faulting encoder job itself is recovered by the Hantro series
"media: verisilicon: Recover the Rockchip VPUs from faults and
timeouts":
https://lore.kernel.org/r/20261113-hantro-robust-v3-0-82383c722ad2@gmail.com

Tested on the same board with bad JPEG encode jobs.

Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.

Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Changes in v2:
- Drop v1 patch 1 (log_iova() on a reset IOMMU): superseded by
  b62f4603b0d5 ("iommu/rockchip: do not walk the page tables of a
  disabled MMU").
- Drop v1 patch 5 (hold the master in a fault storm): it masked the
  fault interrupt, and Sashiko found races in it; the cause is fixed in
  the Hantro series above.
- Rebase on iommu next.
- Add a Fixes tag to the bank patch (Sashiko).
- Shorter commit messages and comments.
- Link to v1: https://patch.msgid.link/20261110-iommu-rockchip-faults-v1-0-b1dda574dbb8@gmail.com

---
Arun Iyengar (3):
      iommu/rockchip: Rate-limit the page fault reports
      iommu/rockchip: Fix the poll period and timeout of FORCE_RESET
      iommu/rockchip: Don't skip a bank whose state differs from the others

 drivers/iommu/rockchip-iommu.c | 82 ++++++++++++++++++++++++++++++------------
 1 file changed, 59 insertions(+), 23 deletions(-)
---
base-commit: 052bac98639386c83fc5d6d74a645fd993855fbc
change-id: 20261110-iommu-rockchip-faults-0c1e41c33ed7

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>




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

end of thread, other threads:[~2026-12-04  8:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  2:38 [PATCH v2 0/3] iommu/rockchip: page fault and reset handling fixes Arun Iyengar via B4 Relay
2026-12-03  2:38 ` [PATCH v2 1/3] iommu/rockchip: Rate-limit the page fault reports Arun Iyengar via B4 Relay
2026-12-04  7:51   ` Joerg Roedel (AMD)
2026-12-03  2:38 ` [PATCH v2 2/3] iommu/rockchip: Fix the poll period and timeout of FORCE_RESET Arun Iyengar via B4 Relay
2026-12-03  2:38 ` [PATCH v2 3/3] iommu/rockchip: Don't skip a bank whose state differs from the others Arun Iyengar via B4 Relay
2026-12-04  8:11   ` Joerg Roedel (AMD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox