Tested on Orange Pi 5, HDMI 4K120 + DP 4K60, v7.3 plus local HDMI FRL and 750 MHz aclk_vop (not in mainline): 7207 bad frames in 60 s before, 0 after. With KASAN, an injected vop2_create_crtcs() failure binds on retry without a splat (the use-after-free itself was not reproduced), and with VP0 + VP2 Cluster1 defaults above VP2's primary.
This does not enforce the TRM rule Chaoyi Chen quoted (one video port's layers on one AXI port); overlay planes are unchanged. Applies with Chaoyi Chen's 8K series [1]: VP0 keeps Cluster0 and Cluster1. [1] https://lore.kernel.org/all/[email protected]/ Developed with Claude (Anthropic), which wrote the code and the commit messages. I reviewed every change. --- Changes in v2: - New patch 1: clean up after a failed vop2_create_crtcs() (Sashiko). - Patch 2: primary planes get the lowest default zpos (Sashiko). - Patch 2: commit message states overlays and VP0+VP1 boards are unchanged (Sashiko). - Patch 2: drop the Fixes tag; mainline cannot reach this load. - Link to v1: https://patch.msgid.link/[email protected] --- Arun Iyengar (2): drm/rockchip: vop2: Clean up after a failed vop2_create_crtcs() drm/rockchip: vop2: Give each RK3588 video port its own cluster drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 43 +++++++++++++++++++--------- 1 file changed, 30 insertions(+), 13 deletions(-) --- base-commit: c408466a4dfaee4b12587e926c5b85e68c8b3c40 change-id: 20261121-vop2-axi-primary-971fcba0d98e Best regards, -- Arun Iyengar <[email protected]>
