]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit21fc5919a137bc2119f8e86c1bf98177e96cd7a8
tree35f5b73a5ce1e8b1b91636ec23d58c9c959d3d69
parent8019dc78d389ba021be8ab0a0947872b8f561e38
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