diff options
| -rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_iommu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.c b/drivers/gpu/drm/exynos/exynos_drm_iommu.c index 1e82529e0c41..36dde9691274 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_iommu.c +++ b/drivers/gpu/drm/exynos/exynos_drm_iommu.c | |||
| @@ -97,6 +97,11 @@ int drm_iommu_attach_device(struct drm_device *drm_dev, | |||
| 97 | if (!priv->mapping) | 97 | if (!priv->mapping) |
| 98 | return 0; | 98 | return 0; |
| 99 | 99 | ||
| 100 | if (get_dma_ops(priv->dma_dev) != get_dma_ops(subdrv_dev)) { | ||
| 101 | DRM_ERROR("Device %s lacks support for IOMMU\n", | ||
| 102 | dev_name(subdrv_dev)); | ||
| 103 | return -EINVAL; | ||
| 104 | } | ||
| 100 | 105 | ||
| 101 | ret = configure_dma_max_seg_size(subdrv_dev); | 106 | ret = configure_dma_max_seg_size(subdrv_dev); |
| 102 | if (ret) | 107 | if (ret) |
