From patchwork Mon Aug 26 14:39:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 2849611 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 0E4CBBF546 for ; Mon, 26 Aug 2013 14:42:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C391F20362 for ; Mon, 26 Aug 2013 14:42:14 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D1C62035E for ; Mon, 26 Aug 2013 14:42:13 +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 1VDxyv-0001pn-RI; Mon, 26 Aug 2013 14:41:26 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDxyW-0000rX-PJ; Mon, 26 Aug 2013 14:41:01 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VDxy7-0000ld-E3 for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2013 14:40:37 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MS500FU27EVKY70@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2013 23:40:15 +0900 (KST) X-AuditID: cbfee61a-b7f7a6d00000235f-34-521b68cf8df2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 6C.E4.09055.FC86B125; Mon, 26 Aug 2013 23:40:15 +0900 (KST) Received: from localhost.localdomain ([106.116.147.30]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MS50074S7DMCL50@mmp2.samsung.com>; Mon, 26 Aug 2013 23:40:15 +0900 (KST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, devicetree@vger.kernel.org Subject: [PATCH v7 4/4] ARM: init: add support for reserved memory defined by device tree Date: Mon, 26 Aug 2013 16:39:19 +0200 Message-id: <1377527959-5080-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1377527959-5080-1-git-send-email-m.szyprowski@samsung.com> References: <1377527959-5080-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42I5/e+xoO75DOkgg+YD2hZ/Jx1jt5h/5Byr Rf+bhawWr85sZLN409vBYnG26Q27xfbOGewWX648ZLLY9Pgaq8XaI3fZLTa8PMhksfT6RSaL BcdbWC3+TJezOHX9M5vFhOlrWSy+f/vGZvF3+yYWi8Nv2oHGHWxjsVg/4zWLxapdfxgdxDzW zFvD6PH71yRGj9eTJzB6XO7rZfLYOesuu8fmJfUet/89Zva4cqKJ1WPdn1dMHv1/DTz6tqxi 9Pj5Usfj8yY5j41zQwP4orhsUlJzMstSi/TtErgyFjx7zVjwhb1i1bV9jA2MF9m6GDk5JARM JLauOsMEYYtJXLi3HijOxSEkMJ1RYsuBbYwQTjuTxOLdy1lAqtgEDCW63naBdYsIpEnMWLWB BaSIWeANq8SKSz3sXYwcHMIC0RLTP+qA1LAIqEpcX/0HrJ5XwF3i8tbPzCAlEgIKEnMm2YCE OQU8JO4cm8EIEhYCKmlt1ZzAyLuAkWEVo2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnDkPJPa wbiyweIQowAHoxIPb2CBVJAQa2JZcWXuIUYJDmYlEV6OVOkgId6UxMqq1KL8+KLSnNTiQ4zS HCxK4rwHWq0DhQTSE0tSs1NTC1KLYLJMHJxSDYwc73v2d24+py88cfvzQJ/yNWI93P8mvj4j O/e5db+6Q76gqnE1360Z6n313WJSjH4Jl6yvXkte42G7+XL0auX4Sbuf3Hz8vV1h2RFe9+xn i6fwhnqcOXLLTb7qzaPCu8Zzs5at4DLVff36UXFKyVSRrEfrZrW8yJZJ8lowkeOjkPSv4Dmu vI+VWIozEg21mIuKEwEpfD8GmAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130826_104036_733319_B262D4EE X-CRM114-Status: GOOD ( 10.27 ) X-Spam-Score: -9.3 (---------) Cc: Mark Rutland , Laura Abbott , Pawel Moll , Arnd Bergmann , Stephen Warren , Tomasz Figa , Tomasz Figa , Michal Nazarewicz , Grant Likely , Marc , Kyungmin Park , Sylwester Nawrocki , Kumar Gala , Olof Johansson , Ian Campbell , Nishanth Peethambaran , Sascha Hauer , Marek Szyprowski 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=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski Acked-by: Kyungmin Park Acked-by: Michal Nazarewicz Acked-by: Tomasz Figa --- 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 15225d8..6a2fe44 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -377,6 +378,8 @@ void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) 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