From: Jiaxing Hu <gahing@gahingwoo.com>
To: Francesco Saverio Pavone <pavone.lawyer@gmail.com>
Cc: Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Heiko Stuebner <heiko@sntech.de>,
Sandy Huang <hjc@rock-chips.com>, Andy Yan <andyshrk@163.com>,
Chaoyi Chen <chaoyi.chen@rock-chips.com>,
Damon Ding <damon.ding@rock-chips.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Lucas Tanure <tanure@linux.com>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Cristian Ciocaltea <cristian.ciocaltea@collabora.com>,
iommu@lists.linux.dev, dri-devel@lists.freedesktop.org,
linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: rk3588: VOP IOMMU faults at boot while the firmware window is on
Date: Sun, 29 Nov 2026 23:04:36 +1300 [thread overview]
Message-ID: <20261129100436.290926-1-gahing@gahingwoo.com> (raw)
In-Reply-To: <16FDB47B-9986-417E-B081-89A381BE9411@gmail.com>
Hi Francesco,
I am seeing the same behavior on RK3576 with my EDK2 port
(edk2-rk3576, https://github.com/gahingwoo/edk2-rk3576). When booting
Armbian 7.3.4-edge (with rockchipdrm built in) on a TaishanPi 3M, the
firmware hands over control while Esmart0 on VP0 is still scanning out
the HDMI framebuffer at 0xff190000. Shortly after the VOP binds, when
it is first enabled, the kernel logs:
rk_iommu 27d07e00.iommu: Enable stall request timed out, status: 0x00040b
rk_iommu 27d07e00.iommu: Enable stall request timed out, status: 0x00001d
rockchip-drm display-subsystem: [drm] *ERROR* POST_BUF_EMPTY irq err at vp0
This happened in 2 out of 3 HDMI boots where the VOP managed to bind.
The 0x40b status matches your 0x30b (just with bus ID 0x10), meaning
paging is enabled with an active page fault. On a DSI boot before my
fix, the same pair of timeouts came on every DRM enable, and later a
BUS_ERROR.
To work around this on the DSI path, I added a quirk at
ExitBootServices when booting Linux: it turns off the window, puts the
VP into standby, and waits for DSP_HOLD_VALID. Essentially, it is your
experiment implemented in the firmware. Across 32 DSI Linux boots since
that change, I haven't seen a single rk_iommu error. Take that with a
grain of salt, though, as most of those runs only captured partial
serial logs. The HDMI path still hands over a live window for now, and
I plan to quiesce it the same way.
Regarding my IOMMU patch from Nov 23 [1]: that originated from an
RK3576 NPU issue, where one bank kept paging after a core reset while
the other didn't, causing the all-banks guards to skip the stall and
breaking the force reset. You're right that it doesn't help here when
both banks are paging.
One data point from the OS side: my Windows display driver takes over
the live window without tearing it down first. It avoids faulting by
identity-mapping the firmware framebuffer in the VOP IOMMU right before
enabling paging. Getting that seamless handover on Linux would need
something like get_resv_regions in rockchip-iommu, so that
iommu-addresses on the framebuffer node is honored. Quiescing in
firmware works today without kernel changes, at the cost of blanking
the screen until KMS sets a mode.
A CM5-IO running Fedora (where rockchipdrm is built as a module) showed
none of these faults across 16 boots in September (7.3.0-rc3-next). I
suspect clk_disable_unused gates the VOP clocks before the module gets
a chance to load, though I haven't verified that yet.
Thanks,
Jiaxing
[1] https://lore.kernel.org/all/20261123235154.315460-1-gahing@gahingwoo.com/
prev parent reply other threads:[~2026-11-29 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 9:38 rk3588: VOP IOMMU faults at boot while the firmware window is on Francesco Saverio Pavone
2026-11-29 10:04 ` Jiaxing Hu [this message]
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=20261129100436.290926-1-gahing@gahingwoo.com \
--to=gahing@gahingwoo.com \
--cc=andyshrk@163.com \
--cc=chaoyi.chen@rock-chips.com \
--cc=cristian.ciocaltea@collabora.com \
--cc=damon.ding@rock-chips.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=iommu@lists.linux.dev \
--cc=jagan@amarulasolutions.com \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=pavone.lawyer@gmail.com \
--cc=robin.murphy@arm.com \
--cc=sebastian.reichel@collabora.com \
--cc=tanure@linux.com \
--cc=will@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