diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2017-01-20 11:20:25 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2017-01-27 10:46:43 -0500 |
commit | bba8e3f42736cf7f974968a818e53b128286ad1d (patch) | |
tree | f30cbaf586d2b1cfaf2660985e90ff52bd660449 | |
parent | feb3cbea0946c67060e2d5bcb7499b0a6f6700fe (diff) |
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: 4f24eda8401f ("ARM64: dts: Prepare configs for Amlogic Meson GXBaby")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
[khilman: added Fixes tag, added _reserved and unit addresses]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index eada0b58ba1c..0cbe24b49710 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi | |||
@@ -55,6 +55,24 @@ | |||
55 | #address-cells = <2>; | 55 | #address-cells = <2>; |
56 | #size-cells = <2>; | 56 | #size-cells = <2>; |
57 | 57 | ||
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 | |||
58 | cpus { | 76 | cpus { |
59 | #address-cells = <0x2>; | 77 | #address-cells = <0x2>; |
60 | #size-cells = <0x0>; | 78 | #size-cells = <0x0>; |