]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit343854f822ccaaa67827adc5f443c1f92eb2366e
tree61637f05cba373da5ae3d14674fb33179984eabf
parenteea14f0341fed8425fdd33d2fa51475060c5fc88
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