All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/cma-helper: Clean up public interface
@ 2021-11-15 12:01 ` Thomas Zimmermann
  0 siblings, 0 replies; 24+ messages in thread
From: Thomas Zimmermann @ 2021-11-15 12:01 UTC (permalink / raw)
  To: daniel, airlied, mripard, maarten.lankhorst, laurent.pinchart,
	kieran.bingham+renesas, emma
  Cc: dri-devel, linux-renesas-soc, Thomas Zimmermann

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


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

end of thread, other threads:[~2021-11-29 10:00 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-15 12:01 [PATCH 0/3] drm/cma-helper: Clean up public interface Thomas Zimmermann
2021-11-15 12:01 ` Thomas Zimmermann
2021-11-15 12:01 ` [PATCH 1/3] drm/cma-helper: Move driver and file ops to the end of header Thomas Zimmermann
2021-11-15 12:01   ` Thomas Zimmermann
2021-11-15 13:40   ` Laurent Pinchart
2021-11-15 13:40     ` Laurent Pinchart
2021-11-16  8:59     ` Thomas Zimmermann
2021-11-16  8:59       ` Thomas Zimmermann
2021-11-29  9:58   ` Maxime Ripard
2021-11-29  9:58     ` Maxime Ripard
2021-11-15 12:01 ` [PATCH 2/3] drm/cma-helper: Export dedicated wrappers for GEM object functions Thomas Zimmermann
2021-11-15 12:01   ` Thomas Zimmermann
2021-11-29  9:56   ` Maxime Ripard
2021-11-29  9:56     ` Maxime Ripard
2021-11-15 12:01 ` [PATCH 3/3] drm/cma-helper: Pass GEM CMA object in public interfaces Thomas Zimmermann
2021-11-15 12:01   ` Thomas Zimmermann
2021-11-15 13:50   ` Laurent Pinchart
2021-11-15 13:50     ` Laurent Pinchart
2021-11-16  9:04     ` Thomas Zimmermann
2021-11-16  9:04       ` Thomas Zimmermann
2021-11-29  9:57   ` Maxime Ripard
2021-11-29  9:57     ` Maxime Ripard
2021-11-29  9:51 ` [PATCH 0/3] drm/cma-helper: Clean up public interface Thomas Zimmermann
2021-11-29  9:51   ` Thomas Zimmermann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.