ARM64: dts: meson-gx: Add firmware reserved memory zones
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 20 Jan 2017 16:20:25 +0000 (08:20 -0800)
committerArnd Bergmann <arnd@arndb.de>
Fri, 27 Jan 2017 15:46:43 +0000 (16:46 +0100)
commitbba8e3f42736cf7f974968a818e53b128286ad1d
treef30cbaf586d2b1cfaf2660985e90ff52bd660449
parentfeb3cbea0946c67060e2d5bcb7499b0a6f6700fe
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>
arch/arm64/boot/dts/amlogic/meson-gx.dtsi