On 10/24/26 1:25 AM, Dmitry Baryshkov wrote:
> dpu_encoder_virt_atomic_mode_set() only updates cur_master->hw_cdm for a
> writeback with a job or for DP, so a modeset of a writeback without a job
> keeps the CDM of the previous reservation, which the crtc may no longer
> own. dpu_encoder_helper_phys_cleanup() later unbinds that CDM from its
> pingpong and flushes it, changing a block which may by then belong to
> another display.
>
> Store NULL when no CDM is assigned.
>
> Fixes: 8b45a26f2ba9 ("drm/msm/dpu: reserve cdm blocks for writeback in case
> of YUV output")
> Assisted-by: LLM
> Signed-off-by: Dmitry Baryshkov <[email protected]>
> ---
Reviewed-by: Konrad Dybcio <[email protected]>
Konrad