linux/drivers/gpu/drm/tegra
André Almeida fd40a63c63 drm/atomic: Let drivers decide which planes to async flip
Currently, DRM atomic uAPI allows only primary planes to be flipped
asynchronously. However, each driver might be able to perform async
flips in other different plane types. To enable drivers to set their own
restrictions on which type of plane they can or cannot flip, use the
existing atomic_async_check() from struct drm_plane_helper_funcs to
enhance this flexibility, thus allowing different plane types to be able
to do async flips as well.

Create a new parameter for the atomic_async_check(), `bool flip`. This
parameter is used to distinguish when this function is being called from
a plane update from a full page flip.

In order to prevent regressions and such, we keep the current policy: we
skip the driver check for the primary plane, because it is always
allowed to do async flips on it.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Christopher Snowhill <chris@kode54.net>
Tested-by: Christopher Snowhill <chris@kode54.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20250127-tonyk-async_flip-v12-1-0f7f8a8610d3@igalia.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2025-02-14 00:54:29 +02:00
..
Kconfig drm/tegra: Run DRM default client setup 2024-09-26 09:31:29 +02:00
Makefile
dc.c drm/atomic: Let drivers decide which planes to async flip 2025-02-14 00:54:29 +02:00
dc.h
dp.c
dp.h
dpaux.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
dpaux.h
drm.c drm: remove driver date from struct drm_driver and all drivers 2024-12-05 12:35:42 +02:00
drm.h drm/tegra: Run DRM default client setup 2024-09-26 09:31:29 +02:00
dsi.c drm/connector: make mode_valid take a const struct drm_display_mode 2025-01-07 12:45:19 +02:00
dsi.h
falcon.c
falcon.h
fb.c
fbdev.c drm/tegra: Run DRM default client setup 2024-09-26 09:31:29 +02:00
firewall.c
gem.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
gem.h
gr2d.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
gr2d.h
gr3d.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
gr3d.h
hda.c
hda.h
hdmi.c drm/connector: make mode_valid take a const struct drm_display_mode 2025-01-07 12:45:19 +02:00
hdmi.h
hub.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
hub.h
mipi-phy.c
mipi-phy.h
nvdec.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
output.c drm/tegra: fix potential uninitialized variable use 2024-09-05 12:40:18 +02:00
plane.c
plane.h
rgb.c
riscv.c
riscv.h
sor.c drm/connector: make mode_valid take a const struct drm_display_mode 2025-01-07 12:45:19 +02:00
sor.h
submit.c
submit.h
trace.c
trace.h
uapi.c
uapi.h
vic.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
vic.h