mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: rkvdec: Stop VDPU381 and VDPU383 cores on timeout
@ 2026-12-01 10:30 Arun Iyengar via B4 Relay
  2026-12-01 10:30 ` [PATCH v2 1/2] media: rkvdec: Stop the VDPU381 core " Arun Iyengar via B4 Relay
  2026-12-01 10:30 ` [PATCH v2 2/2] media: rkvdec: Stop the VDPU383 " Arun Iyengar via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-12-01 10:30 UTC (permalink / raw)
  To: Detlev Casanova, Ezequiel Garcia, Mauro Carvalho Chehab,
	Heiko Stuebner, Philipp Zabel, Nicolas Dufresne, Hans Verkuil
  Cc: linux-media, linux-rockchip, linux-arm-kernel, linux-kernel,
	Alex Kazinsky, stable, Arun Iyengar

The rkvdec watchdog writes an RK3399 register on VDPU381 and VDPU383,
so a timed-out core keeps running after its IOMMU and power domain are
suspended. On RK3588 this corrupts memory and panics.

1/2 fixes VDPU381 and is board-tested. 2/2 fixes VDPU383 and is
compile-tested only.

For stable this needs commit 7b9b0b62d7ca ("media: rkvdec: Handle
interrupts without a current context") first.

Tested on an Orange Pi 5 (RK3588S) with KASAN, my pending
rockchip-iommu fixes [1] and the watchdog cut to a few ms: unpatched
panics within 8 s; patched, 5955 timeouts with no KASAN, IOMMU or WARN
report, fluster H.264/H.265 unchanged.

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

[1] https://patch.msgid.link/20261110-iommu-rockchip-faults-v1-0-b1dda574dbb8@gmail.com

---
Changes in v2:
- Rebased on media next; prerequisite merged.
- Link to v1: https://patch.msgid.link/20261115-rkvdec-wdt-stop-v1-0-59e687c6cc63@gmail.com

---
Arun Iyengar (2):
      media: rkvdec: Stop the VDPU381 core on timeout
      media: rkvdec: Stop the VDPU383 core on timeout

 .../platform/rockchip/rkvdec/rkvdec-vdpu381-regs.h |  4 ++
 .../platform/rockchip/rkvdec/rkvdec-vdpu383-regs.h |  4 ++
 drivers/media/platform/rockchip/rkvdec/rkvdec.c    | 82 +++++++++++++++++++++-
 drivers/media/platform/rockchip/rkvdec/rkvdec.h    |  3 +
 4 files changed, 92 insertions(+), 1 deletion(-)
---
base-commit: 95c189b26efb07257888ccf9d873a5c366aafbc6
change-id: 20261114-rkvdec-wdt-stop-c938297419cc

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



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

end of thread, other threads:[~2026-12-01 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 10:30 [PATCH v2 0/2] media: rkvdec: Stop VDPU381 and VDPU383 cores on timeout Arun Iyengar via B4 Relay
2026-12-01 10:30 ` [PATCH v2 1/2] media: rkvdec: Stop the VDPU381 core " Arun Iyengar via B4 Relay
2026-12-01 10:30 ` [PATCH v2 2/2] media: rkvdec: Stop the VDPU383 " Arun Iyengar via B4 Relay

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

all inboxes | Powered by JetHome®