Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1134rwb; Thu, 27 Jul 2023 08:31:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBXjgUI2K9l9tSXEENV35zzkrUZM7zWWvw+/LyOrfd7fzQAq/00bGQ3tMm6drpWavkLFpY X-Received: by 2002:a17:906:7791:b0:989:450:e585 with SMTP id s17-20020a170906779100b009890450e585mr2332264ejm.45.1690471902543; Thu, 27 Jul 2023 08:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690471902; cv=none; d=google.com; s=arc-20160816; b=CCyOLtAHjwzs4orusYsNflPJQ2ErOL440Uwx0RGF6p3QmP33c0PBWF9adFEbO2y4V5 b9HMOeTj+yeXRDUEfmVhPIDayxF9c3XSWZPkmFclEaOm7ydHobgnZkW+5Zx2F/FpZy68 oDgHJUJtjiIpdgnRj1BEzTSigeXqLyibs8hFltFo1ZFCpvQyOKAXP9XJ0N7H0RfDkNuA RpovoLfHQO5YVsFZwUOQEn1BqG5PPQm5JXJDMoJUMgnMHcNktDvuo3tIL8GzmJ2ceY7I yoN426nHFCaR3J/7JAxLjBNAOxvqhE/8OT6op6onh3CbghHhrj5YJ0eGZdoLG4FtuwYV oC7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version:date :message-id; bh=n8UnDL3fAkcQcZZs+oT26jwFDAytofLSPT9s85P0PA0=; fh=YUZg/tHSIc78RPLqAjY50ZH0ZBSrC+PzJBkyV7/J4Yg=; b=Y7qACOMOhmsDawJPwZ4O+DI4yJ2TWOG1AuHESOG+uXysvvXgT5wPMM8+Kg8WbsZN8J H5if+kYtUffvG/g+0dw5on3a+4XrQPPxhK+qa5d59DXu2xR9cxINJfGQqEUbMdi9tdpN DNwnzjtcdG9RKEaAHpjTswfdKDt+yaTvS8CK9nKw27UNcoSrqui3dAC0kOwYJfnlf7IA WLm3jXaF65/FRmRXV2AOIRaZFGbSw3a+kq6NmmASGG5Ln7oa9/SdwAnqlV9U2r/o2wh9 Q5ZRLvTn2h880GsTXbnZTEYENasEV2aca/GVSGZ+NOujMwMS556cfT5R2FlhET+UTWte fsDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a170906298700b00993629db66csi1097227eje.226.2023.07.27.08.31.13; Thu, 27 Jul 2023 08:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232603AbjG0O6O (ORCPT + 99 others); Thu, 27 Jul 2023 10:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232469AbjG0O6N (ORCPT ); Thu, 27 Jul 2023 10:58:13 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AAF4196; Thu, 27 Jul 2023 07:58:11 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1506CD75; Thu, 27 Jul 2023 07:58:54 -0700 (PDT) Received: from [10.32.102.67] (e110479.arm.com [10.32.102.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F9D33F5A1; Thu, 27 Jul 2023 07:58:07 -0700 (PDT) Message-ID: <7f4a7739-cb03-bda8-df90-e8eb119b732b@arm.com> Date: Thu, 27 Jul 2023 15:57:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64 To: Andrey Skvortsov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Jarrah Gosbell , Arnaud Ferraris References: <20230724213457.24593-1-andrej.skvortzov@gmail.com> Content-Language: en-US From: Andre Przywara In-Reply-To: <20230724213457.24593-1-andrej.skvortzov@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 24/07/2023 22:34, Andrey Skvortsov wrote: > This patch reserves some memory in the DTS and sets up a > pstore device tree node to enable pstore support. > > Signed-off-by: Andrey Skvortsov > > Gbp-Pq: Topic pinephone > Gbp-Pq: Name 0161-arm64-dts-pinephone-Add-pstore-support-for-PinePhone.patch > --- > .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > index 87847116ab6d..84f9410b0b70 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > @@ -19,6 +19,22 @@ aliases { > serial0 = &uart0; > }; > > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + pstore_mem: ramoops@61000000 { > + compatible = "ramoops"; > + reg = <0x61000000 0x100000>; So what's the significance of this address? That's 528MB into DRAM, so somewhat in the middle of it, fragmenting the physical address space. And is there any other firmware component that needs to know about this address? Cheers, Andre > + record-size = <0x20000>; > + console-size = <0x20000>; > + ftrace-size = <0x20000>; > + pmsg-size = <0x20000>; > + ecc-size = <16>; > + }; > + }; > + > backlight: backlight { > compatible = "pwm-backlight"; > pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;