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: 25112 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9B29120143 for ; Fri, 21 Feb 2014 12:27:22 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf8788896pab.10 for ; Fri, 21 Feb 2014 04:27:21 -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=QQczE+7hVAl2yt8o1FUqpKxvmiOJU3JD6WS+H5KJbwwBrKK4HvOLcz+mIPG4IN4INK QaYM4q+IHqv7E2XsZBLwz6NOsNWqjX7pcEBMQ/tj/skS8xXTKMRCW1IrolobFEJDP2TE Ua1So5eWGHfbTjqG5UI79xXFV7YYSm7y2Znz9yEGdD+0P6JuV0nZz2JAna/MZxGcyGzc cebyRJu9ioNMqSa0xLLUDS3atXl5mjqnh9u8EDTLXqnR4EXsxQSVWKPKD5stK2A/XWY7 Xtjv6rlzbmie8KsrOJyIAr1Robbwp8y9xyoFu80oYn/WQatB7NVghLs/3pluKtqi4QKJ mfOw== X-Gm-Message-State: ALoCoQncX4zr8sFkvPAFSEpkqcHYVM6OixXrJrBIpamlCuu+8wh+hJ/C6kR6HSdjXurWNzFDuiJR X-Received: by 10.68.197.73 with SMTP id is9mr3446830pbc.0.1392985641830; Fri, 21 Feb 2014 04:27:21 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.20 with SMTP id e20ls986116qgd.58.gmail; Fri, 21 Feb 2014 04:27:21 -0800 (PST) X-Received: by 10.52.191.9 with SMTP id gu9mr3864153vdc.37.1392985641668; Fri, 21 Feb 2014 04:27:21 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id ny8si2918165vcb.69.2014.02.21.04.27.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Feb 2014 04:27:21 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so3154337vcb.23 for ; Fri, 21 Feb 2014 04:27:21 -0800 (PST) X-Received: by 10.52.61.168 with SMTP id q8mr3848518vdr.40.1392985641597; Fri, 21 Feb 2014 04:27:21 -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 u4csp30089vcz; Fri, 21 Feb 2014 04:27:21 -0800 (PST) X-Received: by 10.14.103.67 with SMTP id e43mr8018467eeg.94.1392985640443; Fri, 21 Feb 2014 04:27:20 -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 h9si15650665eex.7.2014.02.21.04.27.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 21 Feb 2014 04:27:20 -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 1WGpB2-0004Kl-3U; Fri, 21 Feb 2014 12:26:00 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WGpAB-0004EU-U9 for linaro-mm-sig@lists.linaro.org; Fri, 21 Feb 2014 12:25:08 +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 linaro-mm-sig@lists.linaro.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 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 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 v5 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.220.178 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();