From patchwork Fri Feb 21 12:25:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78FFE20143 for ; Fri, 21 Feb 2014 12:27:04 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id z6sf3603772yhz.2 for ; Fri, 21 Feb 2014 04:27:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=dEVqSUWAPScR/5CV7TUOnTgeKpeTmo9DGqB/LkD0BFg=; b=QZJTTnDXktr3s4/HUGhnZGMW/4NszeakU6yjXGQclDbulJcfwoIl5aPuBibXimQZGB shaNM7ZKUmI4/e8HJB6zU/QL33tnud3S9w2ALKfrm5xxHr0YR2+txVGU904DxJF99fRd wjm1jg9WFLIV86OBVEj8dmYuXc5DJrXo/Ui7xYC5mwpaNAmlPG/IynE3I3IZTqMeDzRS XsV/GZTBav8XwlS5Z5/nRpRI8erXi30uSLpiiPLNE/yz7wtvkrMFDZkJ9N83aZdnKRnH /OBBWxixtrKuEyQ7gmGREQA/5t2RWCEYZHyiB2tNEYIe/7Cy55R0vGG5fVNDApvzEs8z NOTQ== X-Gm-Message-State: ALoCoQm1/LUHaRphAx+4J4uu37A3tuZLZSPGnoZ2N51Z3ARpNfxAviqz3yotJII+IS13J8qmdwMZ X-Received: by 10.236.126.170 with SMTP id b30mr2904228yhi.49.1392985624212; Fri, 21 Feb 2014 04:27:04 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.28.162 with SMTP id 31ls916203qgz.50.gmail; Fri, 21 Feb 2014 04:27:04 -0800 (PST) X-Received: by 10.220.53.66 with SMTP id l2mr4586886vcg.33.1392985624115; Fri, 21 Feb 2014 04:27:04 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id si7si2910280vdc.63.2014.02.21.04.27.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Feb 2014 04:27:04 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id le5so3168849vcb.16 for ; Fri, 21 Feb 2014 04:27:04 -0800 (PST) X-Received: by 10.220.98.204 with SMTP id r12mr4654491vcn.48.1392985624042; Fri, 21 Feb 2014 04:27:04 -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 u4csp30067vcz; Fri, 21 Feb 2014 04:27:03 -0800 (PST) X-Received: by 10.68.185.1 with SMTP id ey1mr8997275pbc.33.1392985623165; Fri, 21 Feb 2014 04:27:03 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iy3si7049329pbb.244.2014.02.21.04.27.02; Fri, 21 Feb 2014 04:27:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755464AbaBUM0z (ORCPT + 26 others); Fri, 21 Feb 2014 07:26:55 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:56324 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932086AbaBUM0W (ORCPT ); Fri, 21 Feb 2014 07:26:22 -0500 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 <0N1C00HB1IJXG590@mailout3.w1.samsung.com>; Fri, 21 Feb 2014 12:26:21 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-cc-530745ecc22e Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 24.41.23059.CE547035; Fri, 21 Feb 2014 12:26: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 <0N1C001ZAIJD5M60@eusync3.samsung.com>; Fri, 21 Feb 2014 12:26: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 Cc: Marek Szyprowski , Benjamin Herrenschmidt , Arnd Bergmann , Michal Nazarewicz , Grant Likely , Tomasz Figa , Sascha Hauer , Laura Abbott , Rob Herring , Olof Johansson , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Tomasz Figa , Kumar Gala , Nishanth Peethambaran , Marc , Josh Cartwright , Catalin Marinas , Will Deacon , Paul Mackerras Subject: [PATCH v5 11/11] powerpc: add support for reserved memory defined by device tree Date: Fri, 21 Feb 2014 13:25:27 +0100 Message-id: <1392985527-6260-12-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/xq7pvXNmDDZp3aVr8nXSM3eJDUyuz xftlPYwW84+cY7Xof7OQ1eLAnx2MFm96O1gsdq57x2hxtukNu8X2zhnsFl+uPGSy2PT4GqvF wrYlLBaXd81hs1h75C67xYaXB5ksll6/yGSx4HgLq8Wf6XIWp65/ZrNYc2Qxu8WE6WtZLFr3 HmG3+Lt9E4vFq4NtLBbrZ7xmsVi16w+jxcuPJ1gcZDzWzFvD6PH71yRGj9eTJzB6XO7rZfLY Oesuu0fPmxZWj02rOtk87lzbw+axeUm9x+1/j5k9rpxoYvVY9+cVk0f/XwOPubv6GD36tqxi 9Pi8SS5AMIrLJiU1J7MstUjfLoEr40nfbqaCJZwVm+euZmlgvM3excjJISFgIjHh8FM2CFtM 4sK99UA2F4eQwFJGiVe9t6GcbiaJva+fg3WwCRhKdL3tAusQEVjIKPF5HgtIEbPAfTaJjos9 TCAJYYFoia/fZjOC2CwCqhJ9jw6ygti8Ah4Stz68BxrEAbROQWLOJBuQMCdQ+MyB52BhIQF3 iXUdWRMYeRcwMqxiFE0tTS4oTkrPNdQrTswtLs1L10vOz93ECInHLzsYFx+zOsQowMGoxMNb IMEWLMSaWFZcmXuIUYKDWUmE96A+e7AQb0piZVVqUX58UWlOavEhRiYOTqkGxjnTrb7+1j16 w/3ObsUH6x+47dxw7+vlrcLvOdxmx73pD9txaUbj/nceX9wn3ha7M+Nbc0VeZtRWtndv5aT2 34rckLx8EZPE6+mXpv06/zXY89IH2Tipp7OYTmsJzZGV92Ro97con73W7XjuRQPrDXsKtil2 LNH/3jx530LLtgoGlfX3zjcff6SsxFKckWioxVxUnAgA1iN3T6UCAAA= Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.171 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Enable reserved memory initialization from device tree. Signed-off-by: Marek Szyprowski --- arch/powerpc/Kconfig | 1 + arch/powerpc/kernel/prom.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 957bf344c0f5..3b6617fed8fc 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -90,6 +90,7 @@ config PPC select BINFMT_ELF select OF select OF_EARLY_FLATTREE + select OF_RESERVED_MEM select HAVE_FTRACE_MCOUNT_RECORD select HAVE_DYNAMIC_FTRACE select HAVE_FUNCTION_TRACER diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index f58c0d3aaeb4..591986215801 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -588,6 +589,8 @@ static void __init early_reserve_mem_dt(void) memblock_reserve(base, size); } } + + early_init_fdt_scan_reserved_mem(); } static void __init early_reserve_mem(void)