]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/fb/gf100: defer DMA mapping of scratch page to oneinit() hook
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 6 Oct 2016 15:49:29 +0000 (16:49 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Oct 2016 07:29:33 +0000 (17:29 +1000)
commitce395f79e4448eb098144661bffbe177c5cffc69
tree63ec8f421f3dea3b0a29291dc8f6a9863f5e5cf5
parent6e7fa73269920c1e71b715e4cb00f6532077b068
drm/nouveau/fb/gf100: defer DMA mapping of scratch page to oneinit() hook

The 100c10 scratch page is mapped using dma_map_page() before the TTM
layer has had a chance to set the DMA mask. This means we are still
running with the default of 32 when this code executes, and this causes
problems for platforms with no memory below 4 GB (such as AMD Seattle)

So move the dma_map_page() to the .oneinit hook, which executes after the
DMA mask has been set.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c