Skip to content
Commit 2ecf7c43 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Ben Skeggs
Browse files

drm/nouveau/fb/nv50: defer DMA mapping of scratch page to oneinit() hook



The 100c08 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: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ebf7655a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment