]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/ttm: set the DMA mask for platform devices
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 4 Sep 2015 10:59:34 +0000 (19:59 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Nov 2015 05:02:18 +0000 (15:02 +1000)
commit7407681bab3effd0b9f27903d9fcb78125f8d765
treed8006c111a78a3d14eb798b28465bfaceafa968a
parente46ca662db973a07778e62fd0b0e2120e6ac5175
drm/nouveau/ttm: set the DMA mask for platform devices

So far the DMA mask was not set for platform devices, which limited them
to a 32-bit physical space. Allow dma_set_mask() to be called for
non-PCI devices, and also take the IOMMU bit into account since it could
restrict the physically addressable space.

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