drm: Add drm_gem_vram_{pin/unpin}_reserved() and convert mgag200
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 May 2019 16:27:45 +0000 (18:27 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 17 May 2019 11:12:19 +0000 (13:12 +0200)
commit82ff2fb5d184e95c7877c58359cef4f5d43df9c1
tree35f5b73a5ce1e8b1b91636ec23d58c9c959d3d69
parentf569aa9b1cc8e77327037f69ce4767b1f6bbb6a4
drm: Add drm_gem_vram_{pin/unpin}_reserved() and convert mgag200

The new interfaces drm_gem_vram_{pin/unpin}_reserved() are variants of the
GEM VRAM pin/unpin functions that do not reserve the BO during validation.
The mgag200 driver requires this behavior for its cursor handling. The
patch also converts the driver to use the new interfaces.

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