From patchwork Wed Jul 31 12:51:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 2836225 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 6C638C0319 for ; Wed, 31 Jul 2013 12:54:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 51A7420109 for ; Wed, 31 Jul 2013 12:54:29 +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 0A50D200D9 for ; Wed, 31 Jul 2013 12:54:28 +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 1V4VuU-0008FY-OX; Wed, 31 Jul 2013 12:53:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V4VuB-0005yA-C4; Wed, 31 Jul 2013 12:53:27 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V4VtY-0005sk-C5 for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2013 12:52:49 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MQS00L7QX3G79Q0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2013 21:52:33 +0900 (KST) X-AuditID: cbfee61b-b7efe6d000007b11-24-51f9089163be Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D8.0A.31505.19809F15; Wed, 31 Jul 2013 21:52:33 +0900 (KST) Received: from localhost.localdomain ([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 <0MQS004JJX2O1G70@mmp1.samsung.com>; Wed, 31 Jul 2013 21:52:33 +0900 (KST) From: Marek Szyprowski To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH v4 4/4] ARM: init: add support for reserved memory defined by device tree Date: Wed, 31 Jul 2013 14:51:59 +0200 Message-id: <1375275119-12787-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1375275119-12787-1-git-send-email-m.szyprowski@samsung.com> References: <1375275119-12787-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsVy+t9jAd2JHD8DDdYvMLT4O+kYu8WB2Q9Z LV6d2chmcbbpDbvF9s4Z7BZfrjxkstj0+Bqrxdojd9ktNrw8yGSx4HgLq8Wf6XIWp65/ZrP4 /u0bm8Xf7ZtYLA6/aWe1WD/jNYuDgMfvX5MYPS739TJ57Jx1l91j85J6j9v/HjN7nJ+xkNHj yokmVo91f14xefT/NfDo27KK0ePnS50A7igum5TUnMyy1CJ9uwSujK4zP1gKfrNVXLx9lqmB 8TFrFyMnh4SAicTThd+ZIGwxiQv31rOB2EICixglDvZpdDFyAdntTBIvv2xjBkmwCRhKdL3t Airi4BARyJdYPYsXJMws0MYi8WIDC4gtLBAt8WzrDCaQEhYBVYnHs1JAwrwCHhLNtyeAdUoI KEjMmWQDEuYU8JQ4+HMP1FYPiWNzJ7JNYORdwMiwilE0tSC5oDgpPddIrzgxt7g0L10vOT93 EyM4vJ9J72Bc1WBxiFGAg1GJh3fGpe+BQqyJZcWVuYcYJTiYlUR497D+DBTiTUmsrEotyo8v Ks1JLT7EKM3BoiTOe7DVOlBIID2xJDU7NbUgtQgmy8TBKdXAGHrr57zfHU4K3zVy5qypnLJO uF769sedGpbNa45N3jRrweWzS74W2v4Pl6zbMDfn8zIfC23fWazmb+KL5vKtu7t8Zfdc81Pz ahQXLdVckrx3j66k8Pv2yffWnqlZW7uM7VtW6LGv/6o6p+rxv9jP0Pzd+Vi9yNcIucSAD/9z YrYvWSaVbq35WFKJpTgj0VCLuag4EQANssQZawIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130731_085248_683674_082E521F X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -8.4 (--------) Cc: Laura Abbott , Arnd Bergmann , Tomasz Figa , Nishanth Peethambaran , Michal Nazarewicz , Grant Likely , Marc , Kyungmin Park , Sylwester Nawrocki , Olof Johansson , 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=-5.7 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 --- 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..82db8d8 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -20,6 +20,7 @@ #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(); + dma_reserved_mem_of_reserve(); + /* * reserve memory for DMA contigouos allocations, * must come from DMA area inside low memory