zoan37 <[email protected]> 於 2026年10月11日週日 上午12:43寫道: > > mtk_crtc_update_output() only picks the output component of a CRTC > with connector routes when connectors_changed is set in the commit that > enables the CRTC. But connectors_changed only says that the connectors > changed in that commit, not since the CRTC was last enabled. A connector > can be attached to (or moved to) the CRTC while it is inactive, and the > later commit that only sets ACTIVE then has active_changed but not > connectors_changed: > > - If the CRTC had never been enabled, the route slot is still NULL and > mtk_crtc_ddp_hw_init() dereferences it (mtk_ddp_comp_clk_enable() > and so on). > - If the CRTC was driven through another route before, e.g. a CRTC > shared by an HDMI bridge on DSI and a DisplayPort output that is > switched off (DPMS) while the monitor moves from one to the other, > the pipeline is set up for the old output. > > update_output() only runs from atomic_enable and the lookup is a short > loop over the routes, so do it on every enable.
With modification, applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-fixes Regards, Chun-Kuang. > > Fixes: 01389b324c97 ("drm/mediatek: Add connector dynamic selection > capability") > Assisted-by: LLM > Signed-off-by: zoan37 <[email protected]> > ---
