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: 35726 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B63BE20540 for ; Thu, 21 Aug 2014 08:45:50 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id et14sf72489822pad.10 for ; Thu, 21 Aug 2014 01:45:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=DZTnGim17bpkNwBrAGvqgSzLTDAsCsbypM2etBgerkU=; b=acfbKrfmtPLuNpuUvtRVsw3+kVfUrBKk7+rJC1AcnwgmxTeipfSMdkrN2kUMIbWRvV WbTga6SeUboaSsvTAA5bL4IPu8GyJwcFJYysvkXFtdjBlc/7cixaWaBckju7HbXMOVAy YCJFQ2Y6M3LLTSeF/7wxRoeALwYfQlr2Rj3NEBHjPsB4MmmhbuyhFR9EA3gAuzOehXZe z7dHztdATlxYzt53/B46bMah4NPynU5PadJh5pBLttDdgpfneUP1xr0/IdeggVDMPLHs /Uh6trgz4BxhCbVsGa4eU/T99ctmYQBZXqWXnUPL/Kaagomxl/xVPi4IxVUmY/SISdLb OpSg== X-Gm-Message-State: ALoCoQkTVrzjOdLHVlOfPMv/wmBBljH5gOigtjzuVbzt4w5hHjyUP2I1EyyowGH2mTyhFxtzBQt6 X-Received: by 10.66.193.227 with SMTP id hr3mr29534454pac.0.1408610750057; Thu, 21 Aug 2014 01:45:50 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.41 with SMTP id 38ls671144qgi.26.gmail; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) X-Received: by 10.52.148.2 with SMTP id to2mr18326714vdb.38.1408610749927; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id i4si12126316vdg.41.2014.08.21.01.45.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 Aug 2014 01:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ik5so10450617vcb.34 for ; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) X-Received: by 10.52.160.10 with SMTP id xg10mr2592091vdb.1.1408610749823; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp117917vcb; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) X-Received: by 10.140.47.129 with SMTP id m1mr82265448qga.95.1408610749374; Thu, 21 Aug 2014 01:45:49 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id x5si37827608qcj.11.2014.08.21.01.45.48 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 21 Aug 2014 01:45:49 -0700 (PDT) Received-SPF: none (google.com: linaro-mm-sig-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XKO0C-00063X-Aj; Thu, 21 Aug 2014 08:45:48 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XKO00-000639-JI for linaro-mm-sig@lists.linaro.org; Thu, 21 Aug 2014 08:45:36 +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 linaro-mm-sig@lists.linaro.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 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= Cc: Joonsoo Kim , Russell King - ARM Linux , Andrew Morton , Michal Nazarewicz Subject: [Linaro-mm-sig] [PATCH 2/2] ARM: mm: don't limit default CMA region only to low memory X-BeenThere: linaro-mm-sig@lists.linaro.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 Errors-To: linaro-mm-sig-bounces@lists.linaro.org Sender: linaro-mm-sig-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m.szyprowski@samsung.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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();