From patchwork Tue Feb 4 12:09:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 24093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2DB7920445 for ; Tue, 4 Feb 2014 12:10:45 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g12sf37257978oah.2 for ; Tue, 04 Feb 2014 04:10:44 -0800 (PST) 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=iWlWEDG93sJyeMUOQjYBbNlxbMxmjeshnTKxSBAU5Sk=; b=WhmKnsL5TcI+Kgeui7UXcIX9sE4/IxaiaBqbzLrgSYsQyRi0P6VDaplkhgyRWwRQq+ D5snbAqG77doekbQXhVSu2txWQSgcsonk/eYs6sIxwlDXI+NW2UvqTzrRHbNtP1adkHO 8Zdogmn8uZKb69VP65nmtPt2TBqQNffkEF+tGU4gRM/csQMdcDCyjRzdOt4RdlA3JHv0 QVjYHBxlAzAUIJM1YyS/xQG7Ept5UIZHX7ldSOhtWpufwQsyJyCNF2IpGYWqX8EVQ1Hw q+4POyOVCyBufs0jZDhUz3TVUWRtW2qGB4Ck7pHRQo3/r9lyB8dCuXv/w6/Fr/ZPwmUQ ryfg== X-Gm-Message-State: ALoCoQmY6PTtKqGyUPrC+SwF8/CW6uwDkfbTTUedV2vgAty3iNHwYMqOF694cYXvnU+dZ8tq/1qR X-Received: by 10.182.22.133 with SMTP id d5mr16500745obf.27.1391515844181; Tue, 04 Feb 2014 04:10:44 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.34.235 with SMTP id l98ls2213174qgl.90.gmail; Tue, 04 Feb 2014 04:10:44 -0800 (PST) X-Received: by 10.220.175.198 with SMTP id bb6mr774762vcb.31.1391515844124; Tue, 04 Feb 2014 04:10:44 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id y6si8037569veb.63.2014.02.04.04.10.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 04:10:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so5749824vcb.31 for ; Tue, 04 Feb 2014 04:10:44 -0800 (PST) X-Received: by 10.52.26.148 with SMTP id l20mr7543816vdg.28.1391515844036; Tue, 04 Feb 2014 04:10:44 -0800 (PST) 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.220.174.196 with SMTP id u4csp229348vcz; Tue, 4 Feb 2014 04:10:42 -0800 (PST) X-Received: by 10.14.69.200 with SMTP id n48mr14456162eed.54.1391515839683; Tue, 04 Feb 2014 04:10:39 -0800 (PST) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id e2si41782927eeg.198.2014.02.04.04.10.38 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 04:10:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) 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 1WAeow-0006Im-NL; Tue, 04 Feb 2014 12:09:42 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WAeor-0006Hd-0G for linaro-mm-sig@lists.linaro.org; Tue, 04 Feb 2014 12:09:37 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0H003N90HA1H10@mailout4.samsung.com> for linaro-mm-sig@lists.linaro.org; Tue, 04 Feb 2014 21:10:22 +0900 (KST) X-AuditID: cbfee61a-b7fb26d00000724f-8f-52f0d8ada6cf Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F6.0C.29263.DA8D0F25; Tue, 04 Feb 2014 21:10:22 +0900 (KST) Received: from amdc1339.mshome.net ([106.116.147.30]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N0H006N40FZEA91@mmp1.samsung.com>; Tue, 04 Feb 2014 21:10:21 +0900 (KST) From: Marek Szyprowski To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Date: Tue, 04 Feb 2014 13:09:32 +0100 Message-id: <1391515773-6112-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1391515773-6112-1-git-send-email-m.szyprowski@samsung.com> References: <1391515773-6112-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsVy+t9jAd11Nz4EGdzYymXxd9IxdosPTa3M FvOPnGO16H+zkNXiwJ8djBZvejtYLHaue8docbbpDbvF9s4Z7BZfrjxkstj0+BqrxcK2JSwW l3fNYbNYe+Quu8WGlweZLJZev8hkseB4C6vFn+lyFqeuf2azmDB9LYvFpvtrGS3+bt/EYvHq YBuLxfoZr1ksVu36w+gg6bFm3hpGj9+/JjF6vJ48gdHjcl8vk8fOWXfZPXretLB63Lm2h81j 85J6j9v/HjN7XDnRxOqx7s8rJo/+vwYefVtWMXp83iTnsXFuaAB/FJdNSmpOZllqkb5dAlfG 9SNHGQs2slesvnOVpYFxGlsXIyeHhICJxJefO6FsMYkL99YD2VwcQgKLGCU2Xe5kgnBamSSO X/3BDlLFJmAo0fW2C6xDRGAho8TneSwgRcwC09gkPi98yQqSEBaIljj5fwsTiM0ioCpx+HIj C4jNK+Au8WjDNMYuRg6gdQoScybZgIQ5BTwkVtz+zwYSFgIqWb/QcwIj7wJGhlWMoqkFyQXF Sem5hnrFibnFpXnpesn5uZsYwVH2TGoH48oGi0OMAhyMSjy8CiofgoRYE8uKK3MPMUpwMCuJ 8JpvAwrxpiRWVqUW5ccXleakFh9ilOZgURLnPdBqHSgkkJ5YkpqdmlqQWgSTZeLglGpg9BVY 1MOw9L5xSQ+/57XTbKey9jJPTF70TfP24nNxtxUDbnBNzXMPerTlpC+X7pN9GYeFNxx9VOXK kz1Vc2V0jft5k/zqpkMxGr1rn95PzL7Md4A1+snqmRJr2XbUzj095cPrml/zqssWn8lJbjfy jVds+x3ezHzVaO5K558b649a+nhL6lvFKbEUZyQaajEXFScCAIEZBOGuAgAA Cc: Mark Rutland , Pawel Moll , Arnd Bergmann , Stephen Warren , Josh Cartwright , Benjamin Herrenschmidt , Tomasz Figa , Olof Johansson , Tomasz Figa , Michal Nazarewicz , Rob Herring , Kyungmin Park , Kumar Gala , Grant Likely , Ian Campbell , Sascha Hauer Subject: [Linaro-mm-sig] [PATCH v2 4/5] ARM: init: add support for reserved memory defined by device tree 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=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 Enable reserved memory initialization from device tree. Cc: Benjamin Herrenschmidt Cc: Laura Abbott Signed-off-by: Marek Szyprowski --- arch/arm/mm/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 804d61566a53..ebafdb479410 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -323,6 +324,8 @@ void __init arm_memblock_init(struct meminfo *mi, if (mdesc->reserve) mdesc->reserve(); + early_init_dt_scan_reserved_mem(); + /* * reserve memory for DMA contigouos allocations, * must come from DMA area inside low memory