All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Common functions for GEM (v2)
@ 2011-09-12 19:21 Rob Clark
       [not found] ` <1315855286-8182-1-git-send-email-rob.clark-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Rob Clark @ 2011-09-12 19:21 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: linaro-dev-cunTk1MwBs8s++Sfvej+rw

From: Rob Clark <rob-l0cyMroinI0@public.gmane.org>

In the process of adding GEM support for omapdrm driver, I noticed that
I was adding code for creating/freeing mmap offsets which was virtually
identical to what was already duplicated in i915 and gma500 drivers.
And the code for attach/detatch_pages was quite similar as well.

Rather than duplicating the code a 3rd time, it seemed like a good idea
to move it to the GEM core.

Note that I don't actually have a way to test psb or i915, but the
changes seem straightforward enough.

v1: initial patches
v2: rebase + add common get/put_pages functions

Rob Clark (6):
  drm/gem: add functions for mmap offset creation
  drm/i915: use common functions for mmap offset creation
  drm/gma500: use common functions for mmap offset creation
  drm/gem: add functions to get/put pages
  drm/i915: use common functions for get/put pages
  drm/gma500: use common functions for get/put pages

 drivers/gpu/drm/drm_gem.c         |  156 +++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/i915_gem.c   |  136 +++-----------------------------
 drivers/staging/gma500/gem.c      |    2 +-
 drivers/staging/gma500/gem_glue.c |   61 +--------------
 drivers/staging/gma500/gem_glue.h |    1 -
 drivers/staging/gma500/gtt.c      |   47 +++--------
 include/drm/drmP.h                |    6 ++
 7 files changed, 188 insertions(+), 221 deletions(-)

-- 
1.7.5.4

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

end of thread, other threads:[~2011-09-27 13:03 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-12 19:21 [PATCH 0/6] Common functions for GEM (v2) Rob Clark
     [not found] ` <1315855286-8182-1-git-send-email-rob.clark-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-09-12 19:21   ` [PATCH 1/6] drm/gem: add functions for mmap offset creation Rob Clark
2011-09-12 19:21   ` [PATCH 2/6] drm/i915: use common " Rob Clark
2011-09-13  7:04     ` Daniel Vetter
2011-09-12 19:21   ` [PATCH 3/6] drm/gma500: " Rob Clark
2011-09-12 19:21   ` [PATCH 4/6] drm/gem: add functions to get/put pages Rob Clark
2011-09-13  0:57     ` Rob Clark
2011-09-15 22:47     ` [PATCH] " Rob Clark
2011-09-26 18:18       ` Rob Clark
2011-09-26 19:43         ` Daniel Vetter
2011-09-26 19:56           ` Rob Clark
2011-09-26 20:22             ` Daniel Vetter
2011-09-26 21:01               ` Rob Clark
2011-09-27  9:35               ` Alan Cox
2011-09-27 13:03                 ` Rob Clark
2011-09-12 19:21   ` [PATCH 5/6] drm/i915: use common functions for " Rob Clark
2011-09-13  7:05     ` Daniel Vetter
2011-09-12 19:21   ` [PATCH 6/6] drm/gma500: " Rob Clark
     [not found]     ` <1315855286-8182-7-git-send-email-rob.clark-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-09-12 20:31       ` Alan Cox
     [not found]         ` <20110912213109.3fd8f647-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2011-09-12 21:40           ` Rob Clark
     [not found]             ` <CAF6AEGva8Ggo8W+f_bfNhs8L27KHZh8a3Gro8M_s1A_p_yALFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-12 22:25               ` Alan Cox
2011-09-12 19:25   ` [PATCH 0/6] Common functions for GEM (v2) Dave Airlie

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.