From patchwork Fri Feb 28 13:42:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25559 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f200.google.com (mail-ig0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7028120543 for ; Fri, 28 Feb 2014 13:44:16 +0000 (UTC) Received: by mail-ig0-f200.google.com with SMTP id y6sf2906601igj.3 for ; Fri, 28 Feb 2014 05:44:15 -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=tCEooycT64nubazD9D8JnYZ4mK0HR/JA9KrrYeOjVBc=; b=jUwWWwv3swg3Q1eUqDzhQ2YcJc9aO5DbCAulIKnYPNkJisr5KNNt+dkk9+za3fqoZU /rKJcMWrdA/1jhefb8ZKmDQJr/LVkRQn/WxMuo9Jh4vTkrr/l6G/OikFx1meicnMopRN +/LALqbpQE0UAa/DBIpVKmqkdHLnz9E+nCgdxh9Baya4eyid9E1IKqEcUSghVZlzrn7Q 9IwuZZeEasijNHc6W/Kgr6jITKK3FZX8vGpuQLYmLV9E7waVbtUr8ucnxcsF5Tv9ULCM YdFDicqa66Sar4pU6vXmfT7pgQGQxB/CpuSYzKEBAUYi2B279Z+aN7LTwZzJSh3BNMTA MObA== X-Gm-Message-State: ALoCoQmXy30H1h7agHM0CsR21n/5FEXVhLWy3MUts2X3UvRrWgnuV12puP9k/0+zAST7g0Vw6elw X-Received: by 10.182.24.134 with SMTP id u6mr6584324obf.24.1393595055893; Fri, 28 Feb 2014 05:44:15 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.227 with SMTP id m90ls1102734qga.38.gmail; Fri, 28 Feb 2014 05:44:15 -0800 (PST) X-Received: by 10.58.170.69 with SMTP id ak5mr2681889vec.28.1393595055713; Fri, 28 Feb 2014 05:44:15 -0800 (PST) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id gq1si267086vec.61.2014.02.28.05.44.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Feb 2014 05:44:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id cz12so732628veb.21 for ; Fri, 28 Feb 2014 05:44:15 -0800 (PST) X-Received: by 10.220.67.18 with SMTP id p18mr2682090vci.14.1393595055603; Fri, 28 Feb 2014 05:44:15 -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.130.193 with SMTP id u1csp54642vcs; Fri, 28 Feb 2014 05:44:15 -0800 (PST) X-Received: by 10.14.99.196 with SMTP id x44mr21346321eef.65.1393595054666; Fri, 28 Feb 2014 05:44:14 -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 p44si6259372eeu.47.2014.02.28.05.44.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 28 Feb 2014 05:44:14 -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 1WJNi8-0008Nf-CW; Fri, 28 Feb 2014 13:42:44 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WJNhO-0008Hz-70 for linaro-mm-sig@lists.linaro.org; Fri, 28 Feb 2014 13:41:58 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1P00HBNKS9BR80@mailout4.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Fri, 28 Feb 2014 13:43:21 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-4e-531092788412 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CC.BE.18565.87290135; Fri, 28 Feb 2014 13:43:20 +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:20 +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:55 +0100 Message-id: <1393594976-16728-11-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: H4sIAAAAAAAAAyWRW0iTYQCG+/79h7la/a0pP1ImgzAiT9XFh4gURnwrwsAuMiFdOtTYVDYn mkQy1OY8jQVq02xLZ7Gmxsp0wyBt6DAq15ZGzkOsi9RZ1jQ6zNWcdy8Pz8t78bJZPC0ezS4q LhPLikUSAcnBXwUn3sdXaOnMpHduHG5qxym4pqxlwW+9jQDes78hYIvPQMAXgWEAfU0qHFr7 vwL4Wumj4FB9OwXX3Z8waPFOE9BQ14NDl62ThH32OQo+XhrFoHHGiUH9RA0BA20xcHLGT0Kz vZuCmrY+HNY+t1Nwc8iCw+XROhwOtK/g0GQLALj03YGf3I/MXWaA/v7RArRyWwOQq7kJQ1bd HIUafTUEspjqSeSZHiHRk56baDboZSG3Q0mg/sAyhlo2k9BdWzNAzU9NAPktMRf2Xuak5osl ReViWWJaLqewYVEFSh9SFfMNX8hqUE+qQQSboU8w3a4P2HaOYqbmB8KcRxsBYwhkqAEnlBsw JjjkDkskncyoV9VhiU8bAOPvwrckFr1AMipnY1jaR2cxtskN1lbG6UOMeqE1XODSQmb991qo wA6txTKd2tQtHBHC1W0LxPYwYmZ/zQAN4OrBDhOIFCvySuVXC6THEuQiqVxRXJCQVyK1gO0f N4aBcTxlDNBsINjF1Qj3ZPIIUbm8UjoGGDZLwOd+VtKZPG6+qPK6WFaSI1NIxPIxgLEjoqtB ypLQ65nK8qRVxdY9yvEE0/+lX9yNIs26QfGpEVyYbY36SOqOtxrvB0aqblyxH345qDoq5NsH 8TNwuFzX/zb3QWvGJehYPDCa6JF1REqcyHUnm/bzz/7MqXToT8etKA7Wdqzqn+10xuWdE5y3 tnfd6k3eKEP2HwJvafzqNQEuLxQlH2HJ5KL/kD+pbaUCAAA= 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 10/11] arm64: 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.176 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/arm64/Kconfig | 1 + arch/arm64/mm/init.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 27bbcfc7202a..6abf15407dca 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -43,6 +43,7 @@ config ARM64 select NO_BOOTMEM select OF select OF_EARLY_FLATTREE + select OF_RESERVED_MEM select PERF_USE_VMALLOC select POWER_RESET select POWER_SUPPLY diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index d0b4c2efda90..3fb8d50dfdaa 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -160,6 +160,7 @@ void __init arm64_memblock_init(void) memblock_reserve(base, size); } + early_init_fdt_scan_reserved_mem(); dma_contiguous_reserve(0); memblock_allow_resize();