drm/vram-helper: Don't put new BOs into VRAM
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 22 Sep 2020 14:57:00 +0000 (16:57 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 25 Sep 2020 09:21:08 +0000 (11:21 +0200)
commit8bde6c0d4e7374fedeca959af42ad6819c792e08
tree9fde65a09e7f01311b873ce83af3d8b9a14031a5
parent4d92d7d76dd582fc1212b25a9380acc6123535cb
drm/vram-helper: Don't put new BOs into VRAM

Most drivers that use VRAM helpers have only a few MiB of framebuffer
memory available. To reduce fragmentation, new BOs are now put into
system memory by default. Only pin operations are allowed to move BOs
into VRAM.

v2:
* rebased onto latest drm-tip

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200922145700.25413-4-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_vram_helper.c