drm/meson: Reduce the FIFO lines held when AFBC is not used
authorCarlo Caione <ccaione@baylibre.com>
Mon, 19 Dec 2022 08:43:05 +0000 (09:43 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 2 Jan 2023 09:58:50 +0000 (10:58 +0100)
commit3b754ed6d1cd90017e66e5cc16f3923e4a952ffc
tree654fd7957c3d5bd7f32f91bb24d3c510f0d51aa4
parent4217c6ac817451d5116687f3cc6286220dc43d49
drm/meson: Reduce the FIFO lines held when AFBC is not used

Having a bigger number of FIFO lines held after vsync is only useful to
SoCs using AFBC to give time to the AFBC decoder to be reset, configured
and enabled again.

For SoCs not using AFBC this, on the contrary, is causing on some
displays issues and a few pixels vertical offset in the displayed image.

Conditionally increase the number of lines held after vsync only for
SoCs using AFBC, leaving the default value for all the others.

Fixes: 24e0d4058eff ("drm/meson: hold 32 lines after vsync to give time for AFBC start")
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
[narmstrong: added fixes tag]
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221216-afbc_s905x-v1-0-033bebf780d9@baylibre.com
drivers/gpu/drm/meson/meson_viu.c