[PATCH 0/2] media: rkvdec: Stop VDPU381 and VDPU383 cores on timeout
From: Arun Iyengar via B4 Relay
Date: Sun Nov 15 2026 - 03:21:48 EST
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.
The series applies on top of Alex Kazinsky's "media: rkvdec: Handle
interrupts without a current context" v3 [1], which touches the same
lines. For stable this needs [1] first.
Tested on an Orange Pi 5 (RK3588S) with KASAN, my pending
rockchip-iommu fixes [2] 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://lore.kernel.org/linux-media/20261113102456.4155237-1-a.kazinsky@xxxxxxxx/
[2] https://patch.msgid.link/20261110-iommu-rockchip-faults-v1-0-b1dda574dbb8@xxxxxxxxx
---
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: 48fe5a7834cc10081887d7bcd9ff0a4cadc3fa8c
change-id: 20261114-rkvdec-wdt-stop-c938297419cc
prerequisite-message-id: <20261113102456.4155237-1-a.kazinsky@xxxxxxxx>
prerequisite-patch-id: 4199405920f24e49b3993996a6bd951136e52e92
Best regards,
--
Arun Iyengar <aiyengar1990@xxxxxxxxx>