[PATCH 1/3] ARM: dts: rainier: Add reserved memory for ramoops

Andrew Jeffery andrew at aj.id.au
Fri Oct 2 16:34:12 AEST 2020


Reserve a 1MiB region of memory to record kmsg dumps and console state
into 16kiB ring-buffer slots. The sizing allows for up to 32 dumps to be
captured and read out.

Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
index e6f422edf454..46a0e95049fd 100644
--- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
@@ -47,6 +47,14 @@ reserved-memory {
 		#size-cells = <1>;
 		ranges;
 
+		ramoops at b7f00000 {
+			compatible = "ramoops";
+			reg = <0xb7f00000 0x100000>;
+			record-size = <0x4000>;
+			console-size = <0x4000>;
+			pmsg-size = <0x4000>;
+		};
+
 		flash_memory: region at B8000000 {
 			no-map;
 			reg = <0xB8000000 0x04000000>; /* 64M */
-- 
2.25.1



More information about the openbmc mailing list