From: Arun Iyengar via B4 Relay <devnull+aiyengar1990.gmail.com@kernel.org>
To: Detlev Casanova <detlev.casanova@collabora.com>,
Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Philipp Zabel <p.zabel@pengutronix.de>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Hans Verkuil <hverkuil+cisco@kernel.org>
Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Alex Kazinsky <a.kazinsky@ideco.ru>,
stable@vger.kernel.org, Arun Iyengar <aiyengar1990@gmail.com>
Subject: [PATCH v2 0/2] media: rkvdec: Stop VDPU381 and VDPU383 cores on timeout
Date: Tue, 01 Dec 2026 10:30:52 +0000 [thread overview]
Message-ID: <20261201-rkvdec-wdt-stop-v2-0-0f2662ea15e8@gmail.com> (raw)
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>
next reply other threads:[~2026-12-01 10:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:30 Arun Iyengar via B4 Relay [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201-rkvdec-wdt-stop-v2-0-0f2662ea15e8@gmail.com \
--to=devnull+aiyengar1990.gmail.com@kernel.org \
--cc=a.kazinsky@ideco.ru \
--cc=aiyengar1990@gmail.com \
--cc=detlev.casanova@collabora.com \
--cc=ezequiel@vanguardiasur.com.ar \
--cc=heiko@sntech.de \
--cc=hverkuil+cisco@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mchehab@kernel.org \
--cc=nicolas.dufresne@collabora.com \
--cc=p.zabel@pengutronix.de \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®