rk3588: VOP IOMMU faults at boot while the firmware window is on
Jiaxing Hu
gahing at gahingwoo.com
Sun Nov 29 02:04:36 PST 2026
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/
More information about the Linux-rockchip
mailing list