Skip to content

Commit cc64568

Browse files
lumagRob Clark
authored andcommitted
drm/msm/mdp4: stop supporting no-IOMMU configuration
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 for an MDP4 device. Fixes: 111fdd2 ("drm/msm: drm_gpuvm conversion") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/672557/ Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
1 parent 0584da4 commit cc64568

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ static int mdp4_kms_init(struct drm_device *dev)
463463
ret = PTR_ERR(mmu);
464464
goto fail;
465465
} else if (!mmu) {
466-
DRM_DEV_INFO(dev->dev, "no iommu, fallback to phys "
467-
"contig buffers for scanout\n");
468-
vm = NULL;
466+
DRM_DEV_INFO(dev->dev, "no IOMMU, bailing out\n");
467+
ret = -ENODEV;
468+
goto fail;
469469
} else {
470470
vm = msm_gem_vm_create(dev, mmu, "mdp4",
471471
0x1000, 0x100000000 - 0x1000,

0 commit comments

Comments
 (0)