]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/gpu/drm/nouveau/nouveau_fbcon.c
drm/nouveau: teach nouveau_bo_pin() how to force a contig vram allocation
authorBen Skeggs <bskeggs@redhat.com>
Mon, 10 Nov 2014 01:24:27 +0000 (11:24 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:09 +0000 (15:44 +1000)
commitad76b3f7c7a0836e74ac0e316e03988ef3c43564
treea1552a72aea5ee7d08c5f83873d4b5d8e1b9724c
parentef1df1bc11fb41f1d636533e7ea8d22c850b1b10
drm/nouveau: teach nouveau_bo_pin() how to force a contig vram allocation

We have the ability to move buffers around in the kernel if necessary,
and should probably use it rather than failing if userspace passes us
a non-contig buffer for a plane.

The NOUVEAU_GEM_TILE_NONCONTIG flag from userspace will become a mere
initial placement hint once all the relevant paths have been updated.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
13 files changed:
drivers/gpu/drm/nouveau/dispnv04/crtc.c
drivers/gpu/drm/nouveau/dispnv04/overlay.c
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.h
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_display.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/nouveau/nouveau_prime.c
drivers/gpu/drm/nouveau/nv17_fence.c
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_fence.c
drivers/gpu/drm/nouveau/nv84_fence.c