]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/instmem/gk20a: set DMA mask early
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 25 Feb 2016 06:08:42 +0000 (15:08 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 14 Mar 2016 00:13:29 +0000 (10:13 +1000)
commitcdd6947d15623643862b1678ba075525c86c427d
tree1bb24056ddf62eaf427b981423447ce180011d94
parent853a0c288d0ca7900f15f04c66c9c731cad77167
drm/nouveau/instmem/gk20a: set DMA mask early

DMA mask is typically set in nouveau_ttm_init(), but this function is
called late during initialization and GK20A's instmem will have called
DMA functions before this happens.

Having a wrongly set DMA mask can result in the use of unneeded bounce
buffers. Set it early to avoid this.

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