From patchwork Wed Sep 5 10:35:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1408281 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id AF10CDF264 for ; Wed, 5 Sep 2012 10:35:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8026CA08F1 for ; Wed, 5 Sep 2012 03:35:39 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FE62A08AB for ; Wed, 5 Sep 2012 03:35:29 -0700 (PDT) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9V00JU5HEWAU30@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 05 Sep 2012 19:35:27 +0900 (KST) X-AuditID: cbfee61b-b7f056d000002c30-be-50472aef490c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E6.C9.11312.FEA27405; Wed, 05 Sep 2012 19:35:27 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.51.53]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9V003SGHF3A1B0@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Wed, 05 Sep 2012 19:35:27 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: add dummy support for dmabuf-mmap Date: Wed, 05 Sep 2012 19:35:26 +0900 Message-id: <1346841326-11994-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJMWRmVeSWpSXmKPExsVy+t9jAd33Wu4BBpefWFpc+fqezYHR4373 caYAxigum5TUnMyy1CJ9uwSujFVNt9kK9nJVNN2byNLA+Imji5GTQ0LARGLXhF0sELaYxIV7 69m6GLk4hAQWMUp8/XqRFcJZzyRxe9tTRpAqNgFViYkr7rOB2CICphIdk5aygBQxCyxklGjq ngI2SljATuLt+l4mEJsFqOHRsvvMXYwcHLwCLhJf+10htilILLj3lm0CI/cCRoZVjKKpBckF xUnpuUZ6xYm5xaV56XrJ+bmbGMFefCa9g3FVg8UhRgEORiUeXoW/bgFCrIllxZW5hxglOJiV RHhvr3YNEOJNSaysSi3Kjy8qzUktPsQozcGiJM7rdM4uQEggPbEkNTs1tSC1CCbLxMEp1cDY nN9U37Ko831Y5ZvNAW2rjSRL3Cv0/vaW2G3RLUyRfJf6/KgUy//uOcn3Y2/VWc2/wbg36+QW M6Xnp2WNfrFsbJ2S8nyR4kqhpBulwX9esqy643VqaiDz8vmOQbvjVtZv/s125TD72XSTahHz +ZPSyxZtXhbLJfv1830t+1zl92r6eXoyfLFKLMUZiYZazEXFiQBhGtdP3gEAAA== Cc: Tomasz Stanislawski , kyungmin.park@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Tomasz Stanislawski This patch adds a stub function for DMABUF mmap. This allows to export a DMABUF. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c index 613bf8a..ae13feb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c @@ -163,6 +163,12 @@ static void exynos_gem_dmabuf_kunmap(struct dma_buf *dma_buf, /* TODO */ } +static int exynos_gem_dmabuf_mmap(struct dma_buf *dma_buf, + struct vm_area_struct *vma) +{ + return -ENOTTY; +} + static struct dma_buf_ops exynos_dmabuf_ops = { .map_dma_buf = exynos_gem_map_dma_buf, .unmap_dma_buf = exynos_gem_unmap_dma_buf, @@ -170,6 +176,7 @@ static struct dma_buf_ops exynos_dmabuf_ops = { .kmap_atomic = exynos_gem_dmabuf_kmap_atomic, .kunmap = exynos_gem_dmabuf_kunmap, .kunmap_atomic = exynos_gem_dmabuf_kunmap_atomic, + .mmap = exynos_gem_dmabuf_mmap, .release = exynos_dmabuf_release, };