diff mbox

[08/10] drm/exynos: initialize DMA ops for virtual Exynos DRM device

Message ID 1454503374-16382-9-git-send-email-m.szyprowski@samsung.com
State New
Headers show

Commit Message

Marek Szyprowski Feb. 3, 2016, 12:42 p.m. UTC
Virtual DRM device is used for memory allocation for GEM objects. On
some architectures null dma operations are assigned for virtual devices
if no explicit initialization has been made.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_drv.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 68f0f36..a33ea44 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -144,6 +144,7 @@  static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
 	init_waitqueue_head(&private->wait);
 	spin_lock_init(&private->lock);
 
+	arch_setup_dma_ops(dev->dev, 0, DMA_BIT_MASK(32), false, false);
 	dev_set_drvdata(dev->dev, dev);
 	dev->dev_private = (void *)private;