From patchwork Fri Aug 17 09:50:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1338251 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 E4F183FC71 for ; Fri, 17 Aug 2012 09:53:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD34CA0E2C for ; Fri, 17 Aug 2012 02:53:58 -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 2033BA0E1E for ; Fri, 17 Aug 2012 02:51:03 -0700 (PDT) Received: from epcpsbgm2.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M8W00BBS8OHZZ00@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 17 Aug 2012 18:51:01 +0900 (KST) X-AuditID: cbfee61b-b7faf6d00000476a-d1-502e14052db7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 11.6E.18282.5041E205; Fri, 17 Aug 2012 18:51:01 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.51.53]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M8W005HH8OZZTB0@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 17 Aug 2012 18:51:01 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 03/13] drm/exynos: fixed page align bug. Date: Fri, 17 Aug 2012 18:50:49 +0900 Message-id: <1345197059-25583-4-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 In-reply-to: <1345197059-25583-1-git-send-email-inki.dae@samsung.com> References: <1345197059-25583-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jQV1WEb0AgyP7+C2ufH3P5sDocb/7 OFMAYxSXTUpqTmZZapG+XQJXRteSNtaCGewVDxp9GhgnsHUxcnJICJhI/J37gwnCFpO4cG89 UJyLQ0hgOqPEpbcPWSCc9UwSe5deZgGpYhNQlZi44j5Yt4iAqUTHpKVgcWaBQomFPU/BbGEB C4mvv3+zg9gsQPU/XmxlBbF5BVwkJn/cwwixTUFiwb23YHM4BVwl7i6fDHaFEFBN4+Ye1gmM vAsYGVYxiqYWJBcUJ6XnGukVJ+YWl+al6yXn525iBPv8mfQOxlUNFocYBTgYlXh4D5TpBgix JpYVV+YeYpTgYFYS4V3xESjEm5JYWZValB9fVJqTWnyIUZqDRUmc1+s/UEogPbEkNTs1tSC1 CCbLxMEp1cDYPq+C1e1RaOsk26/LsoPVNrVL2b243v4+Q7Wt/TpP6yaXT+Z2Od7XX0Vwb5fx cN1ad3Wx0dOFX9yv/G5WuvlERvDz1IPzX1UlncjwNTkX83dKMRvr5lrun0Xnd65Jn2cky1o+ 3VhghuqexRt4qqZv/Fn3quWBfJOXuqNKyIZzs6/e2f1TsKddiaU4I9FQi7moOBEACcpZGfUB AAA= X-TM-AS-MML: No Cc: 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 do not align in page unit at dumb creation. the align is done by exynos_drm_gem_create() to be called commonly. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index da4e3ca..a38051c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -662,7 +662,7 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv, */ args->pitch = args->width * ((args->bpp + 7) / 8); - args->size = PAGE_ALIGN(args->pitch * args->height); + args->size = args->pitch * args->height; exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size); if (IS_ERR(exynos_gem_obj))