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: 10799 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 3BBA823F70 for ; Mon, 20 Aug 2012 10:48:51 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7C236A1872F for ; Mon, 20 Aug 2012 10:48:45 +0000 (UTC) Received: by ggmi2 with SMTP id i2so5180440ggm.11 for ; Mon, 20 Aug 2012 03:48:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:cc:subject:x-beenthere :x-mailman-version:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=YGxpw1bEruD2KQNDJ5AXSNP+vPrrAsyVOykGA7EsFpk=; b=oIqxTW2VPOiRode9Nd4VqC3YDAZ1bWGA6sxYBwByoLbZy3KmWEeUPH0oqy6DNqhbpL 4TlCi9c3oWRhp6/Z7ntJkE/sHZ9/FnWd2Yy7zmzZWDZLlzdy8xZk4e7liBb6xz8Zfmms 8wd5KfFRgnkpWBIxdXYA9OJrDFgJCnFfT+C8Y2JwcHQDGfiscEAFkOcV/5j0lnbjyv/Q XLOcGO1Q6U8n1IVVNpwtOA5PtLZCwy36fdGboej+G4wKYzLJ+awi+ax9cSkErZByswvd wutyf0sHsS969IafvASjsKzsOa2uoM/N1iejIa1X6sMUemh1XNIvdWRE0L16BDCSmkTO AOTA== Received: by 10.50.187.138 with SMTP id fs10mr9220005igc.43.1345459729886; Mon, 20 Aug 2012 03:48:49 -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.50.184.232 with SMTP id ex8csp76933igc; Mon, 20 Aug 2012 03:48:49 -0700 (PDT) Received: by 10.204.152.211 with SMTP id h19mr4292091bkw.45.1345459728756; Mon, 20 Aug 2012 03:48:48 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id fo13si11023284bkc.14.2012.08.20.03.48.47; Mon, 20 Aug 2012 03:48:48 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T3PXK-0001GP-JE; Mon, 20 Aug 2012 10:48:46 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1T3PXJ-0001F4-2U for linaro-mm-sig@lists.linaro.org; Mon, 20 Aug 2012 10:48:45 +0000 Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9100FYMVBP51P0@mailout1.samsung.com> for linaro-mm-sig@lists.linaro.org; Mon, 20 Aug 2012 19:48:15 +0900 (KST) X-AuditID: cbfee61b-b7faf6d00000476a-6b-503215efa73b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0E.4B.18282.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 linaro-mm-sig@lists.linaro.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 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+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd33okYBBjPeiVh8ufKQyYHR4/a/ x8wBjFFcNimpOZllqUX6dglcGbcmXmUqaOaomLVxN2sD4w22LkZODgkBE4nNcyYxQdhiEhfu rQeKc3EICUxnlLi54QkjhLOWSeLFnNOMIFVsAoYSXW+7wLpFBDwknqw4xwxSxCxwiEli6vNd YKOEBdwkPjZdYwWxWQRUJWYfWMgMYvMCNcw8cZIRYp28xNP7fUCDODg4BTwlZqyvBgkLAZWs eXyZdQIj7wJGhlWMoqkFyQXFSem5RnrFibnFpXnpesn5uZsYwV5/Jr2DcVWDxSFGAQ5GJR7e wqmGAUKsiWXFlbmHGCU4mJVEeP+IGAUI8aYkVlalFuXHF5XmpBYfYpTmYFES5+XvA6oWSE8s Sc1OTS1ILYLJMnFwSjUwCn5mtPDjsL9wTvdP6TbGP2vqn7wrF9r6es0Utc+Paz8LRGmLLgqo nWTwOOvMLE73x/tm6Zzaf+EFu11ZZkl+2YLvlT/eVD92Nt5cfG7B4TaXmHXBOy/xPNOZl/Tk /CSloFt+5js6ks5Msr8z5/TMD0++fTlblvvWR/+nVFfQr9tJDcdis5yOBCmxFGckGmoxFxUn AgBxXvOe9gEAAA== X-TM-AS-MML: No Cc: Andrew Lunn , Russell King - ARM Linux , Jason Cooper , Arnd Bergmann , Aaro Koskinen , Josh Coombs , Kyungmin Park Subject: [Linaro-mm-sig] [PATCH 3/3] ARM: Kirkwood: increase atomic coherent pool size X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQlTKQmUpjy+GdSJVRGe0OFvojoZUkCoNNdlE/xgq8MxOK5eNP7hZXksWtXYSRouvnmpIymk 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;