mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v12 0/2] drm/atomic: Ease async flip restrictions
@ 2025-01-27 19:59 André Almeida
  2025-01-27 19:59 ` [PATCH v12 1/2] drm/atomic: Let drivers decide which planes to async flip André Almeida
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: André Almeida @ 2025-01-27 19:59 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, Harry Wentland, Leo Li,
	Rodrigo Siqueira, Alex Deucher, Christian König, Xinhui Pan,
	dmitry.baryshkov, Simon Ser, joshua, Xaver Hugl, Daniel Stone,
	ville.syrjala
  Cc: kernel-dev, dri-devel, linux-kernel, amd-gfx, André Almeida,
	Christopher Snowhill

Hi,

The goal of this work is to find a nice way to allow amdgpu to perform
async page flips in the overlay plane as well, not only on the primary
one. Currently, when using the atomic uAPI, this is the only type of
plane allowed to do async flips, and every driver accepts it.

This patchset re-uses the per-plane function atomic_async_check() to
this purpose, so drivers can allow different plane types. There's a
`bool flip` parameter so the atomic_async_check() can do different
decisions if it's a complete page flip or a plane update.

igt test: https://lore.kernel.org/igt-dev/20241216202427.76168-1-andrealmeid@igalia.com/

Changelog
 v12:
  - Rebased on top of drm-next (for 6.14)

 v11: https://lore.kernel.org/r/20241212-tonyk-async_flip-v11-0-14379434be70@igalia.com
  - Fix changelog
  - Add R-b and T-b tags

 v10: https://lore.kernel.org/all/20241211-tonyk-async_flip-v10-0-6b1ff04847c2@igalia.com/
 - Add a 'flip' flag to indicate where the atomic_async_check() is being called from.

 v9: https://lore.kernel.org/all/20241101-tonyk-async_flip-v9-0-681814efbfbe@igalia.com/
 - Rebased on top of 6.12-rc1 (drm/drm-next)

 v8: https://lore.kernel.org/lkml/20240806135300.114469-1-andrealmeid@igalia.com/
 - Complete rewrite

---
André Almeida (2):
      drm/atomic: Let drivers decide which planes to async flip
      drm/amdgpu: Enable async flip on overlay planes

 .../drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c    | 10 +++---
 drivers/gpu/drm/drm_atomic_helper.c                |  2 +-
 drivers/gpu/drm/drm_atomic_uapi.c                  | 37 ++++++++++++++++------
 drivers/gpu/drm/loongson/lsdc_plane.c              |  3 +-
 drivers/gpu/drm/mediatek/mtk_plane.c               |  2 +-
 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c         |  2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c        |  2 +-
 drivers/gpu/drm/tegra/dc.c                         |  3 +-
 drivers/gpu/drm/vc4/vc4_plane.c                    |  2 +-
 include/drm/drm_modeset_helper_vtables.h           |  7 +++-
 10 files changed, 48 insertions(+), 22 deletions(-)
---
base-commit: 64179a1416e1420a34226ab3beb5f84710953d16
change-id: 20241002-tonyk-async_flip-828cfe9cf3ca

Best regards,
-- 
André Almeida <andrealmeid@igalia.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-13 22:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-27 19:59 [PATCH v12 0/2] drm/atomic: Ease async flip restrictions André Almeida
2025-01-27 19:59 ` [PATCH v12 1/2] drm/atomic: Let drivers decide which planes to async flip André Almeida
2025-01-27 19:59 ` [PATCH v12 2/2] drm/amdgpu: Enable async flip on overlay planes André Almeida
2025-01-29 14:36   ` Xaver Hugl
2025-01-29 15:53     ` André Almeida
2025-01-29 17:23       ` Xaver Hugl
2025-02-06 22:22   ` Harry Wentland
2025-02-12 14:54     ` Alex Deucher
2025-02-13 22:55 ` [PATCH v12 0/2] drm/atomic: Ease async flip restrictions Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®