From patchwork Thu Dec 20 07:39:35 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: 1898691 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 3A4D0DF23A for ; Thu, 20 Dec 2012 07:39:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0365EE5C40 for ; Wed, 19 Dec 2012 23:39:49 -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 5F1F8E5C40 for ; Wed, 19 Dec 2012 23:39:35 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFB00JQ6JXMB5P0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 16:39:33 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.41]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B8.B5.12699.5B0C2D05; Thu, 20 Dec 2012 16:39:33 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-fc-50d2c0b539e8 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 68.B5.12699.5B0C2D05; Thu, 20 Dec 2012 16:39:33 +0900 (KST) Received: from localhost.localdomain ([10.90.51.68]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFB000OEJXVHV10@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 20 Dec 2012 16:39:33 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, airlied@linux.ie Subject: [PATCH 1/2] drm/exynos: fix flags in dma buf exporting Date: Thu, 20 Dec 2012 16:39:35 +0900 Message-id: <1355989175-29091-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+t8zTd2tBy4FGLzcoWxx5et7NgdGj/vd x5kCGKO4bFJSczLLUov07RK4MiZOusta0M1RcfvWZKYGxj9sXYycHBICJhLXln9jhrDFJC7c Ww8WFxJYxijxdCYHTM2lj0+YIeKLGCU+LA3pYuQCslcwSWy9DjGITUBHYv+S36wgtoiAqcTZ y9fAGpgFvCW6D18BiwsL2EusOrcJLM4ioCpx9XU3C4jNK+AmcWjKOxaIZQoSC+69BZvJKeAk Mf3JP0aIxY4Sk24cYYHoFZD4NvkQkM0BVC8rsekAM8g9EgKX2SR+HdkDNUdS4uCKGywTGIUX MDKsYhRNLUguKE5KzzXSK07MLS7NS9dLzs/dxAgJQekdjKsaLA4xCnAwKvHwLpp2KUCINbGs uDL3EKMEB7OSCO/CWxcDhHhTEiurUovy44tKc1KLDzH6AF0ykVlKNDkfGB95JfGGxgbGhoaW hmamlqYGOISVxHmbPVIChATSE0tSs1NTC1KLYMYxcXBKNTC6pq0TvPwu8pGQyudm0bamnzV8 UwX2Nq3a1n1wiVxM48uTM30eZ3c2n0mR1D9pKdDgqLdP618Nk/0eY9uutb2+Qkzy25fsSXiQ dWDWjPX1FVxb+65aJD/LaHqdsWlxZLb8uqjMc//sdIxzfSdvMud4KGRk9Hby26cyRlKWRt91 PrqweHxJOqXEUpyRaKjFXFScCADwnmiYbgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmkeLIzCtJLcpLzFFi42I5/e+xgO7WA5cCDGb/l7G48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBkTJ91lLejmqLh9azJT A+Mfti5GTg4JAROJSx+fMEPYYhIX7q0HiwsJLGKU+LA0pIuRC8hewSSx9TpEA5uAjsT+Jb9Z QWwRAVOJs5evgTUzC3hLdB++AhYXFrCXWHVuE1icRUBV4urrbhYQm1fATeLQlHcsEMsUJBbc ews2k1PASWL6k3+MEIsdJSbdOMIygZF3ASPDKkbR1ILkguKk9FwjveLE3OLSvHS95PzcTYzg EH8mvYNxVYPFIUYBDkYlHt5F0y4FCLEmlhVX5h5ilOBgVhLhXXjrYoAQb0piZVVqUX58UWlO avEhRh+gqyYyS4km5wPjL68k3tDYxMzI0sjM2MTc2BiHsJI4b7NHSoCQQHpiSWp2ampBahHM OCYOTqkGRkPdFZeKd6TY1F62EThhv+hzjoT615IjN0t9XOrcln9flfyt/5D+9uvmZid+qwkL S921WrSuJuiJeUCPxJu0iUUOx9ec8JxS9ja2vlZKLlBc+/uUQ7eC3n6os3731id3LQ/Xscy1 3TyfuO2e6N3eubn7ttXWBWuiHnZNdn+/e5HztidbQ+68dFRiKc5INNRiLipOBACqJ7ZbngIA AA== X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@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 This patch fixes flags passed to dma buf exporting. Signed-off-by: Seung-Woo Kim Signed-off-by: Kyungmin.park --- I found exynos drm also sends wrong flag for dma buf exporting. So I send this based on drm-fixes branch. drivers/gpu/drm/exynos/exynos_drm_dmabuf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c index fae1f2e..8cb8c56 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c @@ -185,7 +185,7 @@ struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev, struct exynos_drm_gem_obj *exynos_gem_obj = to_exynos_gem_obj(obj); return dma_buf_export(exynos_gem_obj, &exynos_dmabuf_ops, - exynos_gem_obj->base.size, 0600); + exynos_gem_obj->base.size, flags); } struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,