]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c
drm/nouveau/instmem/gk20a: use DMA attributes
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 20 Feb 2015 09:23:02 +0000 (18:23 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 14 Apr 2015 07:00:44 +0000 (17:00 +1000)
commit5dc240bcfe9a8d30b151be58b174261ba388cb01
tree61637f05cba373da5ae3d14674fb33179984eabf
parent14520876751e1022704b58ce08e0dadc8c736656
drm/nouveau/instmem/gk20a: use DMA attributes

instmem for GK20A is allocated using dma_alloc_coherent(), which
provides us with a coherent CPU mapping that we never use because
instmem objects are accessed through PRAMIN. Switch to
dma_alloc_attrs() which gives us the option to dismiss that CPU mapping
and free up some CPU virtual space.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c