From patchwork Mon Aug 20 12:35:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1348221 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 674A13FC33 for ; Mon, 20 Aug 2012 12:38:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F4DB9E97E for ; Mon, 20 Aug 2012 05:38:44 -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 A7CF89E74D for ; Mon, 20 Aug 2012 05:35:58 -0700 (PDT) Received: from epcpsbgm1.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 <0M92003S50BWVCU0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 20 Aug 2012 21:35:57 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-8d-50322f2def06 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A6.A4.17335.D2F22305; Mon, 20 Aug 2012 21:35:57 +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 <0M9200B9O0BWMOD0@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Mon, 20 Aug 2012 21:35:57 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 03/10] drm/exynos: fixed page align bug. Date: Mon, 20 Aug 2012 21:35:48 +0900 Message-id: <1345466155-9154-4-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 In-reply-to: <1345466155-9154-1-git-send-email-inki.dae@samsung.com> References: <1345466155-9154-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jQV1dfaMAg/09ChZXvr5nc2D0uN99 nCmAMYrLJiU1J7MstUjfLoEro2tJG2vBDPaKB40+DYwT2LoYOTkkBEwkFi//ww5hi0lcuLce KM7FISQwnVHi8vbpLBDOeiaJU3t3MIFUsQmoSkxccR+sW0TAVKJj0lIWEJtZoFBiYc9TIJuD Q1jAQmLfTD+QMAtQ+acFj1hBbF4BZ4kJF2AWK0gsuPcWzOYUcJFYfecdWI0QUM3PC/vYJzDy LmBkWMUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kR7PFnUjsYVzZYHGIU4GBU4uE9Od0wQIg1 say4MvcQowQHs5II7x8RowAh3pTEyqrUovz4otKc1OJDjNIcLErivPx9QNUC6YklqdmpqQWp RTBZJg5OqQbGBTzbzn15JORhcpNlie0n72murKb+7r8uNU+RUEs9POfV5Isra6TSL0aFf0ub z3ne3+7ZYRXLvdL2XmabfprtfR6YfPzaIoY+bruFzYkPagqi/ky+b7jTetO2tOU2zccfXrlx 4eWayb844xpcNT6WNKhuUUzX2sRpVHPzYa7lhcJpK6TnhZhMU2Ipzkg01GIuKk4EADko9Vz0 AQAA 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))