]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/msm: stop supporting no-IOMMU configuration
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 3 Sep 2025 10:51:50 +0000 (13:51 +0300)
committerRob Clark <robin.clark@oss.qualcomm.com>
Mon, 8 Sep 2025 14:24:58 +0000 (07:24 -0700)
With the switch to GPUVM the msm driver no longer supports the no-IOMMU
configurations (even without the actual GPU). Return an error in case we
face the lack of the IOMMU.

Fixes: 111fdd2198e6 ("drm/msm: drm_gpuvm conversion")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/672559/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/msm_kms.c

index 56828d218e88a5fa597755c8ea20da781929386c..4c4dcb095c4df97de42d0673aa2842010a249dca 100644 (file)
@@ -195,14 +195,13 @@ struct drm_gpuvm *msm_kms_init_vm(struct drm_device *dev)
                iommu_dev = mdp_dev;
        else
                iommu_dev = mdss_dev;
-
        mmu = msm_iommu_disp_new(iommu_dev, 0);
        if (IS_ERR(mmu))
                return ERR_CAST(mmu);
 
        if (!mmu) {
-               drm_info(dev, "no IOMMU, fallback to phys contig buffers for scanout\n");
-               return NULL;
+               drm_info(dev, "no IOMMU, bailing out\n");
+               return ERR_PTR(-ENODEV);
        }
 
        vm = msm_gem_vm_create(dev, mmu, "mdp_kms",