From patchwork Thu Apr 18 05:04:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 2457501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id D26753FD8C for ; Thu, 18 Apr 2013 06:31:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DFE21E5EF1 for ; Wed, 17 Apr 2013 23:31:20 -0700 (PDT) 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 E540EE5ED3 for ; Wed, 17 Apr 2013 22:04:20 -0700 (PDT) Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MLF00G57Q28E3H0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 18 Apr 2013 14:04:18 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.112]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F4.8F.02019.2DE7F615; Thu, 18 Apr 2013 14:04:18 +0900 (KST) X-AuditID: cbfee690-b7f656d0000007e3-60-516f7ed2d0cf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 2A.62.13494.2DE7F615; Thu, 18 Apr 2013 14:04:18 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.8.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 <0MLF00L4NQ36Z220@mmp1.samsung.com>; Thu, 18 Apr 2013 14:04:18 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: do not use generic flags to dumb Date: Thu, 18 Apr 2013 14:04:17 +0900 Message-id: <1366261457-8615-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.5.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsWyRsSkQPdSXX6gwakXOha9504yWVz5+p7N YtL9CSwWL+5dZLE42/SG3WLG5JdsDmwe2789YPW4332cyaNvyyrGAOYoLpuU1JzMstQifbsE royv/UkF/RwVE+Z9ZWpg/MjWxcjJISFgIvGw/SI7hC0mceHeeqA4F4eQwFJGicsNK9lhivZO /sQCkVjEKPH9+E+oqi4midO3DjCBVLEJqEpMXHEfbKyIgKlEx6SlLCA2s0CaxPfve8EmCQvY StxdsIe1i5GDgwWo/tFfY5Awr4CzxOQ591khlilI/DqyihVkvoTAazaJ04vWMoIkWAQEJL5N PsQC0ishICux6QAzRL2kxMEVN1gmMAouYGRYxSiaWpBcUJyUXmSiV5yYW1yal66XnJ+7iREY mKf/PZuwg/HeAetDjMlA4yYyS4km5wMDO68k3tDYzMjC1MTU2Mjc0ow0YSVxXvUW60AhgfTE ktTs1NSC1KL4otKc1OJDjEwcnFINjPLTXm7uvu52fdmr/fkXjzqovVn0VUJHY6GNhNGShrUX FnrpnQ1NE0jTmM+y7/Pdw+nt0p2v+8Nlqyxs5m0yfPpT6SGfotrROkkRbU/l5FXWZwzvbMxe IO6QuaPetWXHuax3PXERXMqzjYMNPr3U+Mtw+N/prqS4d2wSh3qqQ+/OuNe3xnbCdSWW4oxE Qy3mouJEAJ7xJ/tiAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsVy+t9jAd1LdfmBBltPqVr0njvJZHHl63s2 i0n3J7BYvLh3kcXibNMbdosZk1+yObB5bP/2gNXjfvdxJo++LasYA5ijGhhtMlITU1KLFFLz kvNTMvPSbZW8g+Od403NDAx1DS0tzJUU8hJzU22VXHwCdN0yc4A2KymUJeaUAoUCEouLlfTt ME0IDXHTtYBpjND1DQmC6zEyQAMJaxgzvvYnFfRzVEyY95WpgfEjWxcjJ4eEgInE3smfWCBs MYkL99YDxbk4hAQWMUp8P/4Tyulikjh96wATSBWbgKrExBX3wbpFBEwlOiYtBetmFkiT+P59 LzuILSxgK3F3wR7WLkYODhag+kd/jUHCvALOEpPn3GeFWKYg8evIKtYJjNwLGBlWMYqmFiQX FCel5xrpFSfmFpfmpesl5+duYgSH/TPpHYyrGiwOMQpwMCrx8D5YlRcoxJpYVlyZe4hRgoNZ SYT3kWx+oBBvSmJlVWpRfnxRaU5q8SHGZKDlE5mlRJPzgTGZVxJvaGxiZmRpZG5oYWRsTpqw kjjvwVbrQCGB9MSS1OzU1ILUIpgtTBycUg2MM989+C/jkmx86eutI6v9mRZNWsDE2cE/6cqz E0IdjnsWcr8qcD3Q89p11TW735qchjkZ/HuE11mVP7qfcmPvlSfTenPnmDxreSJ8mpX1nek8 od6rJRF3Hvu/ONae1DP1zz/51aLC74QuTLnBcunz9lP5HA3Lt61xK6pvmdHocsz5SNS1Gc3L ypVYijMSDbWYi4oTAQndAia/AgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS 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 removes the use of dumb flags from driver. As Dave pointed out, the dumb flags are not driver specific so this should be removed from driver. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 0e6fe00..cf4543f 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -682,7 +682,8 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv, args->pitch = args->width * ((args->bpp + 7) / 8); args->size = args->pitch * args->height; - exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size); + exynos_gem_obj = exynos_drm_gem_create(dev, EXYNOS_BO_CONTIG | + EXYNOS_BO_WC, args->size); if (IS_ERR(exynos_gem_obj)) return PTR_ERR(exynos_gem_obj);