Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 111fdd2198e6 ("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>

authored by

Dmitry Baryshkov and committed by
Rob Clark
cc64568b 0584da45

+3 -3
+3 -3
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
··· 463 463 ret = PTR_ERR(mmu); 464 464 goto fail; 465 465 } 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; 469 469 } else { 470 470 vm = msm_gem_vm_create(dev, mmu, "mdp4", 471 471 0x1000, 0x100000000 - 0x1000,