drm/vram: Provide vmap and vunmap operations for GEM VRAM objects
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 Sep 2019 12:03:50 +0000 (14:03 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Sep 2019 11:09:38 +0000 (13:09 +0200)
commitc8908bde0dbd35145f2cb6894e742aec84674af7
tree8cc2a38181da4a734a4cc2e015dc68776d5306a8
parent4d74b25ee395cb2faf615519e765f47ce5964a96
drm/vram: Provide vmap and vunmap operations for GEM VRAM objects

The implementation of vmap and vunmap for GEM VRAM helpers is
already in PRIME helpers. The patch moves the operations to separate
functions and exports them for general use.

v3:
* remove v2's obsolete note on ref-counting
v2:
* fix documentation
* add cross references to function documentation
* document (the lack of) ref-counting for GEM VRAM BO mappings

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190911120352.20084-2-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c
include/drm/drm_gem_vram_helper.h