From c1ddcee7e73b2242ed2a85cc5f41cc51cbebae67 Mon Sep 17 00:00:00 2001 From: "Sihyun, Park" Date: Mon, 12 Apr 2021 15:38:35 +0900 Subject: [PATCH] amlogic: drm: mmap a dmabuf imported from another driver Change-Id: Iff7d5c204bbffac22e528840f264f669cae21d96 Signed-off-by: Sihyun, Park Signed-off-by: Seung-Woo Kim --- drivers/amlogic/drm/meson_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/drm/meson_gem.c b/drivers/amlogic/drm/meson_gem.c index fba2bb7..7c472e3 100644 --- a/drivers/amlogic/drm/meson_gem.c +++ b/drivers/amlogic/drm/meson_gem.c @@ -160,7 +160,7 @@ int am_meson_gem_object_mmap( vma->vm_pgoff = 0; if (obj->base.import_attach) { - DRM_ERROR("Not support import buffer from other driver.\n"); + return dma_buf_mmap(obj->base.dma_buf, vma, 0); } else { buffer = obj->handle->buffer; -- 2.7.4