Skip to content

Commit bba8e3f

Browse files
superna9999arndb
authored andcommitted
ARM64: dts: meson-gx: Add firmware reserved memory zones
The Amlogic Meson GXBB/GXL/GXM secure monitor uses part of the memory space, this patch adds these reserved zones. Without such reserved memory zones, running the following stress command : $ stress-ng --vm 16 --vm-bytes 128M --timeout 10s multiple times: Could lead to the following kernel crashes : [ 46.937975] Bad mode in Error handler detected on CPU1, code 0xbf000000 -- SError ... [ 47.058536] Internal error: Attempting to execute userspace memory: 8600000f [#3] PREEMPT SMP ... Instead of the OOM killer. Fixes: 4f24eda ("ARM64: dts: Prepare configs for Amlogic Meson GXBaby") Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Andreas Färber <[email protected]> [khilman: added Fixes tag, added _reserved and unit addresses] Signed-off-by: Kevin Hilman <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent feb3cbe commit bba8e3f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

arch/arm64/boot/dts/amlogic/meson-gx.dtsi

+18
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,24 @@
5555
#address-cells = <2>;
5656
#size-cells = <2>;
5757

58+
reserved-memory {
59+
#address-cells = <2>;
60+
#size-cells = <2>;
61+
ranges;
62+
63+
/* 16 MiB reserved for Hardware ROM Firmware */
64+
hwrom_reserved: hwrom@0 {
65+
reg = <0x0 0x0 0x0 0x1000000>;
66+
no-map;
67+
};
68+
69+
/* 2 MiB reserved for ARM Trusted Firmware (BL31) */
70+
secmon_reserved: secmon@10000000 {
71+
reg = <0x0 0x10000000 0x0 0x200000>;
72+
no-map;
73+
};
74+
};
75+
5876
cpus {
5977
#address-cells = <0x2>;
6078
#size-cells = <0x0>;

0 commit comments

Comments
 (0)