Skip to content

drm/cma-helper: Clean up public interface

Thomas Zimmermann dri-devel linux-renesas-soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/cma-helper: Move driver and file ops to the end of headerinclude/drm/drm_gem_cma_helper.h+60 -543 replies
2/3drm/cma-helper: Export dedicated wrappers for GEM object functionsdrivers/gpu/drm/drm_gem_cma_helper.c drivers/gpu/drm/rcar-du/rcar_du_kms.c drivers/gpu/drm/vc4/vc4_bo.c +1 more+94 -211 reply
3/3drm/cma-helper: Pass GEM CMA object in public interfacesdrivers/gpu/drm/drm_gem_cma_helper.c drivers/gpu/drm/vc4/vc4_bo.c include/drm/drm_gem_cma_helper.h+48 -473 replies

Reviews trailers per patch

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

PatchLaurent PinchartMaxime Ripard
1/3R-b R-b
2/3R-b
3/3R-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/3] drm/cma-helper: Clean up public interface

Convert GEM CMA functions to accept struct drm_gem_cma_object, provide small wrappers for GEM object callbacks and update all users. Brings up the interface to the pattern used in SHMEM and VRAM helpers.

Converting all GEM object functions to use drm_gem_cma_object enables type checking by the C compiler. Previous callers could have passed any implementation of drm_gem_object to the GEM CMA helpers. It also removes upcasting in the GEM functions and simplifies the caller side. No functional changes.

For GEM object callbacks, the CMA helper library now provides a number of small wrappers that do the necessary upcasting. Again no functional changes.

Thomas Zimmermann (3):
drm/cma-helper: Move driver and file ops to the end of header drm/cma-helper: Export dedicated wrappers for GEM object functions drm/cma-helper: Pass GEM CMA object in public interfaces

 drivers/gpu/drm/drm_gem_cma_helper.c  |  73 +++++-----
 drivers/gpu/drm/rcar-du/rcar_du_kms.c |  10 +-
 drivers/gpu/drm/vc4/vc4_bo.c          |   8 +-
 include/drm/drm_gem_cma_helper.h      | 189 +++++++++++++++++++-------
 4 files changed, 180 insertions(+), 100 deletions(-)

base-commit: 9fccd12cfac1c863fa46d4d17c2d8ac25a44b190 --
2.33.1