Skip to content

Provide vmap/vunmap for VRAM helpers

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* fix documentation
* add cross references to function documentation
* document (the lack of) ref-counting for GEM VRAM BO mappings

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/vram: Provide vmap and vunmap operations for GEM VRAM objectsdrivers/gpu/drm/drm_gem_vram_helper.c include/drm/drm_gem_vram_helper.h+66 -100 replies
2/3drm/ast: Use drm_gem_vram_{vmap, vunmap}() to map cursor source BOdrivers/gpu/drm/ast/ast_mode.c+7 -140 replies
3/3drm/mgag200: Use drm_gem_vram_{vmap, vunmap}() to map cursor source BOdrivers/gpu/drm/mgag200/mgag200_cursor.c+7 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Provide vmap/vunmap for VRAM helpers

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.

v2:
* fix documentation
* add cross references to function documentation
* document (the lack of) ref-counting for GEM VRAM BO mappings

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    | 63 ++++++++++++++++++++----
 drivers/gpu/drm/mgag200/mgag200_cursor.c | 22 +++------
 include/drm/drm_gem_vram_helper.h        | 13 +++++
 4 files changed, 80 insertions(+), 39 deletions(-)

--
2.22.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel