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)
commitb31cf78b93243f8ff64297c1f77a4d030c32ca56
treed8006c111a78a3d14eb798b28465bfaceafa968a
parent524883bb48464ed76bd635819989284a249bf917
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