All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] DRM: Remove gem_init_object() and friends
@ 2013-08-14 13:07 David Herrmann
  2013-08-14 13:07 ` [PATCH 1/7] drm/ast: remove unused driver_private access David Herrmann
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: David Herrmann @ 2013-08-14 13:07 UTC (permalink / raw)
  To: dri-devel

Hi

This series removes any access to gem_obj->driver_private from all drivers and
then drops drm_gem_object_alloc() with its ->gem_init_object() driver callback.

All this is only needed if a gem object is not embedded into the driver's bo.
However, all drivers (except for nouveau, see patch #6) embed the objects. No
need to allow dynamic allocations, anymore.

Patches #1 to #5 are trivial and only remove dead code. Patch #6 converts
nouveau to embed gem objects into nouveau_bo. I tested this on my nv50 and it
runs fine. Patch #7 drops gem_init_object() from all drivers as it is unused and
the callbacks are all empty (or BUG()).

And the diff-stat looks pretty nice, too.

Cheers
David

David Herrmann (7):
  drm/ast: remove unused driver_private access
  drm/mgag200: remove unused driver_private access
  drm/cirrus: remove unused driver_private access
  drm/qxl: remove unused object_pin/unpin() helpers
  drm/radeon: remove stale gem->driver_private access
  drm/nouveau: embed gem object in nouveau_bo
  drm: kill ->gem_init_object() and friends

 drivers/gpu/drm/ast/ast_drv.c             |  1 -
 drivers/gpu/drm/ast/ast_drv.h             |  1 -
 drivers/gpu/drm/ast/ast_main.c            |  6 -----
 drivers/gpu/drm/ast/ast_ttm.c             |  1 -
 drivers/gpu/drm/cirrus/cirrus_drv.c       |  1 -
 drivers/gpu/drm/cirrus/cirrus_drv.h       |  1 -
 drivers/gpu/drm/cirrus/cirrus_main.c      |  6 -----
 drivers/gpu/drm/cirrus/cirrus_ttm.c       |  1 -
 drivers/gpu/drm/drm_gem.c                 | 29 ---------------------
 drivers/gpu/drm/exynos/exynos_drm_drv.c   |  1 -
 drivers/gpu/drm/exynos/exynos_drm_gem.c   |  5 ----
 drivers/gpu/drm/exynos/exynos_drm_gem.h   |  3 ---
 drivers/gpu/drm/gma500/gem.c              |  5 ----
 drivers/gpu/drm/gma500/psb_drv.c          |  1 -
 drivers/gpu/drm/gma500/psb_drv.h          |  1 -
 drivers/gpu/drm/i915/i915_drv.c           |  1 -
 drivers/gpu/drm/i915/i915_drv.h           |  1 -
 drivers/gpu/drm/i915/i915_gem.c           |  7 ------
 drivers/gpu/drm/mgag200/mgag200_drv.c     |  1 -
 drivers/gpu/drm/mgag200/mgag200_drv.h     |  1 -
 drivers/gpu/drm/mgag200/mgag200_main.c    |  6 -----
 drivers/gpu/drm/mgag200/mgag200_ttm.c     |  1 -
 drivers/gpu/drm/nouveau/nouveau_abi16.c   |  4 +--
 drivers/gpu/drm/nouveau/nouveau_bo.c      |  2 +-
 drivers/gpu/drm/nouveau/nouveau_bo.h      |  5 +++-
 drivers/gpu/drm/nouveau/nouveau_display.c | 10 ++++----
 drivers/gpu/drm/nouveau/nouveau_drm.c     |  1 -
 drivers/gpu/drm/nouveau/nouveau_fbcon.c   |  2 +-
 drivers/gpu/drm/nouveau/nouveau_gem.c     | 42 +++++++++++++------------------
 drivers/gpu/drm/nouveau/nouveau_gem.h     |  3 +--
 drivers/gpu/drm/nouveau/nouveau_prime.c   | 10 +++++---
 drivers/gpu/drm/omapdrm/omap_drv.c        |  1 -
 drivers/gpu/drm/omapdrm/omap_drv.h        |  1 -
 drivers/gpu/drm/omapdrm/omap_gem.c        |  5 ----
 drivers/gpu/drm/qxl/qxl_drv.c             |  1 -
 drivers/gpu/drm/qxl/qxl_drv.h             |  4 ---
 drivers/gpu/drm/qxl/qxl_gem.c             | 32 -----------------------
 drivers/gpu/drm/qxl/qxl_object.c          |  1 -
 drivers/gpu/drm/radeon/radeon_drv.c       |  2 --
 drivers/gpu/drm/radeon/radeon_gem.c       |  7 ------
 drivers/gpu/drm/radeon/radeon_object.c    |  1 -
 drivers/gpu/drm/radeon/radeon_prime.c     |  1 -
 drivers/gpu/drm/udl/udl_drv.c             |  1 -
 drivers/gpu/drm/udl/udl_drv.h             |  1 -
 drivers/gpu/drm/udl/udl_gem.c             |  7 ------
 include/drm/drmP.h                        |  5 ----
 46 files changed, 37 insertions(+), 193 deletions(-)

-- 
1.8.3.4

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

end of thread, other threads:[~2013-09-23 23:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 13:07 [PATCH 0/7] DRM: Remove gem_init_object() and friends David Herrmann
2013-08-14 13:07 ` [PATCH 1/7] drm/ast: remove unused driver_private access David Herrmann
2013-08-14 13:07 ` [PATCH 2/7] drm/mgag200: " David Herrmann
2013-08-14 13:07 ` [PATCH 3/7] drm/cirrus: " David Herrmann
2013-08-14 13:07 ` [PATCH 4/7] drm/qxl: remove unused object_pin/unpin() helpers David Herrmann
2013-08-14 13:07 ` [PATCH 5/7] drm/radeon: remove stale gem->driver_private access David Herrmann
2013-08-14 13:23   ` Alex Deucher
2013-08-14 13:07 ` [PATCH 6/7] drm/nouveau: embed gem object in nouveau_bo David Herrmann
2013-08-14 14:31   ` Maarten Lankhorst
2013-08-15 12:32     ` David Herrmann
2013-08-15 12:44       ` Daniel Vetter
2013-08-15 13:09         ` Maarten Lankhorst
2013-09-23 23:15   ` Ben Skeggs
2013-08-14 13:07 ` [PATCH 7/7] drm: kill ->gem_init_object() and friends David Herrmann
2013-08-14 13:27 ` [PATCH 0/7] DRM: Remove gem_init_object() " Daniel Vetter

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.