From patchwork Fri Feb 28 13:42:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 3741441 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 AD935BF13A for ; Fri, 28 Feb 2014 13:49:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA8CD2024D for ; Fri, 28 Feb 2014 13:49:04 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 E422C20225 for ; Fri, 28 Feb 2014 13:49:03 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WJNmX-0004H6-P2; Fri, 28 Feb 2014 13:47:19 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WJNlc-0004X3-2b; Fri, 28 Feb 2014 13:46:20 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WJNjL-00049A-8s for linux-arm-kernel@lists.infradead.org; Fri, 28 Feb 2014 13:44:04 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0N1P00M01KSA4J80@mailout4.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Feb 2014 13:43:22 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-32-531092798323 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DE.55.23059.97290135; Fri, 28 Feb 2014 13:43:21 +0000 (GMT) Received: from amdc1339.mshome.net ([106.116.147.30]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N1P002ZJKROU750@eusync3.samsung.com>; Fri, 28 Feb 2014 13:43:21 +0000 (GMT) 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 Subject: [PATCH v6 11/11] powerpc: add support for reserved memory defined by device tree Date: Fri, 28 Feb 2014 14:42:56 +0100 Message-id: <1393594976-16728-12-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1393594976-16728-1-git-send-email-m.szyprowski@samsung.com> References: <1393594976-16728-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAy2Ra0hTYRzGe8/OzjkbDo+b1kHEalFg4S0MXkokFOy1oAK/hBFz6lDBqexi atJsqcyl25igEl5m3mhemYFuJaUslaJItJkuG6ZUumWGEqab5bJvv//z/8Hz4aFYfCMeSuXm KySyfHGekODir/cm30eWGOnUmPpuAfQZJ0i4oa5kwR9dNQC22t+yod7TxoYvvCMAemo1OLT2 rwP4Ru0h4XB1Iwm3ZpcwaFl2sGFbVQcOZ2xNBOyzL5JwcHUMg51z0xg0TVawobchHL6a2yRg r72dhIaGPhxWjtpJ6Bu24HBtrAqHA41uHJptXgBXf07hF8NQb0svQLs7RoDcdQaAZnS1GLI+ XCRRjaeCjSzmagJ9dDwj0FCHCjn3lllodkrNRv3eNQzpfTGo2aYDSPfEDNCmJfx6UBo3PkuS l1skkUUnpHNzVnRPscIOTvFQcw9eDpykFlAUQ8cxW8sRWsDZx8PMu08DhBZwKT7dCZj2z27y 4HiAMfd3BnG/RdCxjPa7lvBzMN0GmM0W3C+xaBfBaKZrMP9DQN9krM/1/yScPsnsqndZfubR Kcyws+5/8zGmyRjvjzn7cXmDi+1nPo0Y5/YcMACeCRwygxCJMrNQnpEtjY2Si6VyZX52VGaB 1AIOdtwaAe0T58cBTQFhAM+QEpjKZ4uL5CXSccBQLGEwb0VNp/J5WeKSUomsQCRT5knk4wCj OKHlQGArhurFb4rOFFSm/318/mjypa+j3KDmqWuKpJDuiI3bf1RnJTaf5l4XvpAucvng1fkj 2JLIGhctSpTpz3y5HHk3IfrROY3S5Gq9o+t3X0myF6nCSk8Zym6Ybm2L1l9ewAMEHxwd9WGJ 1h5V8sIJoUObllGoyPz1WDNoDNQIcXmOOPY0SyYX/wU9PlwApQIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140228_084359_471558_49D2E61F X-CRM114-Status: UNSURE ( 9.58 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -3.8 (---) Cc: Mark Rutland , Benjamin Herrenschmidt , Tomasz Figa , Will Deacon , Tomasz Figa , Paul Mackerras , Marek Szyprowski , Arnd Bergmann , Josh Cartwright , Catalin Marinas , Grant Likely , Laura Abbott , Ian Campbell , Pawel Moll , Stephen Warren , Sascha Hauer , Michal Nazarewicz , Marc , Nishanth Peethambaran , Rob Herring , Kumar Gala , Olof Johansson X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-1.1 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/prom.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 957bf344c0f5..3b6617fed8fc 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -90,6 +90,7 @@ config PPC select BINFMT_ELF select OF select OF_EARLY_FLATTREE + select OF_RESERVED_MEM select HAVE_FTRACE_MCOUNT_RECORD select HAVE_DYNAMIC_FTRACE select HAVE_FUNCTION_TRACER diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index f58c0d3aaeb4..591986215801 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -588,6 +589,8 @@ static void __init early_reserve_mem_dt(void) memblock_reserve(base, size); } } + + early_init_fdt_scan_reserved_mem(); } static void __init early_reserve_mem(void)