drm/vboxvideo: Use drm_gem_vram_vmap() interfaces
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 11 Sep 2020 07:59:22 +0000 (09:59 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Sep 2020 07:12:24 +0000 (09:12 +0200)
commitd88656f475d9eba9b23fa71ab59b225459776d6f
treeccfdcb8b8ea83ddbe6354a002271e685a3751f42
parent5684daa71383324bcd048bc5bc15428c5556ae5e
drm/vboxvideo: Use drm_gem_vram_vmap() interfaces

VRAM helpers support ref counting for pin and vmap operations, no need
to avoid these operations by employing the internal kmap interface. Just
use drm_gem_vram_vmap() and let it handle the details.

Also unexport the kmap interfaces from VRAM helpers. Vboxvideo was the
last user of these internal functions.

v2:
* fixed a comma in commit description

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200911075922.19317-1-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/vboxvideo/vbox_mode.c
include/drm/drm_gem_vram_helper.h