]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/dpu: filter out too wide modes if no 3dmux is present
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Mon, 9 Dec 2024 21:18:36 +0000 (13:18 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 15 Dec 2024 12:37:19 +0000 (14:37 +0200)
commitdbc7bb1a93f41c533fe31ddc97bdf777d7a61faa
treece621c61edfb9145a15a99597b802325fb033332
parentdc7b16a4f055f6cae65e787063cdb155d53e8080
drm/msm/dpu: filter out too wide modes if no 3dmux is present

On chipsets such as QCS615, there is no 3dmux present. In such
a case, a layer exceeding the max_mixer_width cannot be split,
hence cannot be supported.

Filter out the modes which exceed the max_mixer_width when there
is no 3dmux present. Also, add a check in the dpu_crtc_atomic_check()
to return failure for such modes.

Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Xiangxu Yin <quic_xiangxuy@quicinc.com> # QCS615
Patchwork: https://patchwork.freedesktop.org/patch/627974/
Link: https://lore.kernel.org/r/20241209-no_3dmux-v3-1-48aaa555b0d3@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c