Hi Jiaxing, Thanks, that fills in a lot.
> 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. With rockchipdrm built in, the VOP here binds at 0.23 s, with the two stall timeouts, long before the late initcalls that switch off unused clocks and power domains (around 2.8 s). So I built plain v7.4-rc4 with DRM_ROCKCHIP=m and booted it three times on the ROCK 5B+, changing only the command line: (nothing added) no rk_iommu errors clk_ignore_unused no rk_iommu errors pd_ignore_unused two stall timeouts and a page fault at 13 s In all three the module binds the VOP about 0.5 s after the late initcalls, and the bind itself is clean. So with a module it looks like the power domain being switched off, not the clocks, is what stops the firmware window. One boot each, and all three had drm_client_lib.active= set; a built-in kernel with that option still shows the timeouts at bind. I have not seen POST_BUF_EMPTY or a bus error here, only the timeouts, plus the page fault line on plain mainline. On mainline the same pair comes back once about 13 s into the boot, which may be your "on every DRM enable". Quiescing at ExitBootServices sounds like the practical fix for now, and it is probably worth raising with the firmware project for this board too. The identity mapping would be nicer, since it keeps the picture, but that is the get_resv_regions work in rockchip-iommu, and I would rather hear from Robin or Joerg whether they want it done that way. Francesco
