Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5767558imu; Wed, 26 Dec 2018 08:35:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ziZWKYG8v+my8jdeZV79RJ0BhFdXyxIxbUF/B0GxyPdSAIX7jDoDOT6Kzc3YoAachqbv8 X-Received: by 2002:a17:902:5066:: with SMTP id f35mr20454954plh.78.1545842149733; Wed, 26 Dec 2018 08:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545842149; cv=none; d=google.com; s=arc-20160816; b=vDnsGOcnMRwH9AXkn2Oj1/eWtye8Y5GNj8IGcGB303QtS5n4plOZQl3aP8YlW7RMO2 9/nWyd+OmdMYsEYMW0xdF65PGyVs/SPBNAnXyPzlqFQ4wx0bHZ04EQy1CoAO5qd9N2G5 h5MsUtfaR12HYVb7c5c4szt1CS/woa1QxsY3QiumGOR/UGJWSUA9GfB6WVrjQpopVesF ln5ppaN0sKdGHNGPQoifNOC4E9jyTFrnPS6kz5yU4LM5ua60yjmTY2Jqu6N4yQMxD6RY jTpNcHBdOHRJ0O3h+0jUrCBshMmqxGbnLaNR2JV3bXWB43omt8Xx51XOd3yzMVgaQyMT Xm7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=+pWJ9zJNzxgrACa80LkXRkMzr8sVqNz1pm2LxztBOOs=; b=vGfmfAntZO67va442sV4M1DIYbCegtuLPg2XJSaWDqKvmsVaOFhp79566r6g5Zdwkp w2HhSJrBZ9na7ieeMCkPWZYmHIjU0Cfgzf3/DzpVpwIpW5xzdVcadf9hQtCv0bEvzRHI wp2yVzITd94F3CZPdQniEj4W2A4RoynUoxfSIMYcx5M7ejM4KURn7Gmkq/2FHDM6De+0 UeipHxUQuUBH4/TFeb5iayfx6XWsf81VH2S+6Dw6ZVH+R+MtzLoJ07+7ySMCIrB2XdPJ 0onNPMNCLazGmk/3a/WCpiGQMxmYkIT2WQfNvyTbULQOH6sgDfuydTRR4T1t7nFnBitE S0mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j132si5661077pfc.84.2018.12.26.08.35.34; Wed, 26 Dec 2018 08:35:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727284AbeLZQQj convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Dec 2018 11:16:39 -0500 Received: from mail.bootlin.com ([62.4.15.54]:48908 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbeLZQQj (ORCPT ); Wed, 26 Dec 2018 11:16:39 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 4C634209ED; Wed, 26 Dec 2018 17:16:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED,URIBL_RHS_DOB shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 196362070E; Wed, 26 Dec 2018 17:16:37 +0100 (CET) From: Gregory CLEMENT To: Heinrich Schuchardt Cc: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] arm64: dts: marvell: armada-ap806: reserve PSCI area References: <20181221164503.5128-1-xypron.glpk@gmx.de> Date: Wed, 26 Dec 2018 17:16:37 +0100 In-Reply-To: <20181221164503.5128-1-xypron.glpk@gmx.de> (Heinrich Schuchardt's message of "Fri, 21 Dec 2018 17:45:03 +0100") Message-ID: <87h8f09sbe.fsf@bootlin.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heinrich, On ven., déc. 21 2018, Heinrich Schuchardt wrote: > 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 We got a similar patch one month ago and Russell King pointed that it didn't match waht he saw on his MACCHIATObin: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/612360.html on mine under U-Boot I got: Marvell>> md 0x4000000 04000000: 00000000 00000007 00000005 00000040 ............@... 04000010: 00000001 00001000 00000007 00000001 ................ 04000020: 00000008 00000000 00000009 00000000 ................ 04000030: 0000000a 00000000 ffffffff ffffffff ................ 04000040: ffffffff ffffffff ffffffff ffffffff ................ 04000050: ffffffff ffffffff ffffffff ffffffff ................ 04000060: ffffffff ffffffff ffffffff ffffffff ................ 04000070: ffffffff ffffffff ffffffff ffffffff ................ 04000080: ffffffff ffffffff ffffffff ffffffff ................ 04000090: ffffffff ffffffff ffffffff ffffffff ................ 040000a0: ffffffff ffffffff ffffffff ffffffff ................ 040000b0: ffffffff ffffffff ffffffff ffffffff ................ 040000c0: ffffffff ffffffff ffffffff ffffffff ................ 040000d0: ffffffff ffffffff ffffffff ffffffff ................ 040000e0: ffffffff ffffffff ffffffff ffffffff ................ 040000f0: ffffffff ffffffff ffffffff ffffffff ................ In my case I have an old ATF, however this kind of setting should be done by the bootloader. I am interested by your claim about causing an immediate crash when accessing this region. How did you trigger it? Gregory > --- > 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>; > -- > 2.19.2 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com