From patchwork Fri Feb 21 12:25:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 3696461 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C49BF9F382 for ; Fri, 21 Feb 2014 13:07:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB5932018B for ; Fri, 21 Feb 2014 13:07:57 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A160220149 for ; Fri, 21 Feb 2014 13:07:56 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGpEq-0007ZX-4z; Fri, 21 Feb 2014 12:29:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGpE2-0000tp-2U; Fri, 21 Feb 2014 12:29:06 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGpBr-0000Yt-Aq for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2014 12:26:52 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1C00LC9IJWWR90@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 21 Feb 2014 12:26:20 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-c5-530745eb45e1 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 51.41.23059.BE547035; Fri, 21 Feb 2014 12:26:19 +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:19 +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 Subject: [PATCH v5 10/11] arm64: add support for reserved memory defined by device tree Date: Fri, 21 Feb 2014 13:25:26 +0100 Message-id: <1392985527-6260-11-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: H4sIAAAAAAAAAyWReUiTYQDGe7fv2nD1NU3eJCSEiAyvinyJJRaJb4oWGERF1JrDGW7KlpYS ZfNgm9cySikzTa2YOscKPFDRMY+8SpwapUtZl2eKUqBT8sv/fvweHp4/HoYvfkj4MImqW3K1 SprkRwmJ/s2e0YC5CDoueG1gL9oo7qbRkjaHj36/ygfohX2IREXzlSTqcDcBNF+gI1CzeRGg Qe08jRr1pTRadUzzkNU1RqLK3GoCjbSUUajePkkjy0wnD9WMD/NQRU82idwlvqhvfIVCdfYq GhlL6gmU02an0UajlUCznbkEaiidI5CpxQ3QzHIvEb4P15XXAby+Vgzw3CMjwCOFBTzc/HSS xvnz2SS2mvQUnhhrpfDb6vv4y6aLjx29WhKb3bM8XLQRjJ+3FAJc+M4E8IrV9/zuy0JJvDwp MU2uDgq7LlTkTelAyhv6jjPvF5UJ9JQBCBjIHoN2p42/zd7wo7NhywsZMVsD4PfMDoILxGwe D3Y/hhxTbAg0LBj+l73YSgBXygmuwGe/UlA3nM/jAk/2EsxasACOCfYAzLG30xyLWAz1rvek ATBba/thWbGE04ItPdDxk+a0mI2EZt1NIxBVgB0msEeeKkvR3EhQhgRqpEpNqiohUJastILt G1ebQFX3CRtgGeDnIUqBVJyYlKZp0pU2ABm+n5eoM4iOE4vipekZcnXyNXVqklxjAzxG4JMJ Kv+Mek9m9V2sd8We3fWhP6DrttE2cRVKdLK04+62k3cXj9bmMp8jl6dlXQnQ99lojONJbO/f hNDBB23jKjBVa3GGDQ1End5J36M2uhZazc0mf/0FtcU3ql37MmwyOvqbOlTZ/cPzyqdT+Ydj Xq9LwhWCMxEeRzKSlxznDh0cVvgRGoU0xJ+v1kj/AfeAx2KkAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140221_072651_508840_1F95F7D3 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Mark Rutland , Benjamin Herrenschmidt , Tomasz Figa , Will Deacon , Tomasz Figa , Paul Mackerras , Marek Szyprowski , Arnd Bergmann , Josh Cartwright , Catalin Marinas , Grant Likely , Laura Abbott , Ian Campbell , Pawel Moll , Stephen Warren , Sascha Hauer , Michal Nazarewicz , Marc , Nishanth Peethambaran , Rob Herring , Kumar Gala , Olof Johansson X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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();