All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: meson8b: add reserved memory zone to fix silent freezes
@ 2017-10-02 15:59 ` Linus Lüssing
  0 siblings, 0 replies; 21+ messages in thread
From: Linus Lüssing @ 2017-10-02 15:59 UTC (permalink / raw)
  To: linux-amlogic
  Cc: devicetree, linux-arm-kernel, linux-kernel, Carlo Caione,
	Martin Blumenstingl, Mark Rutland, Rob Herring, Russell King,
	Kevin Hilman, Linus Lüssing

So far, the stress-ng tool for instance quickly resulted in a silent
freeze of the system with no prior notice on a serial console when
running its filesystem or memory stressor classes.

Even with a panic-on-OOM and reboot-on-panic (vm.panic_on_oom=1,
kernel.panic=10) configured, the system would neither reboot nor
would the OOM killer get any chance to otherwise do its job.

The Amlogic reference source code uses a 2MB PHYS_OFFSET. With these 2MB
reserved via DT, stress-ng was able to run on an Odroid C1+ just fine for
several hours, the OOM killer was able to kill processes again and if
configured would successfully trigger a reboot of the system.

Fixes: 4a69fcd3a108 ("ARM: meson: Add DTS for Odroid-C1 and Tronfy MXQ boards")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>

---
The following stress-ng command worked fine now:
$ stress-ng -v --sequential 0 -t 120s --exclude sysfs,opcode --metrics
(5 hours runtime, tested on an Odroid C1+ with an 4.14-rc1 kernel + SMP
+ USB DTS patches)
---
 arch/arm/boot/dts/meson8b.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index bc278da..d75a5b5 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -83,6 +83,18 @@
 		};
 	};
 
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		/* 2 MiB reserved for Hardware ROM Firmware? */
+		hwrom@0 {
+			reg = <0x0 0x200000>;
+			no-map;
+		};
+	};
+
 	scu@c4300000 {
 		compatible = "arm,cortex-a5-scu";
 		reg = <0xc4300000 0x100>;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-10-28 20:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-02 15:59 [PATCH] ARM: dts: meson8b: add reserved memory zone to fix silent freezes Linus Lüssing
2017-10-02 15:59 ` Linus Lüssing
2017-10-02 15:59 ` Linus Lüssing
2017-10-02 15:59 ` Linus Lüssing
2017-10-02 18:39 ` Martin Blumenstingl
2017-10-02 18:39   ` Martin Blumenstingl
2017-10-02 18:39   ` Martin Blumenstingl
2017-10-02 18:39   ` Martin Blumenstingl
2017-10-02 23:47   ` Emiliano Ingrassia
2017-10-03  7:27     ` Linus Lüssing
2017-10-03  8:23       ` Emiliano Ingrassia
2017-10-03 10:54         ` Linus Lüssing
2017-10-04 20:16           ` Emiliano Ingrassia
2017-10-23  7:47             ` Linus Lüssing
2017-10-28 20:27               ` Linus Lüssing
2017-10-28 20:27                 ` Linus Lüssing
2017-10-28 20:27                 ` Linus Lüssing
2017-10-28 20:27                 ` Linus Lüssing
2017-10-06 22:59 ` Kevin Hilman
2017-10-06 22:59   ` Kevin Hilman
2017-10-06 22:59   ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.