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)
commit9d0394c6bed5b4b78167cc0eea294754a9cb2bbc
tree1bb24056ddf62eaf427b981423447ce180011d94
parent7d31cb7ca47e7268478033d62ce3ad37bf509655
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