From patchwork Thu Aug 21 08:45:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 4756031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C051EC0338 for ; Thu, 21 Aug 2014 08:48:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06EA120155 for ; Thu, 21 Aug 2014 08:48:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CD62520136 for ; Thu, 21 Aug 2014 08:48:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKO0V-0002KH-7I; Thu, 21 Aug 2014 08:46:07 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XKO0S-0002BI-9P for linux-arm-kernel@lists.infradead.org; Thu, 21 Aug 2014 08:46:04 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAN009DHF4J7T70@mailout4.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 21 Aug 2014 09:48:19 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-ec-53f5b1a926ce Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 84.66.15956.9A1B5F35; Thu, 21 Aug 2014 09:45:29 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAN0078ZEZNEK20@eusync4.samsung.com>; Thu, 21 Aug 2014 09:45:29 +0100 (BST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 2/2] ARM: mm: don't limit default CMA region only to low memory Date: Thu, 21 Aug 2014 10:45:14 +0200 Message-id: <1408610714-16204-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1408610714-16204-1-git-send-email-m.szyprowski@samsung.com> References: <1408610714-16204-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplluLIzCtJLcpLzFFi42I5/e/4Nd2VG78GGyzrU7CYs34Nm8XK7mY2 i7NNb9gtvlx5yGSx6fE1Vot7a/6zWty+zGux9shddosFx1tYHTg9Wpp72Dw2fZrE7tH19gqT x4kZv1k8Ni+p97j97zGzx7o/r5g8+rasYgzgiOKySUnNySxLLdK3S+DK6GzpYy/Yy17xZccK 9gbGhWxdjJwcEgImEvPfdzBC2GISF+6tB4sLCSxllPjYLtXFyAVk9zFJbJ8wB6yITcBQoutt F1iRiECcxPVzjawgRcwCDxglfjY9ZwdJCAv4SzT+X80MYrMIqEr8n7+ZBcTmFfCQWD7rD9Rm OYn/L1cwgdicAp4SjYdABnEAbfOQWPs6egIj7wJGhlWMoqmlyQXFSem5RnrFibnFpXnpesn5 uZsYIUH4dQfj0mNWhxgFOBiVeHhvLvoSLMSaWFZcmXuIUYKDWUmE16bva7AQb0piZVVqUX58 UWlOavEhRiYOTqkGRu5PX3tbva+UPrxxcoVspzYjZ0xhqXLYvFiJCZm7Jspwr5yfM69Rnz2B S7G7sLHmk900O/Z/y1yTJQIOBCcqaJwyqXKT+O98YmNUa0CwjUqVspTg/k+XBdxPp1yLf+7v Hvwta9VB7Y4T3j++fLmiMLuOMVGg79fEDUFGGek/W9REfkxULp6vxFKckWioxVxUnAgAdLi6 SCACAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140821_014604_490503_81AB2C55 X-CRM114-Status: GOOD ( 10.63 ) X-Spam-Score: -5.7 (-----) Cc: Joonsoo Kim , Russell King - ARM Linux , Andrew Morton , Michal Nazarewicz , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DMA-mapping supports CMA regions places either in low or high memory, so there is no longer needed to limit default CMA regions only to low memory. The real limit is still defined by architecture specific DMA limit. Reported-by: Russell King - ARM Linux Signed-off-by: Marek Szyprowski Acked-by: Michal Nazarewicz --- arch/arm/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 659c75d808dc..c1b513555786 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -322,7 +322,7 @@ void __init arm_memblock_init(const struct machine_desc *mdesc) * reserve memory for DMA contigouos allocations, * must come from DMA area inside low memory */ - dma_contiguous_reserve(min(arm_dma_limit, arm_lowmem_limit)); + dma_contiguous_reserve(arm_dma_limit); arm_memblock_steal_permitted = false; memblock_dump_all();