dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Provide vmap/vunmap for VRAM helpers
@ 2019-07-24 11:30 Thomas Zimmermann
  2019-07-24 11:30 ` [PATCH 1/3] drm/vram: Provide vmap and vunmap operations for GEM VRAM objects Thomas Zimmermann
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas Zimmermann @ 2019-07-24 11:30 UTC (permalink / raw)
  To: daniel, kraxel, sam, airlied, yc_chen, Christian.Koenig
  Cc: Thomas Zimmermann, dri-devel

The vmap operation is pin+kmap, as already implemented for PRIME
support. The vunmap operation is the inverse. This patch set makes
both available for drivers that use VRAM helpers, and replaces the
respective code in ast and mgag200.

Thomas Zimmermann (3):
  drm/vram: Provide vmap and vunmap operations for GEM VRAM objects
  drm/ast: Use drm_gem_vram_{vmap,vunmap}() to map cursor source BO
  drm/mgag200: Use drm_gem_vram_{vmap,vunmap}() to map cursor source BO

 drivers/gpu/drm/ast/ast_mode.c           | 21 +++------
 drivers/gpu/drm/drm_gem_vram_helper.c    | 55 +++++++++++++++++++-----
 drivers/gpu/drm/mgag200/mgag200_cursor.c | 22 +++-------
 include/drm/drm_gem_vram_helper.h        | 12 ++++++
 4 files changed, 71 insertions(+), 39 deletions(-)

--
2.22.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/3] drm/vram: Provide GEM VRAM vmap()/vunmap/()
@ 2019-09-11 12:03 Thomas Zimmermann
  2019-09-11 12:03 ` [PATCH 1/3] drm/vram: Provide vmap and vunmap operations for GEM VRAM objects Thomas Zimmermann
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Zimmermann @ 2019-09-11 12:03 UTC (permalink / raw)
  To: kraxel, daniel, airlied, sam, yc_chen; +Cc: Thomas Zimmermann, dri-devel

The ast and mgag200 drivers pin() and kmap() cursor buffers; essentially
reimplementing vmap(). We can share some code by using the respective
functionality from GEM VRAM buffer objects.

Thomas Zimmermann (3):
  drm/vram: Provide vmap and vunmap operations for GEM VRAM objects
  drm/ast: Use drm_gem_vram_{vmap,vunmap}() to map cursor source BO
  drm/mgag200: Use drm_gem_vram_{vmap,vunmap}() to map cursor source BO

 drivers/gpu/drm/ast/ast_mode.c           |  21 ++---
 drivers/gpu/drm/drm_gem_vram_helper.c    | 106 ++++++++++++++++-------
 drivers/gpu/drm/mgag200/mgag200_cursor.c |  22 ++---
 include/drm/drm_gem_vram_helper.h        |   5 +-
 4 files changed, 93 insertions(+), 61 deletions(-)

--
2.23.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-09-11 12:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-24 11:30 [PATCH 0/3] Provide vmap/vunmap for VRAM helpers Thomas Zimmermann
2019-07-24 11:30 ` [PATCH 1/3] drm/vram: Provide vmap and vunmap operations for GEM VRAM objects Thomas Zimmermann
2019-07-24 12:00   ` Daniel Vetter
2019-07-24 16:55     ` Thomas Zimmermann
2019-07-24 11:30 ` [PATCH 2/3] drm/ast: Use drm_gem_vram_{vmap, vunmap}() to map cursor source BO Thomas Zimmermann
2019-07-24 11:30 ` [PATCH 3/3] drm/mgag200: " Thomas Zimmermann
  -- strict thread matches above, loose matches on Subject: below --
2019-09-11 12:03 [PATCH 0/3] drm/vram: Provide GEM VRAM vmap()/vunmap/() Thomas Zimmermann
2019-09-11 12:03 ` [PATCH 1/3] drm/vram: Provide vmap and vunmap operations for GEM VRAM objects Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox