Re: [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64

From: Andre Przywara
Date: Thu Jul 27 2023 - 10:58:16 EST


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 <andrej.skvortzov@xxxxxxxxx>

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>;