From patchwork Thu Dec 1 05:50:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 5412 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A671B23E1A for ; Thu, 1 Dec 2011 05:52:22 +0000 (UTC) Received: from mail-lpp01m010-f52.google.com (mail-lpp01m010-f52.google.com [209.85.215.52]) by fiordland.canonical.com (Postfix) with ESMTP id 84F17A18322 for ; Thu, 1 Dec 2011 05:52:22 +0000 (UTC) Received: by mail-lpp01m010-f52.google.com with SMTP id h2so787073laa.11 for ; Wed, 30 Nov 2011 21:52:22 -0800 (PST) Received: by 10.152.104.1 with SMTP id ga1mr3441524lab.40.1322718742435; Wed, 30 Nov 2011 21:52:22 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs48429lal; Wed, 30 Nov 2011 21:52:22 -0800 (PST) Received: by 10.50.94.229 with SMTP id df5mr6386281igb.27.1322718740342; Wed, 30 Nov 2011 21:52:20 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id y15si1074249ibh.133.2011.11.30.21.52.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 21:52:20 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-iy0-f178.google.com with SMTP id j38so2280980iad.37 for ; Wed, 30 Nov 2011 21:52:19 -0800 (PST) Received: by 10.42.168.202 with SMTP id x10mr6502302icy.4.1322718739578; Wed, 30 Nov 2011 21:52:19 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id a2sm9221859igj.7.2011.11.30.21.52.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 21:52:19 -0800 (PST) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 1/3] ARM: EXYNOS: Increase DMA pool allocator size for framebuffer Date: Thu, 1 Dec 2011 11:20:09 +0530 Message-Id: <1322718611-20934-2-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1322718611-20934-1-git-send-email-tushar.behera@linaro.org> References: <1322718611-20934-1-git-send-email-tushar.behera@linaro.org> Some of the boards under mach-exynos initialize frame-buffers for which the memory requirement is more than 2MB, hence the default dma pool allocation size of 2MB is not sufficient. The consistent dma size is hence increased to successfully allocate memory for those boards. Signed-off-by: Tushar Behera --- arch/arm/mach-exynos/cpu.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/cpu.c b/arch/arm/mach-exynos/cpu.c index 8e09f34..d02ed16 100644 --- a/arch/arm/mach-exynos/cpu.c +++ b/arch/arm/mach-exynos/cpu.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -188,6 +189,12 @@ void __init exynos4_map_io(void) iotable_init(exynos_iodesc, ARRAY_SIZE(exynos_iodesc)); iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); + /* + * Default allocation size for ARM = 2MB + * Memory required for FB = (~ 2.4 MB) 4MB + */ + init_consistent_dma_size(SZ_2M + SZ_4M); + if (soc_is_exynos4210() && samsung_rev() == EXYNOS4210_REV_0) iotable_init(exynos4_iodesc0, ARRAY_SIZE(exynos4_iodesc0)); else