From patchwork Fri Dec 21 16:45:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 10740707 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8303B13BF for ; Fri, 21 Dec 2018 16:45:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 708DE2841F for ; Fri, 21 Dec 2018 16:45:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65004285A8; Fri, 21 Dec 2018 16:45:43 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 4EA4D2856F for ; Fri, 21 Dec 2018 16:45:42 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=auKoS2UVpFqt7sGZcVkYQkjWxUDvEL+Ycv7m0csAS3A=; b=N+ZZs5bNKy24uD ZuQiHxoab0RsQMkQ/BonjbG89JRoVRKcMyxPPPy1bcVZ3UwEU1DWJqLnahkymGtGKrSMmiK3zTJtC EQJ7BWe4a3buWi2OKyIWngAsW3p8RXIdtBUbHxwCzp3jSvc7SabtZKpLNeDX0tD/nmCsOHqGsoAdo p7TkRpV6QLc3BsR81OfrFbC+faICVGxS17F2EuLs61W3SXiit2wIso7x7zfpF4pYfU0KzBcwV2kWD 9lMWk5CHSh7XRVKhnFISQIxY/NKrg7qOt0isuitVtrkSwLZvkhy0QKs6zPfm50wPNwXOB1tvoa0nP EEDIbC2eTWuJhfVUAYdQ==; 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 1gaNvf-0007TI-1E; Fri, 21 Dec 2018 16:45:39 +0000 Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gaNvb-0007Rh-UP for linux-arm-kernel@lists.infradead.org; Fri, 21 Dec 2018 16:45:37 +0000 Received: from macchiato.fritz.box ([84.118.159.3]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MQQzk-1gxaBL1FoS-00TmfP; Fri, 21 Dec 2018 17:45:15 +0100 From: Heinrich Schuchardt To: Jason Cooper , Andrew Lunn Subject: [PATCH v2 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area Date: Fri, 21 Dec 2018 17:45:03 +0100 Message-Id: <20181221164503.5128-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:NTsIIujFJRNYukWdFSnzEwLKoB+tAHo8mjNhGy1vmiPMhNrt9yB 0RV2/cbI8AFWbZeEw/cR3Tx5fgzAtQK/oDQNowpRvsGqJ+90JoEpmTcruX7R8Vhtpy6n6oj U3sGGP8Ll9FsIcAVT1NSa0ZdMGsX7M/SS5wNKcX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 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181221_084536_280095_9E30FCDA X-CRM114-Status: GOOD ( 10.96 ) 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, Heinrich Schuchardt , Gregory Clement , linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth 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 The memory area [0x4000000-0x4200000[ is occupied by the PSCI firmware. Any attempt to access it from Linux leads to an immediate crash. So let's make the same memory reservation as the vendor kernel. Signed-off-by: Heinrich Schuchardt --- v2 Move the change from armada-8040-mcbin.dts to armada-ap806.dtsi. I only have a MACCHIATObin for testing but https://github.com/MarvellEmbeddedProcessors/linux-marvell has the reservation in that file. --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi index 7d94c1fa592a..f8dafef83db0 100644 --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi @@ -28,6 +28,17 @@ method = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + psci-area@4000000 { + reg = <0x0 0x4000000 0x0 0x200000>; + no-map; + }; + }; + ap806 { #address-cells = <2>; #size-cells = <2>;