]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/msm/dpu: clear DSPP reservations in rm release
authorKalyan Thota <quic_kalyant@quicinc.com>
Mon, 13 Feb 2023 11:11:41 +0000 (03:11 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:25 +0000 (08:50 +0100)
[ Upstream commit 07f0f692e6a24bc99e710a5aa31a9f9b2a3b46d1 ]

Clear DSPP reservations from the global state during
rm release

Fixes: b6938f94391d ("drm/msm/dpu: add support for color processing blocks in dpu driver")
Signed-off-by: Kalyan Thota <quic_kalyant@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/522443/
Link: https://lore.kernel.org/r/1676286704-818-2-git-send-email-quic_kalyant@quicinc.com
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

index 7ada957adbbb8c25c5b840c7408b4b235f821441..58abf5fe97e20a4a66a22f0355e60f0c160d2b1e 100644 (file)
@@ -572,6 +572,8 @@ void dpu_rm_release(struct dpu_global_state *global_state,
                ARRAY_SIZE(global_state->ctl_to_enc_id), enc->base.id);
        _dpu_rm_clear_mapping(global_state->dsc_to_enc_id,
                ARRAY_SIZE(global_state->dsc_to_enc_id), enc->base.id);
+       _dpu_rm_clear_mapping(global_state->dspp_to_enc_id,
+               ARRAY_SIZE(global_state->dspp_to_enc_id), enc->base.id);
 }
 
 int dpu_rm_reserve(