From patchwork Mon Sep 12 05:55:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 4018 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 B8D4323EFA for ; Mon, 12 Sep 2011 05:59:28 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 9EB62A1830B for ; Mon, 12 Sep 2011 05:59:28 +0000 (UTC) Received: by fxe23 with SMTP id 23so1337789fxe.11 for ; Sun, 11 Sep 2011 22:59:28 -0700 (PDT) Received: by 10.223.47.67 with SMTP id m3mr901441faf.27.1315807168456; Sun, 11 Sep 2011 22:59:28 -0700 (PDT) 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.11.8 with SMTP id m8cs90654lab; Sun, 11 Sep 2011 22:59:27 -0700 (PDT) Received: by 10.68.58.35 with SMTP id n3mr1059344pbq.377.1315807166117; Sun, 11 Sep 2011 22:59:26 -0700 (PDT) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx.google.com with ESMTPS id 1si14754589pbp.34.2011.09.11.22.59.25 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Sep 2011 22:59:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.45 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by pzk33 with SMTP id 33so7156494pzk.32 for ; Sun, 11 Sep 2011 22:59:25 -0700 (PDT) Received: by 10.68.2.196 with SMTP id 4mr192910pbw.156.1315807165312; Sun, 11 Sep 2011 22:59:25 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id i3sm32944736pbg.10.2011.09.11.22.59.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Sep 2011 22:59:24 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, linaro-dev@lists.linaro.org, patches@linaro.org, Jon Medhurst Subject: [PATCH] ARM: EXYNOS4: Setup consistent dma size at boot time Date: Mon, 12 Sep 2011 11:25:45 +0530 Message-Id: <1315806945-3102-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 Some of the boards under mach-exynos4 initialize frame-buffers for which the memory requirement is more than 2MB (Nuri board requires around 4MB, Origen requires around 2.6MB), 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. Depends on "ARM: Add init_consistent_dma_size()" by Jon Medhurst (99d1717dd7fecf2b10195b0d864323b952b4eba0). CC: Jon Medhurst Signed-off-by: Tushar Behera --- arch/arm/mach-exynos4/cpu.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/cpu.c b/arch/arm/mach-exynos4/cpu.c index 2d8a40c..45d8bfa 100644 --- a/arch/arm/mach-exynos4/cpu.c +++ b/arch/arm/mach-exynos4/cpu.c @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -136,6 +137,7 @@ static void exynos4_idle(void) void __init exynos4_map_io(void) { iotable_init(exynos4_iodesc, ARRAY_SIZE(exynos4_iodesc)); + init_consistent_dma_size(SZ_8M); /* initialize device information early */ exynos4_default_sdhci0();