The imported dma-buf should be mapped by sub-system exporting it.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[jy0922.shim: Be backported from upstream but not posted]
Change-Id: I59984d8111f058decf83afbda4d2df2e1edf305e
#include <drm/drmP.h>
#include <drm/drm_vma_manager.h>
+#include <linux/dma-buf.h>
#include <linux/shmem_fs.h>
#include <drm/exynos_drm.h>
obj = vma->vm_private_data;
+ if (obj->import_attach)
+ return dma_buf_mmap(obj->dma_buf, vma, 0);
+
return exynos_drm_gem_mmap_obj(obj, vma);
}