Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm/disp/dpu: check for crtc enable rather than crtc active to release shared resources

According to KMS documentation, The driver must not release any shared
resources if active is set to false but enable still true.

Fixes: ccc862b957c6 ("drm/msm/dpu: Fix reservation failures in modeset")
Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/524726/
Link: https://lore.kernel.org/r/1677774797-31063-5-git-send-email-quic_vpolimer@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Vinod Polimera and committed by
Dmitry Baryshkov
b6975693 d011db30

+1 -1
+1 -1
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
··· 652 652 if (drm_atomic_crtc_needs_modeset(crtc_state)) { 653 653 dpu_rm_release(global_state, drm_enc); 654 654 655 - if (!crtc_state->active_changed || crtc_state->active) 655 + if (!crtc_state->active_changed || crtc_state->enable) 656 656 ret = dpu_rm_reserve(&dpu_kms->rm, global_state, 657 657 drm_enc, crtc_state, topology); 658 658 }