From patchwork Sat Apr 21 14:03:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 10354187 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A6AD760231 for ; Sat, 21 Apr 2018 15:10:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91EBB28936 for ; Sat, 21 Apr 2018 15:10:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83CE22890F; Sat, 21 Apr 2018 15:10:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C2C428927 for ; Sat, 21 Apr 2018 15:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ity6uebT1pBbSYrf0RqdYsFHRsf8gew+zsr4qG2CW7E=; b=RTh L9i7EooiwrAAyfWSzglxmXzVjJp+SIfethmRC0GM825ZYtbXPyfWUBkVq2uuSdRgAVBlZpExj3ced Cc4s8xa9UEBxIJRW83wTEEb6jrbxka2TT+/AK6MclTSNUpa9IvzvvXcZv4qL+N4bxqPWu51odOai7 63OLheCxelGZrXKrLNIh2GbIbLjEDzOOD0S45/pvX/wmQ+EON9d9UuZfSsnPNhBJDvmgiHL1TWfho HNj8W40WtP+SuE+pHPl2kpRm8SiG/As6hXcrKDlnp7d0K2CXSbEEA5ZlT1jcWlum//EtJWBbDw62C wgUsURoZrteWZOPCorO1VmfQfo8CDuw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9uA4-0002o7-LF; Sat, 21 Apr 2018 15:10:48 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9u9g-0002eq-Bw for linux-arm-kernel@bombadil.infradead.org; Sat, 21 Apr 2018 15:10:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OhYBxh59Dn5IzXYATWQoi38TB/8BHaVpYIJvuV4KEjM=; b=pIxBwGmTcjZMZZVBUze9yCgUO Aic/S9GjxOl56EUI6Rhyam3yVMLElpxpB166HUcUHmB1JLwcUfZt5YET8MuKc6oixTvhCE6ix/4iP yltTObibctwicP06WmYBcBqZjNjdD/lej23nNNk5XBT3TVU3wRtHy6RHX+kSR2P8bleM86ZCSE5N0 sosNuc4BkIjC7kMfdDbKi4O8kUPOzZHAuWgCO/lrp1lr9bM2xINW/NJxr3jabVq4o8Pgv6XF1nlR9 PC20XaxM36x1ua8qdtyILMyoOWxCcaCl6AoMsif6VF+bYCQMl+6Wqpo/gG8K7CRBQ0DjdGyvrVZKm TdpnfKAvQ==; Received: from mail.bootlin.com ([62.4.15.54]) by merlin.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9t7p-00041c-Mu for linux-arm-kernel@lists.infradead.org; Sat, 21 Apr 2018 14:04:26 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 63C2B207BF; Sat, 21 Apr 2018 16:04:08 +0200 (CEST) Received: from localhost.localdomain (unknown [91.224.148.103]) by mail.bootlin.com (Postfix) with ESMTPSA id 8432D207AC; Sat, 21 Apr 2018 16:03:57 +0200 (CEST) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth Subject: [PATCH] arm64: dts: marvell: armada-37xx: reserve memory for ATF Date: Sat, 21 Apr 2018 16:03:42 +0200 Message-Id: <20180421140342.25082-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180421_100425_876888_1481C1AD X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Antoine Tenart , Catalin Marinas , Will Deacon , Maxime Chevallier , Nadav Haklai , Rob Herring , Thomas Petazzoni , Miquel Raynal , Victor Gu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Victor Gu The PSCI area should be reserved in Linux for PSCI operations such as suspend/resume. Reserve 2MiB of memory which matches the area used by ATF (BL1, BL2, BL3x, see [1] in ATF source code). This covers all PSCI code and data area and is 2MiB aligned, which is required by Linux for huge pages handling. [1] plat/marvell/a3700/common/include/platform_def.h Signed-off-by: Victor Gu [miquel.raynal@bootlin.com: reword of commit message] Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 97207a61bc79..429ce91bfc39 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -22,6 +22,17 @@ serial1 = &uart1; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + psci-area@4000000 { + reg = <0 0x4000000 0 0x200000>; + no-map; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>;