From patchwork Mon Aug 20 10:47:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 1347971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 6BFFFDFF0F for ; Mon, 20 Aug 2012 10:51:15 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T3PX2-0008Ob-Bj; Mon, 20 Aug 2012 10:48:28 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T3PWq-0008Mu-9k for linux-arm-kernel@lists.infradead.org; Mon, 20 Aug 2012 10:48:17 +0000 Received: from epcpsbgm1.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9100ATSVBV6IR0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 20 Aug 2012 19:48:15 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-34-503215ef5eb9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id C0.0E.17335.FE512305; Mon, 20 Aug 2012 19:48:15 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M91008OAVBT1S40@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 20 Aug 2012 19:48:15 +0900 (KST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 3/3] ARM: Kirkwood: increase atomic coherent pool size Date: Mon, 20 Aug 2012 12:47:28 +0200 Message-id: <1345459648-24263-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1345459648-24263-1-git-send-email-m.szyprowski@samsung.com> References: <1345459648-24263-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEJMWRmVeSWpSXmKPExsVy+t9jQd33okYBBt9uiVhsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6MWxOvMhU0c1TM2ribtYHxBlsXIyeHhICJxJJdz5kgbDGJC/fW A8W5OIQEpjNK/J21ghHC2cwk8enafRaQKjYBQ4mut11g3SICHhJPVpxjBiliFjjEJDH1+S6w UcICbhIfm66xgtgsAqoSsw8sZAaxeYEaZp44yQixTl7i6f0+oEEcHJwCnhIz1leDhIWAStY8 vsw6gZF3ASPDKkbR1ILkguKk9FxDveLE3OLSvHS95PzcTYxgnz+T2sG4ssHiEKMAB6MSD+/J 6YYBQqyJZcWVuYcYJTiYlUR4/4gYBQjxpiRWVqUW5ccXleakFh9ilOZgURLn5e8DqhZITyxJ zU5NLUgtgskycXBKNTCmSL0RTTm7+Qfzqq/u36z/PTGdWR/9J/xSLcP2Us1veV4JMmev6+o8 mFglbC49a1mYnXzfM5M/b5Z8LXZkPf59xgfdgnt/FhpzGCnwV2xy1I+QMm4rWz6Do8dh+SXd op5vvUcmzZ7z86PBPLMJRRtianu5tOctfXXLJz6Z7xab7KtXDe7T32xQYinOSDTUYi4qTgQA gCYZ3PUBAAA= X-TM-AS-MML: No X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.1 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.2 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Andrew Lunn , Russell King - ARM Linux , Jason Cooper , Arnd Bergmann , Aaro Koskinen , Josh Coombs , Kyungmin Park , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The default 256 KiB coherent pool may be too small for some of the Kirkwood devices, so increase it to make sure that devices will be able to allocate their buffers with GFP_ATOMIC flag. Suggested-by: Josh Coombs Signed-off-by: Marek Szyprowski Acked-by: Jason Cooper --- arch/arm/mach-kirkwood/common.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index c4b64ad..d748f50 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c @@ -517,6 +517,13 @@ void __init kirkwood_wdt_init(void) void __init kirkwood_init_early(void) { orion_time_set_base(TIMER_VIRT_BASE); + + /* + * Some Kirkwood devices allocate their coherent buffers from atomic + * context. Increase size of atomic coherent pool to make sure such + * the allocations won't fail. + */ + init_dma_coherent_pool_size(SZ_1M); } int kirkwood_tclk;