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: 19537 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C64D12469A for ; Mon, 26 Aug 2013 14:40:27 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id n7sf3765119qcx.10 for ; Mon, 26 Aug 2013 07:40:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; 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=Wvzk761Pv9d6qA1WK5rc2YyyA8elqoCvTtU/xTFCEzM=; b=laPQRxCK3qU7VRWQFwGTQrE6W2u1XW0yKgeyQkAkiWJUwuPeZXxgVSs8vbymXn648Y FnWi7l4CJ2svzxN3ApdPKmxn+bQAafjjstQ3FtnRP3LWR0ps+JUBdLs4Ii8+LB6m6D3e MDlUcw8yR6ULiB6iKrwPKppW5jOAiFRkIDlKWSDsSbbgna7k2W6vvsCzExhWjimrVrJ5 U9ctDROM9X7EjZMAkbQdDHUVLxKLRZY3XxpLBS2U9z16toWEEKCsjXZ3v/QQruIJ2LCK ytX5p8RP160iRlsU2pv1tryGUErk1V2m87pWEZvkykRzdWyebdWZbGeESq7g6hDJPU6o hS6w== X-Received: by 10.236.4.69 with SMTP id 45mr5214695yhi.20.1377528027514; Mon, 26 Aug 2013 07:40:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.16.103 with SMTP id f7ls343929qed.77.gmail; Mon, 26 Aug 2013 07:40:27 -0700 (PDT) X-Received: by 10.220.16.73 with SMTP id n9mr1554203vca.24.1377528027433; Mon, 26 Aug 2013 07:40:27 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id kj9si3637719veb.145.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 26 Aug 2013 07:40:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id w16so2026184vbb.22 for ; Mon, 26 Aug 2013 07:40:27 -0700 (PDT) X-Gm-Message-State: ALoCoQmhOeXcTHwx1LpBqmnj2ZYClvqD5aeQSHpxR00U2vCAXUEI4nJkIiKr2oWO3XmtdoDvWbRv X-Received: by 10.52.92.15 with SMTP id ci15mr431133vdb.34.1377528027306; Mon, 26 Aug 2013 07:40:27 -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.220.174.196 with SMTP id u4csp238979vcz; Mon, 26 Aug 2013 07:40:26 -0700 (PDT) X-Received: by 10.180.208.49 with SMTP id mb17mr7734944wic.64.1377528026179; Mon, 26 Aug 2013 07:40:26 -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 ga10si5044664wjb.125.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 26 Aug 2013 07:40:26 -0700 (PDT) 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 1VDxxE-0003Qr-HU; Mon, 26 Aug 2013 14:39:40 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1VDxxC-0003QE-NT for linaro-mm-sig@lists.linaro.org; Mon, 26 Aug 2013 14:39:38 +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 linaro-mm-sig@lists.linaro.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 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== Cc: Mark Rutland , Pawel Moll , Arnd Bergmann , Stephen Warren , Tomasz Figa , Tomasz Figa , Michal Nazarewicz , Grant Likely , Kyungmin Park , Rob Herring , Sylwester Nawrocki , Kumar Gala , Olof Johansson , Ian Campbell , Sascha Hauer Subject: [Linaro-mm-sig] [PATCH v7 4/4] 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.212.49 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. 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