From patchwork Thu Feb 20 10:52:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25004 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B52732066E for ; Thu, 20 Feb 2014 10:53:30 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf6696159oag.1 for ; Thu, 20 Feb 2014 02:53:30 -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=VzVA/YI3DFWJj/eWzQEC+dM8ZM3Bx18f5q0Lxa34EQA=; b=QrWBITKviKRRmJGDI4yk/G8kWPGfF8YpGV7qwVGEzXLt835Xtz0ZNhKH6h/g/4yk/5 drOv1KPcTsHctdjwlR/PxaF0sG1zs3qWcpaNoUUUt57s9xm/74V8JyXeiK7sKlicSFCs qwa+17HZ8Ddky+ILtnDmF6WsZ90Lst7xCOpvYlsJEyTyXYCNgww3s7PJI3aYvml/DfWj 72nEAjifGrDk9PWYq/x9SMlr9SoRu1Y9+j7ik0ae1+x43YowTdX9SsrB7cuV5PNDXLml 8xhmjdGr+CiEuYM1cxtwQvuxZHz07est7tpZBbfx8Wq+H1G+GW0bqek1LpYspj73E/YH XCaQ== X-Gm-Message-State: ALoCoQkVg/AUC+4GPohOMT/dsb/BDBx0k12crZUboNaaB4cdympfw9WCKu08Ps1SsiszB8pDMRM1 X-Received: by 10.182.156.11 with SMTP id wa11mr492196obb.12.1392893610180; Thu, 20 Feb 2014 02:53:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.161 with SMTP id o30ls492145qga.94.gmail; Thu, 20 Feb 2014 02:53:30 -0800 (PST) X-Received: by 10.220.47.10 with SMTP id l10mr629770vcf.56.1392893610068; Thu, 20 Feb 2014 02:53:30 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id kl10si1305924vdb.77.2014.02.20.02.53.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:53:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 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.174; Received: by mail-vc0-f174.google.com with SMTP id im17so1710010vcb.19 for ; Thu, 20 Feb 2014 02:53:30 -0800 (PST) X-Received: by 10.52.164.39 with SMTP id yn7mr497867vdb.25.1392893609986; Thu, 20 Feb 2014 02:53:29 -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 u4csp48376vcz; Thu, 20 Feb 2014 02:53:29 -0800 (PST) X-Received: by 10.68.133.193 with SMTP id pe1mr1298093pbb.56.1392893609182; Thu, 20 Feb 2014 02:53:29 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2944585pbl.148.2014.02.20.02.53.27; Thu, 20 Feb 2014 02:53:27 -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 S1753527AbaBTKxJ (ORCPT + 26 others); Thu, 20 Feb 2014 05:53:09 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:9267 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753379AbaBTKxF (ORCPT ); Thu, 20 Feb 2014 05:53:05 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0N1A00E7DJKG6800@mailout4.w1.samsung.com>; Thu, 20 Feb 2014 10:53:05 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-6a-5305de8f476a Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 15.5C.23059.F8ED5035; Thu, 20 Feb 2014 10:53:03 +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:03 +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 v4 7/7] powerpc: add support for reserved memory defined by device tree Date: Thu, 20 Feb 2014 11:52:47 +0100 Message-id: <1392893567-31623-8-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: H4sIAAAAAAAAA+NgFprEIsWRmVeSWpSXmKPExsVy+t/xK7r991iDDd58E7T4O+kYu8WHplZm i/fLehgt5h85x2rR/2Yhq8WBPzsYLd70drBY7Fz3jtHibNMbdovtnTPYLb5cechksenxNVaL hW1LWCwu75rDZrH2yF12iw0vDzJZLL1+kcliwfEWVos/0+UsTl3/zGax5shidosJ09eyWLTu PcJu8Xf7JhaLVwfbWCzWz3jNYrFq1x9Gi5cfT7A4yHismbeG0eP3r0mMHq8nT2D0uNzXy+Sx c9Zddo+eNy2sHptWdbJ53Lm2h81j85J6j9v/HjN7XDnRxOqx7s8rJo/+vwYec3f1MXr0bVnF 6PF5k1yAYBSXTUpqTmZZapG+XQJXxrPehywFazkrNp9aydrA+IS9i5GTQ0LAROL53U9MELaY xIV769m6GLk4hASWMkr8XbCCFSQhJNDNJPH6uTeIzSZgKNH1tosNxBYRWMgo8XkeC0gDs8B9 NomOiz1gk4QFIiVWnH3FAmKzCKhKtO2fxgxi8wp4SLxcMx8ozgG0TUFiziQbkDCngKdE8727 ULs8JHbNusw6gZF3ASPDKkbR1NLkguKk9FxDveLE3OLSvHS95PzcTYyQePyyg3HxMatDjAIc jEo8vBHXWYKFWBPLiitzDzFKcDArifBuu8kaLMSbklhZlVqUH19UmpNafIiRiYNTqoFRk9Nr 95HL0wtvl2wRilCe2SvrMLkgzqEiU/tWxKfZj5KDVinzr39UESP/wsNYSpC3z4drc9C+/Ls5 yx2UOo3uPykWk5lTu2qJ8Q6vQLt+kYu3P8g8nXjbg4XPIcdIsOK7sN6/yxqn5B3ZanZumSb7 4Qeb3v7E2MbLqw38xf9uWBuddCPPJVuJpTgj0VCLuag4EQCFqE4jpQIAAA== 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.174 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..b814262a2048 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)