Skip to content

drm: Add struct drm_plane_helper_funcs.atomic_enable

Thomas Zimmermann dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/atomic-helper: Add atomic_enable plane-helper callbackdrivers/gpu/drm/drm_atomic_helper.c include/drm/drm_atomic_helper.h include/drm/drm_modeset_helper_vtables.h+70 -51 reply
2/6drm/ast: Implement struct drm_plane_helper_funcs.atomic_enabledrivers/gpu/drm/ast/ast_mode.c+20 -81 reply
3/6drm/mgag200: Remove disable handling from atomic_updatedrivers/gpu/drm/mgag200/mgag200_mode.c+0 -32 replies
4/6drm/mgag200: Implement struct drm_plane_helper_funcs.atomic_enabledrivers/gpu/drm/mgag200/mgag200_drv.h drivers/gpu/drm/mgag200/mgag200_mode.c+15 -71 reply
5/6drm/tidss: Remove return values from dispc_plane_{setup, enable}()drivers/gpu/drm/tidss/tidss_dispc.c drivers/gpu/drm/tidss/tidss_dispc.h drivers/gpu/drm/tidss/tidss_plane.c+9 -222 replies
6/6drm/tidss: Implement struct drm_plane_helper_funcs.atomic_enabledrivers/gpu/drm/tidss/tidss_plane.c+11 -03 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchJavier Martinez CanillasTomi Valkeinen
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] drm: Add struct drm_plane_helper_funcs.atomic_enable

Add atomic_enable, a plane helper that enables a plane. It is supposed to be the inverse of atomic_disable.

While atomic_update can handle all of a plane's enable, disable and update functionality, many drivers also implement atomic_disable to do disabling separately. Some drivers also try to detect whether the plane gets enabled and can benefit if DRM's atomic helpers already do this. Give them the respective callback. At least in the case of ast, avoiding to enable the primary plane improves performance with some BMCs.

Tested on AST2100 hardware.

Thomas Zimmermann (6):
drm/atomic-helper: Add atomic_enable plane-helper callback drm/ast: Implement struct drm_plane_helper_funcs.atomic_enable drm/mgag200: Remove disable handling from atomic_update drm/mgag200: Implement struct drm_plane_helper_funcs.atomic_enable drm/tidss: Remove return values from dispc_plane_{setup,enable}() drm/tidss: Implement struct drm_plane_helper_funcs.atomic_enable

 drivers/gpu/drm/ast/ast_mode.c           | 28 ++++++++++++++++-------
 drivers/gpu/drm/drm_atomic_helper.c      | 20 ++++++++++++----
 drivers/gpu/drm/mgag200/mgag200_drv.h    |  3 +++
 drivers/gpu/drm/mgag200/mgag200_mode.c   | 22 ++++++++++--------
 drivers/gpu/drm/tidss/tidss_dispc.c      | 12 ++++------
 drivers/gpu/drm/tidss/tidss_dispc.h      |  8 +++----
 drivers/gpu/drm/tidss/tidss_plane.c      | 20 ++++++++--------
 include/drm/drm_atomic_helper.h          | 26 +++++++++++++++++++++
 include/drm/drm_modeset_helper_vtables.h | 29 +++++++++++++++++++++++-
 9 files changed, 124 insertions(+), 44 deletions(-)

base-commit: 1a019dd7a5d25f7c1c9b77931138290e28947e6a

Signature · 1 line
2.39.1