]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/gem-vram: Support pinning buffers to current location
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 13 Jun 2019 07:30:33 +0000 (09:30 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 13 Jun 2019 11:36:20 +0000 (13:36 +0200)
commita6c3464f69cf5a8a31eb31cc436e7dbd325b8ff9
tree85e573a0ca427b6121b3d62fe9b4c5d150d104ac
parentbb5ce9a017b851190300bf01b73eb96fc528b6c4
drm/gem-vram: Support pinning buffers to current location

Pinning a buffer prevents it from being moved to a different memory
location. For some operations, such as buffer updates, it is not
important where the buffer is located. Setting the pin function's
pl_flag argument to 0 will pin the buffer to whereever it is stored.

v2:
* document pin flags in PRIME pin helper

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