From patchwork Thu Feb 20 10:52:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 25007 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f198.google.com (mail-vc0-f198.google.com [209.85.220.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2641F2066E for ; Thu, 20 Feb 2014 10:53:43 +0000 (UTC) Received: by mail-vc0-f198.google.com with SMTP id lf12sf3302386vcb.9 for ; Thu, 20 Feb 2014 02:53:42 -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=p3cnxFjMezEK8AP9oakYY/AWz5x14bC3jVqCzD4xi5U=; b=ccJ1/ct880PKxEZCTDBCWZt7YnJ0W9bJ7hm//77AE2b2K80lY+XljggVhoAiPdhxYH JM4NfJLxMVxImIej6RMd1zqWIJkZ+mTlRRZTKKzBProyp3SmeZXg5I2gBxN+iUboVrTV /fpQCszFQ5GHs/qazyYGFVFZGJ/HQkTXyphi6e0Dw9oac/2sCVodk2w75ie1SfHg13Mj FpUWLLZkWUyI2/0xLswLApPsE3e2t4Wi5yI+Z+aCWn5lVZ7UpOTmL0o/sWwZ5lClZuDQ GIzNhwDnAG78SOF6FftgB7+rBzZdxP0blC2WAfxCdyH9P5YCMSj7wBrtqkcUyXeGf9O7 ge2g== X-Gm-Message-State: ALoCoQmhruMqhhaNGGvpUKw9eyKI9wc13s6UY8B6dJZhnv7w1CtJf51aUrz1bZZxqbZo0oL+2Uty X-Received: by 10.236.126.170 with SMTP id b30mr356219yhi.49.1392893622791; Thu, 20 Feb 2014 02:53:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.38 with SMTP id n35ls458011qga.68.gmail; Thu, 20 Feb 2014 02:53:42 -0800 (PST) X-Received: by 10.52.159.197 with SMTP id xe5mr473665vdb.89.1392893622695; Thu, 20 Feb 2014 02:53:42 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id yb7si1320702vec.1.2014.02.20.02.53.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:53:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 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.179; Received: by mail-ve0-f179.google.com with SMTP id jx11so1689758veb.10 for ; Thu, 20 Feb 2014 02:53:42 -0800 (PST) X-Received: by 10.220.225.71 with SMTP id ir7mr621624vcb.50.1392893622622; Thu, 20 Feb 2014 02:53:42 -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.174.196 with SMTP id u4csp48393vcz; Thu, 20 Feb 2014 02:53:42 -0800 (PST) X-Received: by 10.181.13.40 with SMTP id ev8mr1911129wid.16.1392893621776; Thu, 20 Feb 2014 02:53:41 -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 ap4si4218443wjc.64.2014.02.20.02.53.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Feb 2014 02:53:41 -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 1WGREt-0007Wc-7s; Thu, 20 Feb 2014 10:52:23 +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 1WGREM-0007TQ-Th for linaro-mm-sig@lists.linaro.org; Thu, 20 Feb 2014 10:51:51 +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 <0N1A00BG6JKFS300@mailout4.w1.samsung.com> for linaro-mm-sig@lists.linaro.org; Thu, 20 Feb 2014 10:53:03 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-37-5305de8d5a77 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 3F.C1.18565.D8ED5035; Thu, 20 Feb 2014 10:53:01 +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:01 +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: Thu, 20 Feb 2014 11:52:46 +0100 Message-id: <1392893567-31623-7-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: H4sIAAAAAAAAAyXRXUjTURgG8M72/9ps9XdqHEREBl2oaBolJzHJLuJ0E9FIxQtt6VLLqWwp GWRrfi+dc0KamSmp0PCLpamrWY6lVrhcDofUZmY3zpWWfVhNyendj/fh4bl4Ga5QRwQzuflX pfJ8SZ6I4hNvtibtUXUuUhxjsyWgTd0EjdZUFVy02l0L0AOLlUT1ng4SvfCOAOSpqybQaN9X gKZVHhoN1zTT6Id9kYMMS3Mk6qjsJNCssZVCvRYnjQaWxzmoy2HjoPbJchJ5m0LRa8c6hXos D2mkbeolUIXJQqPNYQOB3OOVBOpvXiGQ3ugFaPnbFHEiBPe09QD8768O4JVGLcCzmjoOHm1x 0rjWU05ig76Gwh/mnlH4cedN/H5riYvtUyoS93ndHFy/GYPvGzUAawb1AK8bQs/6p/ETsqR5 ucVS+aHEC/wcu9ZBF24w15wbDZQSGGk14DGQPQKtViW56wNwxtVPqQGfEbJdAC6bVglfIGRv c6B5RugzxcZC9Rc15XMg2wHgehvhK3DZBQpW22o5viCATYEfh27tmGAPwsG3n3csYDGsWhza NrO9FgZbdQm+M489DctcTnJ3C0NjyyypBYJ2sEcPgqRFmYWKi9myw9EKiUxRlJ8dnVkgM4Dd P/4cAV0T8WbAMkC0V5DqIMRCUlKsKJGZAWS4okDBk3lSLBRkSUquS+UFGfKiPKnCDDgML1gJ 7ihd4qd+r0olHvVAwK+mcHEqvBye1v9HmyXfiivwZgbzzg3H+6+xrVV0CIzj6+HGvLU00tqY 8k5vvhQQZDn68rfbrTp1MqItPXFf2Fhy0n5T9bHnpeP3zkR2Zwx8ClyNX7ibPlZ5nJdkb5h+ 5IrSmG4oyoA++cr3To/fzPkREaHIkcRGcOUKyX8DABzepQIAAA== 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 v4 6/7] 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.179 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 | 2 ++ 2 files changed, 3 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..447550d6bd9b 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -160,6 +161,7 @@ void __init arm64_memblock_init(void) memblock_reserve(base, size); } + early_init_fdt_scan_reserved_mem(); dma_contiguous_reserve(0); memblock_allow_resize();