[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZOR/NUuaEOpYMzVJ@skv.local>
Date: Tue, 22 Aug 2023 12:26:13 +0300
From: Andrey Skvortsov <andrej.skvortzov@...il.com>
To: Pavel Machek <pavel@....cz>
Cc: Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Chen-Yu Tsai <wens@...e.org>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Samuel Holland <samuel@...lland.org>,
Kees Cook <keescook@...omium.org>,
Tony Luck <tony.luck@...el.com>,
"Guilherme G. Piccoli" <gpiccoli@...lia.com>,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-sunxi@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org,
Jarrah Gosbell <kernel@...ef.tools>,
Arnaud Ferraris <arnaud.ferraris@...labora.com>
Subject: Re: [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone
A64
Hi Pavel,
On 23-08-21 18:08, Pavel Machek wrote:
> Hi!
>
> > 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 <andrej.skvortzov@...il.com>
> >
> > 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@...00000 {
> > + compatible = "ramoops";
> > + reg = <0x61000000 0x100000>;
> > + record-size = <0x20000>;
> > + console-size = <0x20000>;
> > + ftrace-size = <0x20000>;
> > + pmsg-size = <0x20000>;
> > + ecc-size = <16>;
> > + };
> > + };
>
> dts is supposed to be for hardware description, but this is really policy decision.
>
> Should we have something like "any dram is suitable for pstore"....?
Thanks for the review. I'll add into commit message more details why
this address was picked.
--
Best regards,
Andrey Skvortsov
Powered by blists - more mailing lists