[PATCH v2 0/3] iommu/rockchip: page fault and reset handling fixes

From: Arun Iyengar via B4 Relay

Date: Wed Dec 02 2026 - 21:38:11 EST


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@xxxxxxxxx

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@xxxxxxxxx>
---
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@xxxxxxxxx

---
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@xxxxxxxxx>