]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/msm: set dma_mask properly
authorRob Clark <robdclark@gmail.com>
Mon, 7 Nov 2016 18:31:30 +0000 (13:31 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 27 Nov 2016 16:35:07 +0000 (11:35 -0500)
Previous value really only made sense on armv7 without LPAE.  Everything
that supports more than 4g of memory also has iommu's that can map
anything.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c

index a2cc990bc7c241fe57f10668910a95397e0cacd4..10755a1c53b8a2a4867468f4af58129e66601e07 100644 (file)
@@ -1038,7 +1038,13 @@ static int msm_pdev_probe(struct platform_device *pdev)
        if (ret)
                return ret;
 
-       pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
+       /* on all devices that I am aware of, iommu's which can map
+        * any address the cpu can see are used:
+        */
+       ret = dma_set_mask_and_coherent(&pdev->dev, ~0);
+       if (ret)
+               return ret;
+
        return component_master_add_with_match(&pdev->dev, &msm_drm_ops, match);
 }