From patchwork Fri Feb 28 13:42:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25558 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 026FB20543 for ; Fri, 28 Feb 2014 13:44:10 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id rd18sf5838045iec.8 for ; Fri, 28 Feb 2014 05:44:10 -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=aAHvBxIHLkGzbrMz/i2bGJjwSmb/VzBJcHUT4RdidzI=; b=bKrI8OTKDsgAyeFZgns1NiVsvnBmw9kwiKerpka5pxnm95IVyocCBZSzM2caPshHiW s0XMxUGwoxRPWwglGk5xwAVcXihuzym44nyu3nHFXKCSKCMdZiIykLH+2Xxv3lZMTKrE ZIv3SHw2yE04+8I9Tp0aPZNPkYw6dvcl98FWc7NgXxMpcof5dxtuyRDVYXkGIcXnRi4B MQ9QA5HkUSD3IGIgZlDHzeFkNE7kqTwN/cbolbx5fwS76+M08Db+HbnDwi3iYOrfAgCO rAPQ7uVQpNEHGriZBUlmGp2dpslNgnHJyzZVQK21iM4i+tvGDzZ98pYOZzX1do+SuCNi CZkw== X-Gm-Message-State: ALoCoQl/ns0WqJruD9jbBOUEe3e1BpV4L1YkYWX0FviqG2smQAaX05J2+q2A7vgFq12e405lxI97 X-Received: by 10.182.65.168 with SMTP id y8mr6631373obs.38.1393595050414; Fri, 28 Feb 2014 05:44:10 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.161 with SMTP id o30ls1205509qga.94.gmail; Fri, 28 Feb 2014 05:44:10 -0800 (PST) X-Received: by 10.52.247.231 with SMTP id yh7mr5442571vdc.34.1393595050251; Fri, 28 Feb 2014 05:44:10 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id p9si585546vdv.57.2014.02.28.05.44.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Feb 2014 05:44:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 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.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so722581vcb.14 for ; Fri, 28 Feb 2014 05:44:10 -0800 (PST) X-Received: by 10.221.34.211 with SMTP id st19mr2637968vcb.5.1393595050142; Fri, 28 Feb 2014 05:44:10 -0800 (PST) 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.130.193 with SMTP id u1csp54633vcs; Fri, 28 Feb 2014 05:44:09 -0800 (PST) X-Received: by 10.14.2.66 with SMTP id 42mr14792294eee.24.1393595049196; Fri, 28 Feb 2014 05:44:09 -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 n9si6268720eey.35.2014.02.28.05.44.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 28 Feb 2014 05:44:09 -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 1WJNi3-0008Mh-1a; Fri, 28 Feb 2014 13:42:39 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WJNhM-0008Ho-Vp for linaro-mm-sig@lists.linaro.org; Fri, 28 Feb 2014 13:41:57 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1P00MX7KS73L70@mailout1.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Fri, 28 Feb 2014 13:43:19 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-28-5310927652ac Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id AB.55.23059.67290135; Fri, 28 Feb 2014 13:43:18 +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:18 +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: Fri, 28 Feb 2014 14:42:54 +0100 Message-id: <1393594976-16728-10-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: H4sIAAAAAAAAAyWRa0hTYRzGe8/OzjlbDo/T4iClpYgUZM6CXkIyv71GoGgWFGEnHSo5lU1H BqEtJ3rysiailZeGsw9zXpjlZdhFWZtoiua11LSmlLrKmIjVZjn99vyf5/f79Kd4Yi3uT6Vn 5kjlmWxGECHEh7ZtkyeUWjoh/N3kKejWWkm4rlLz4M9npQA2WEb4sMKh48M3rm4AHWXFOOxp /QHgsMpBwq6SGhJuTHzGoMk+xYe6Ij0Ox821BGyxzJOwfaUPg03TYxh8aivkQ1d1ABycdhLQ aGkkoaa6BYfqlxYSurtMOFztK8JhW80aDg1mF4Arvwbw84eQsd4I0N8/WoDWKjUAjZeXYajn 8TyJSh2FfGQylBBobqqXQB36fDS7beehiQEVH7W6VjFU4Q5HdeZygMqfGwBymgLifK4KI1Ok GelKqfzkuRvCNPuLdTJ7mbxd9bUYFAAjwQEBxdCnmYVXHby9fJAZ/dS20wspMd0EmM7mt2Dv eIAxxoYvfA9F0BKG+87t2n60DjDOetwD8egFgikeK8U8gy99hamaq9gVcDqE2awb3BEoSkTH MNbGC57I0EeYWm2khxDstAXVC7u0mEbM7NY00ADRU7DPAA5Ic5OzFTdTZZIwBStT5GamhiVn yUxg748b3aDRerYf0BQI8hJpYrwTxHxWqciT9QOG4gX5iZZUdIJYlMLm3ZHKs5LkuRlSRT/A KIF/AZByvqIke6hTG//bGpJ4ZltzrO5fu3sx6tL1153c3WEbJ47a5CJusfe6vj00z8SKYj+M HG5CgTNRS9HckFK3Zr6c2LmlTgzXLcqu3Y+OyPdeDo3br/cZmuutLAl8pFZTzRdlqet6JtQr 3paT/2TUO/jj0Xjz0vtgVjAscWaNB+GKNFZynCdXsP8BL3SwbqUCAAA= 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 v6 09/11] 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.169 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 | 2 ++ 2 files changed, 3 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..2a77ba8796ae 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -323,6 +323,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