From patchwork Fri Feb 21 12:25:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25111 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6E2E20143 for ; Fri, 21 Feb 2014 12:27:12 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf8689915pab.6 for ; Fri, 21 Feb 2014 04:27:12 -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=ee3bD3o20kPUJ173Ijc6C8LbRs7Wo6hCQJ++E81lFImWa8ji3nSzBMBY/7uuBs4G2G vb8g+ExQyOI0C1Efc+/QSazycLdlA9CGTuUD9YLRyratpTmHLBCvvxPs3rYeFloGhWue JPcZdYkbPNK9EGJEe3VoWO9k8Ob/TItmPfXwtvCoOwb7/eifX6b1/njdF9E+ehwRNXL4 UI5rYl7h/4x/5O5szVweBjXmyQMcRTokdqVkkPsHPvIx3tfSWzgUWN7kyrpDNUnO6K53 SEIZPLD6L3PcIqFPY+GsHkE4bElFQxnskRKQLYPbx9PwnHSxqT7bnmijVEOK+sT3sywg /uEg== X-Gm-Message-State: ALoCoQkJSt4TpNert6xcZXJORxS+2ExlyjRGzcma+VOAqVykIuu1IkR8q4koeAMPCqdfMIRS+DSP X-Received: by 10.66.172.103 with SMTP id bb7mr3317308pac.44.1392985632065; Fri, 21 Feb 2014 04:27:12 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.35.208 with SMTP id n74ls981192qgn.65.gmail; Fri, 21 Feb 2014 04:27:11 -0800 (PST) X-Received: by 10.220.161.132 with SMTP id r4mr4593938vcx.29.1392985631905; Fri, 21 Feb 2014 04:27:11 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id b20si2923120veu.30.2014.02.21.04.27.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Feb 2014 04:27:11 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so1297007veb.20 for ; Fri, 21 Feb 2014 04:27:11 -0800 (PST) X-Received: by 10.52.164.39 with SMTP id yn7mr3819077vdb.25.1392985631818; Fri, 21 Feb 2014 04:27:11 -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 u4csp30074vcz; Fri, 21 Feb 2014 04:27:11 -0800 (PST) X-Received: by 10.14.0.132 with SMTP id 4mr7932565eeb.95.1392985630837; Fri, 21 Feb 2014 04:27:10 -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 c43si15892339eeo.101.2014.02.21.04.27.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Feb 2014 04:27:10 -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 1WGpAs-0004JA-5I; Fri, 21 Feb 2014 12:25:50 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WGpAA-0004Dc-Ef for linaro-mm-sig@lists.linaro.org; Fri, 21 Feb 2014 12:25:06 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1C006JRIJU9090@mailout3.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Fri, 21 Feb 2014 12:26:18 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-be-530745ea4c5f Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id EE.31.23059.AE547035; Fri, 21 Feb 2014 12:26: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 <0N1C001ZAIJD5M60@eusync3.samsung.com>; Fri, 21 Feb 2014 12:26: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, 21 Feb 2014 13:25:25 +0100 Message-id: <1392985527-6260-10-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1392985527-6260-1-git-send-email-m.szyprowski@samsung.com> References: <1392985527-6260-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEIsWRmVeSWpSXmKPExsVy+t/xq7qvXNmDDfa+57b4O+kYu8WHplZm i/fLehgt5h85x2rR/2Yhq8WBPzsYLd70drBY7Fz3jtHibNMbdovtnTPYLb5cechksenxNVaL hW1LWCwu75rDZrH2yF12iw0vDzJZLL1+kcliwfEWVos/0+UsTl3/zGax5shidosJ09eyWLTu PcJu8Xf7JhaLVwfbWCzWz3jNYrFq1x9Gi5cfT7A4yHismbeG0eP3r0mMHq8nT2D0uNzXy+Sx c9Zddo+eNy2sHptWdbJ53Lm2h81j85J6j9v/HjN7XDnRxOqx7s8rJo/+vwYec3f1MXr0bVnF 6PF5k1yAYBSXTUpqTmZZapG+XQJXxuOtH9gLnrJXTH3ewdjAuIati5GTQ0LARGLdu9nsELaY xIV764HiXBxCAksZJVZcuswM4XQzSbxtWMIKUsUmYCjR9bYLrFtEYCGjxOd5LCBFzAL32SQ6 LvYwgSSEBcIlDi+aB1bEIqAq8X76TLAVvAIeEg93LACq4QBapyAxZ5INSJgTKHzmwHN2kLCQ gLvEuo6sCYy8CxgZVjGKppYmFxQnpeca6hUn5haX5qXrJefnbmKExOOXHYyLj1kdYhTgYFTi 4S2QYAsWYk0sK67MPcQowcGsJMJ7UJ89WIg3JbGyKrUoP76oNCe1+BAjEwenVANj7fJdkzkT L7/OSNmWGRfovL3y0+mj3N5Od5MfV/ztKkq8cC/n+yPdj3H6s1UUXoieO8by6nb1l91nXxpF abVKPZs5X8rkht8SjfZzHm8j/Zu0NTkyTwrLMRWbHYi+9dI5+5FfhrDdkWu5H72VTnlmPnlz q/f0f8l2+S9/JxsfbDNJ9vDeFcqmxFKckWioxVxUnAgAx96RFqUCAAA= 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 v5 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.128.175 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