From: Aaron Kling <webgeek1...@gmail.com> This allows using pstore on all such platforms. There are some differences per arch:
* Tegra132: Flounder does not appear to enumerate pstore and I do not have access to norrin, thus Tegra132 is left out of this commit. * Tegra210: Does not support ramoops carveouts in the bootloader, instead relying on a dowstream driver to allocate the carveout, hence this hardcodes a location matching what the downstream driver picks. * Tegra186 and Tegra194 on cboot: Bootloader fills in the address and size in a node specifically named /reserved-memory/ramoops_carveout, thus these cannot be renamed. * Tegra194 and Tegra234 on edk2: Bootloader looks up the node based on compatible, however the dt still does not know the address, so keeping the node name consistent on Tegra186 and newer. Signed-off-by: Aaron Kling <webgeek1...@gmail.com> --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 16 ++++++++++++++++ arch/arm64/boot/dts/nvidia/tegra194.dtsi | 16 ++++++++++++++++ arch/arm64/boot/dts/nvidia/tegra210.dtsi | 13 +++++++++++++ arch/arm64/boot/dts/nvidia/tegra234.dtsi | 16 ++++++++++++++++ 4 files changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 2b3bb5d0af17bd521f87db0484fcbe943dd1a797..2e2b27deb957dfd754e42dd03f5a1da5079971dc 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -2051,6 +2051,22 @@ pmu-denver { interrupt-affinity = <&denver_0 &denver_1>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops_carveout { + compatible = "ramoops"; + size = <0x0 0x200000>; + record-size = <0x00010000>; + console-size = <0x00080000>; + alignment = <0x0 0x10000>; + alloc-ranges = <0x0 0x0 0x1 0x0>; + no-map; + }; + }; + sound { status = "disabled"; diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 33f92b77cd9d9e530eae87a4bb8ba61993ceffeb..90ffea161a57a8986c2493573c73e3cf9e2c43c0 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -3105,6 +3105,22 @@ psci { method = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops_carveout { + compatible = "ramoops"; + size = <0x0 0x200000>; + record-size = <0x00010000>; + console-size = <0x00080000>; + alignment = <0x0 0x10000>; + alloc-ranges = <0x0 0x0 0x1 0x0>; + no-map; + }; + }; + tcu: serial { compatible = "nvidia,tegra194-tcu"; mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_RX(0)>, diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index b6c84d195c0ef9ae90721fada09ffd46a9c11fa3..00ae127e8b8af3fe3b95d8ce5986d937a4fc6325 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi @@ -2025,6 +2025,19 @@ pmu { &{/cpus/cpu@2} &{/cpus/cpu@3}>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops@b0000000 { + compatible = "ramoops"; + reg = <0x0 0xb0000000 0x0 0x200000>; + record-size = <0x00010000>; + console-size = <0x00080000>; + }; + }; + sound { status = "disabled"; diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi index 2601b43b2d8cadeb0d1f428018a82b144aa79392..36f35c6dc774d42aca8871dbfa0e0a16414cb860 100644 --- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi @@ -5723,6 +5723,22 @@ psci { method = "smc"; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops_carveout { + compatible = "ramoops"; + size = <0x0 0x200000>; + record-size = <0x00010000>; + console-size = <0x00080000>; + alignment = <0x0 0x10000>; + alloc-ranges = <0x0 0x0 0x1 0x0>; + no-map; + }; + }; + tcu: serial { compatible = "nvidia,tegra234-tcu", "nvidia,tegra194-tcu"; mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_RX(0)>, --- base-commit: 91e5bfe317d8f8471fbaa3e70cf66cae1314a516 change-id: 20250404-tegra-pstore-5bed3f721390 Best regards, -- Aaron Kling <webgeek1...@gmail.com>