Skip to contentSkip to conversation

ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone

PATCH Applied Neil Armstrong 4 participants 5 messages Oct 11, 2017 – Nov 28, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone

This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping.
But products had been sold using the previous mapping.

This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory.

In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier.

[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html

Fixes bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones")
---
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +8 -0
index d8dd329..fb8d76a 100644
@@ -49,6 +49,14 @@
 
 / {
 	compatible = "amlogic,meson-gxl";
+
+	reserved-memory {
+		/* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
+		secmon_reserved_alt: secmon at 05000000 {
+			reg = <0x0 0x05000000 0x0 0x300000>;
+			no-map;
+		};
+	};
 };
 
 &ethmac {
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 8 lines · Neil Armstrong

This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping.
But products had been sold using the previous mapping.

This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory.

Quoted 8 lines

In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier.

[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html

Fixes bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones")

Applied to v4.15/dt64,

Thanks,

Kevin

Acked-by Tested-by on v1 1/1
#2 lore raw
In reply to Neil Armstrong
Quoted 11 lines · Neil Armstrong

This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping.
But products had been sold using the previous mapping.

This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory.

In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier.

Quoted 8 lines

[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html

Fixes bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones")
---
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Thanks. Without this patch, memtest dies early on at physical address 0x05100000 due to an SError. With the patch, things work well, so:

Please also CC stable, because random SErrors under load aren't much fun ;)

Cheers,

Will

maintainer
#3 lore raw
In reply to Neil Armstrong

Greg,

Quoted 8 lines · Neil Armstrong

This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping.
But products had been sold using the previous mapping.

This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory.

Quoted 8 lines

In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier.

[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html

Fixes bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones")

I missed the Fixes tag on this one, but it's now commit 4ee8e51b9edf upstream.

Please apply to stable v4.10+

Thanks,

Kevin

#4 lore raw
Quoted 17 lines · Kevin Hilman

Greg,

Quoted 13 lines · Neil Armstrong

This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping.
But products had been sold using the previous mapping.

This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory.

In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier.

[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html

Quoted 7 lines
Quoted 3 lines
Fixes bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones")

I missed the Fixes tag on this one, but it's now commit 4ee8e51b9edf upstream.

Please apply to stable v4.10+

Now applied, thanks.

greg k-h