From patchwork Thu Dec 20 07:39:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 1898721 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 CEEFBDF23A for ; Thu, 20 Dec 2012 07:40:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E180E5C40 for ; Wed, 19 Dec 2012 23:40:43 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 20637E5C40 for ; Wed, 19 Dec 2012 23:39:37 -0800 (PST) Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFB00C79JWW30F0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 16:39:36 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.43]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id CD.7E.01231.8B0C2D05; Thu, 20 Dec 2012 16:39:36 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-83-50d2c0b8b0e4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6D.7E.01231.8B0C2D05; Thu, 20 Dec 2012 16:39:36 +0900 (KST) Received: from localhost.localdomain ([10.90.51.68]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFB00M1GJXYM700@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 16:39:36 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, airlied@linux.ie Subject: [PATCH 2/2] drm/omap: fix flags in dma buf exporting Date: Thu, 20 Dec 2012 16:39:38 +0900 Message-id: <1355989178-29128-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 In-reply-to: <1355964669-21790-1-git-send-email-airlied@gmail.com> References: <1355964669-21790-1-git-send-email-airlied@gmail.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t8zbd0dBy4FGDzfLGZx5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4MjZNOslY8JS94tKL40wNjBfZuhg5OSQETCSerf3IDmGLSVy4 tx4ozsUhJLCMUeLzzZ1MMEVXvu0Gs4UEpjNKPNjDDVG0gkli+t6frCAJNgEdif1LfoPZIgKm EmcvX2MGsZkFDCQ+rVwKFhcWsJWY2fkfbBuLgKrEmdUHgWwODl4BN4mj3UkQuxQkFtx7C3Yc p4CTxPQn/xgh9jpKTLpxhAWiVUDi2+RDLCCtEgKyEpsOMIOcIyFwmU3i4ZVLUDdLShxccYNl AqPwAkaGVYyiqQXJBcVJ6bmGesWJucWleel6yfm5mxghISi1g3Flg8UhRgEORiUe3kXTLgUI sSaWFVfmHmKU4GBWEuFdeOtigBBvSmJlVWpRfnxRaU5q8SFGH6BLJjJLiSbnA+MjryTe0NjA 2NDQ0tDM1NLUAIewkjhvs0dKgJBAemJJanZqakFqEcw4Jg5OqQZGO4946Yzvcu/W73nrcOBr +aM+/fIanX38Mzm1arg5WSaZyjU+jS7mMdtyJ832XPtPRp5lK1juxy8O3neIYebC6PnfqvYk XVi5V9rhUP9J6U3GMaLT9h/KU1I6xH43dcrStlh1C6v1VszXTyRWSOku+SnoX+EkJK39v+3J 0pMzmXsCPop1fFysxFKckWioxVxUnAgATSiJUm4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoO6OA5cCDG7/5be48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBmbJp1kLHjKXnHpxXGm BsaLbF2MnBwSAiYSV77tZoKwxSQu3FsPFhcSmM4o8WAPdxcjF5C9gkli+t6frCAJNgEdif1L foPZIgKmEmcvX2MGsZkFDCQ+rVwKFhcWsJWY2fmfHcRmEVCVOLP6IJDNwcEr4CZxtDsJYpeC xIJ7b8F2cQo4SUx/8o8RYq+jxKQbR1gmMPIuYGRYxSiaWpBcUJyUnmuoV5yYW1yal66XnJ+7 iREc4M+kdjCubLA4xCjAwajEw7to2qUAIdbEsuLK3EOMEhzMSiK8C29dDBDiTUmsrEotyo8v Ks1JLT7E6AN01ERmKdHkfGD05ZXEGxqbmBlZGpkZm5gbG+MQVhLnbfZICRASSE8sSc1OTS1I LYIZx8TBKdXAuM6b/Vp9GufztaeVT15+snbPQvFTLLw7Hj9XMsjQYFBkbk9I06pqZTg1j2Xh Ks6OuUHJ358u2j0776KzrXryqSg/5pZ9Bklm2fVtU5ZLr49SNTxddSj5Z2h34psz3+bdi1L8 Lpn8b/71f38OrjnxPH71tvq3xafc7xy8HH637Wa8jdmz1p7b95RYijMSDbWYi4oTAZvI2fyd AgAA X-CFilter-Loop: Reflected Cc: sw0312.kim@samsung.com, rob.clark@linaro.org 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 This patch fixes flags passed to dma buf exporting. Signed-off-by: Seung-Woo Kim Cc: Rob Clark Signed-off-by: Rob Clark --- I found omap drm also sends wrong flag for dma buf exporting. So I send this based on drm-fixes branch. drivers/staging/omapdrm/omap_gem_dmabuf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/omapdrm/omap_gem_dmabuf.c b/drivers/staging/omapdrm/omap_gem_dmabuf.c index c6f3ef6..e5ffe72 100644 --- a/drivers/staging/omapdrm/omap_gem_dmabuf.c +++ b/drivers/staging/omapdrm/omap_gem_dmabuf.c @@ -194,7 +194,7 @@ struct dma_buf_ops omap_dmabuf_ops = { struct dma_buf * omap_gem_prime_export(struct drm_device *dev, struct drm_gem_object *obj, int flags) { - return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, 0600); + return dma_buf_export(obj, &omap_dmabuf_ops, obj->size, flags); } struct drm_gem_object * omap_gem_prime_import(struct drm_device *dev,