Merge tag 'drm-msm-fixes-2022-04-20' of https://gitlab.freedesktop.org/drm/msm into...
authorDave Airlie <airlied@redhat.com>
Thu, 21 Apr 2022 23:24:31 +0000 (09:24 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 21 Apr 2022 23:25:47 +0000 (09:25 +1000)
Revert to fix iommu regression.

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGtvPo4xD2peAztDMPP2n4utb7d9WQboMFwsba9E8U2rCw@mail.gmail.com
drivers/gpu/drm/msm/msm_drv.c

index 9c36b505daab93fd1f4476451985ee3dffb8d3e2..affa95eb05fcda3fe114dfcb24272de6bc22d388 100644 (file)
@@ -274,7 +274,7 @@ bool msm_use_mmu(struct drm_device *dev)
        struct msm_drm_private *priv = dev->dev_private;
 
        /* a2xx comes with its own MMU */
-       return priv->is_a2xx || device_iommu_mapped(dev->dev);
+       return priv->is_a2xx || iommu_present(&platform_bus_type);
 }
 
 static int msm_init_vram(struct drm_device *dev)