From patchwork Thu Feb 20 10:52:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25003 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6B35D2066E for ; Thu, 20 Feb 2014 10:53:28 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q200sf1511286ykb.3 for ; Thu, 20 Feb 2014 02:53:28 -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=X6ymRbzMqOj4e2GeKYRAvFdXUgWxtR43s6VhNS3HfMA=; b=hDLUCFyJg3nlpwR1MuKWIjzXB1KtjsIY6NAdDTDgunbVM4hwz/uxjHcLjXViKa4nBd zeCiyxYIyg4H4pSvwf9QNxufV+usq6pgJYfNZ4p9EwM4WZPkcZacwvcl/CJEDDazIcMN uvFwjEoV/1K0dXWWkajIevhbk+OiSZMzCemPljBnMe1dQepJ9j0XZ/G5MHmIZ4+UOqs/ lEeedV2NonIdnC/3ss6QGMgbaSiZACraONNYnvpasqHGXB1MJKFMhYv1N0q8r0mK9Wuv HNFsv3SnSDdxZm+dyvHBcVYGdcizFPW7K057/U6zBIlTuhKfbZGd7X0bVbEd6KZjCx3l D4oQ== X-Gm-Message-State: ALoCoQmXppfsLHgIdK28uvUhKZqPkl3EEfMJxWsn4kRsQMahvpU15UqaVOJvzgzVaW8d4HgSA+yA X-Received: by 10.236.101.195 with SMTP id b43mr336796yhg.57.1392893608129; Thu, 20 Feb 2014 02:53:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.101 with SMTP id k92ls454772qgf.78.gmail; Thu, 20 Feb 2014 02:53:28 -0800 (PST) X-Received: by 10.220.191.134 with SMTP id dm6mr662595vcb.16.1392893608012; Thu, 20 Feb 2014 02:53:28 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id sq4si1307567vdc.67.2014.02.20.02.53.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:53:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so1676054vcb.39 for ; Thu, 20 Feb 2014 02:53:27 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr499187vdc.27.1392893607924; Thu, 20 Feb 2014 02:53:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp48372vcz; Thu, 20 Feb 2014 02:53:27 -0800 (PST) X-Received: by 10.15.108.71 with SMTP id cc47mr1085187eeb.59.1392893606858; Thu, 20 Feb 2014 02:53:26 -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 a43si7733350eei.79.2014.02.20.02.53.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:53:26 -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 1WGREd-0007Uz-Vr; Thu, 20 Feb 2014 10:52:07 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WGREI-0007TO-64 for linaro-mm-sig@lists.linaro.org; Thu, 20 Feb 2014 10:51:46 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1A0057UJK8MH00@mailout2.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Thu, 20 Feb 2014 10:52:56 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-5a-5305de8ca8e0 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 21.5C.23059.C8ED5035; Thu, 20 Feb 2014 10:53:00 +0000 (GMT) Received: from amdc1339.mshome.net ([106.116.147.30]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N1A005WSJK1HXB0@eusync2.samsung.com>; Thu, 20 Feb 2014 10:53:00 +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 Date: Thu, 20 Feb 2014 11:52:45 +0100 Message-id: <1392893567-31623-6-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1392893567-31623-1-git-send-email-m.szyprowski@samsung.com> References: <1392893567-31623-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRa0iTYRiGe7+zw9HnPPRhYjIQRfAEBm8mZRT49kMyxIgoatOh0qayL0VD 0kxNl6e0pYiZog4Z87Qk3SinY+nUMk1TzNREQqZLKwXD1HL673ru54L7x83goirCk0lOuSdT pkjkYkpAjO4PTQWWLJCxIV/6/eFe5SANf+YV4HBDUwLgS8sYCcvtjSTs3+0F0F5aREBD+zqA H/LsNOwprqHh1tQSBvXL0yRsLGwm4KSxjoJtlnkadtoGMNgyM4HBhqF8Eu5We8ORmU0K6ixN NKyobiNgwVsLDfd69ARcHSgkYEfNGgG1xl0Abb+sRKQX0tXrAPq7UwnQWlUFQJNlpRgy1M7T qMSeTyK9tphCX6ffUOhVcw6a21/G0ZQ1j0Ttu6sYKt8LQS+MZQCVdWsB2tR7x7jcEEQkyOTJ GTJl8Lk7giTbugmkWZ0y/xj+0blgg1YBJ4Zjw7g+21NwxB7c+EIHpQICRsS2AO5j8wR2dDzB uKXFIsphUWwop/qhOmQ3thFwm/WEQ8LZRYormijBHA9XNo5Td7/HHUywvpxN00s6WMgiLu/x 94M65qDOh6urjHDETuxl7tHC/KEiOlCMtZNkBRA2gGNa4C5Lj0/jpYmK0CBeouDTUxKD4lMV enA05FYvaBoMNwOWAWJn4fUZIlZESjL4LIUZcAwudhO+niVjRcIESdZ9mTL1tjJdLuPNAGOc PHOBny7aGhko+JyaM+q+bZqT/8aCca8LUueZq10GjW+2yr81MFv9cPtbofpuH/su7lm4accg w59HRQlau1Zdzp8aU0uv8+bhB4HHM0/3nbQNu6pX6sxXdGFnNW2mE2G3Oi75Sfdnx5PsnT7C T9P1XM/N0IvX+gNGolcsMWc8pkWDYoJPkoQG4Epe8h+2YKRwpgIAAA== Cc: Mark Rutland , Benjamin Herrenschmidt , Tomasz Figa , Will Deacon , Tomasz Figa , Paul Mackerras , Arnd Bergmann , Josh Cartwright , Catalin Marinas , Grant Likely , Ian Campbell , Pawel Moll , Stephen Warren , Sascha Hauer , Michal Nazarewicz , Rob Herring , Kumar Gala , Olof Johansson Subject: [Linaro-mm-sig] [PATCH v4 5/7] arm: 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.180 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 --- arch/arm/Kconfig | 1 + arch/arm/mm/init.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index e25419817791..d0262bea8020 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1918,6 +1918,7 @@ config USE_OF select IRQ_DOMAIN select OF select OF_EARLY_FLATTREE + select OF_RESERVED_MEM help Include support for flattened device tree machine descriptions. diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 804d61566a53..eee55d75bbfa 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_fdt_scan_reserved_mem(); + /* * reserve memory for DMA contigouos allocations, * must come from DMA area inside low memory