drm/msm/dpu: reserve CDM blocks for DP if mode is YUV420
authorPaloma Arellano <quic_parellan@quicinc.com>
Thu, 22 Feb 2024 19:40:03 +0000 (11:40 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 4 Mar 2024 09:38:51 +0000 (11:38 +0200)
commit984809d85007694dc119844a3ab8f2dd258822e8
treeaf3ccc2867ccef9e05e1be1a0aa41fd08954606d
parent57d6ca4c191777d5bb183762f7023ebdc63f45ce
drm/msm/dpu: reserve CDM blocks for DP if mode is YUV420

Reserve CDM blocks for DP if the mode format is YUV420. Currently this
reservation only works for writeback and DP if the format is YUV420. But
this can be easily extented to other YUV formats for DP.

Changes in v2:
- Minor code simplification

Signed-off-by: Paloma Arellano <quic_parellan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/579630/
Link: https://lore.kernel.org/r/20240222194025.25329-19-quic_parellan@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c