]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/fb/ram: add interface to allocate vram as an nvkm_memory object
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:23 +0000 (13:32 +1000)
commitddbb17b3e0f5d45a9ace98fde7328598de668894
tree754c70e3173cce6eb9002fc389d2569e50b55ae7
parent3ccd70dedebeac67701ebedfa08d216fb666ed47
drm/nouveau/fb/ram: add interface to allocate vram as an nvkm_memory object

Upcoming MMU changes use nvkm_memory as its basic representation of memory,
so we need to be able to allocate VRAM like this.

The code is basically identical to the current chipset-specific allocators,
minus support for compression tags (which will be handled elsewhere anyway).

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c