]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Replace drm_gem_vram_push_to_system() with kunmap + unpin
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 21 May 2019 11:08:29 +0000 (13:08 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 22 May 2019 10:43:29 +0000 (12:43 +0200)
commit87ccec05b46e8de2eefeb8a95bbe532b08c0cfd7
tree9838a67ed18ddb9b4d76dc9feadb9582a0d18843
parentd2da3ef6e57001abbdedda7576e33271fd0e163f
drm: Replace drm_gem_vram_push_to_system() with kunmap + unpin

The push-to-system function forces a buffer out of video RAM. This decision
should rather be made by the memory manager. By replacing the function with
calls to the kunmap and unpin functions, the buffer's memory becomes available,
but the buffer remains in VRAM until it's evicted by a pin operation.

This patch replaces the remaining instances of drm_gem_vram_push_to_system()
in ast and mgag200, and removes the function from DRM.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20190521110831.20200-2-tzimmermann@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/ast/ast_mode.c
drivers/gpu/drm/drm_gem_vram_helper.c
drivers/gpu/drm/drm_vram_helper_common.c
drivers/gpu/drm/mgag200/mgag200_mode.c
include/drm/drm_gem_vram_helper.h