summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-10-06 16:49:28 +0100
committerBen Skeggs <bskeggs@redhat.com>2016-10-12 17:29:32 +1000
commit38f5359354d487f2492a3cdec862682c8b15e216 (patch)
treec4385738b8a844e1676d356c992fb54cb8a169f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
parentbbe1f94a8b3f2e8622dd400a6827d3242005d951 (diff)
downloadlinux-38f5359354d487f2492a3cdec862682c8b15e216.tar.bz2
drm/nouveau/pci: set streaming DMA mask early
Some subdevices (i.e., fb/nv50.c and fb/gf100.c) map a scratch page using dma_map_page() way before the TTM layer has had a chance to set the DMA mask. This may prevent the driver from loading at all on platforms whose system memory is not covered by the default DMA mask of 32-bit (i.e., when all RAM is above 4 GB). So set a preliminary DMA mask right after constructing the PCI device, and base it on the .dma_bits member of the MMU subdevice, which is what the TTM layer will base the DMA mask on as well. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c')
0 files changed, 0 insertions, 0 deletions