]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/dpu: move layout setup population out of dpu_plane_prepare_fb()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 3 Sep 2024 03:22:55 +0000 (06:22 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 21 Oct 2024 11:11:12 +0000 (14:11 +0300)
commitdc0def61a16efd7be9ce517cafffa99ac7de6eb7
tree09c1dbbad4f679a06be6662db1501def062a4059
parent4f3ec1e5e152ac2c00ee3ea82fcc2700f5e0c5cb
drm/msm/dpu: move layout setup population out of dpu_plane_prepare_fb()

Move the call to dpu_format_populate_plane_sizes() to the atomic_check
step, so that any issues with the FB layout can be reported as early as
possible.

At the same time move the call to dpu_format_populate_addrs() to
dpu_plane_sspp_atomic_update(). This way the all layout management is
performed only for the visible planes: the .prepare_fb callback is
called for not visible planes too, so keeping dpu_format_populate_addrs
in dpu_plane_prepare_fb() will require dpu_format_populate_plane_sizes()
to be called for !visible planes too.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/612251/
Link: https://lore.kernel.org/r/20240903-dpu-mode-config-width-v6-12-617e1ecc4b7a@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c