lkml.org 
[lkml]   [2020]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] ARM: dts: tacoma: Add reserved memory for ramoops
Date
Reserve a 1.5MiB region of memory to record kmsg dumps, console and
userspace message state into 16kiB ring-buffer slots. The sizing allows
for up to 32 dumps to be captured and read out.

Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
---
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
index 46f2f538baba..4f7e9b490e1a 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
@@ -26,6 +26,15 @@ reserved-memory {
#size-cells = <1>;
ranges;

+ ramoops@b9e80000 {
+ compatible = "ramoops";
+ reg = <0xb9e80000 0x180000>;
+ record-size = <0x4000>;
+ console-size = <0x4000>;
+ pmsg-size = <0x4000>;
+ max-reason = <3>; /* KMSG_DUMP_EMERG */
+ };
+
flash_memory: region@ba000000 {
no-map;
reg = <0xb8000000 0x4000000>; /* 64M */
--
2.25.1
\
 
 \ /
  Last update: 2020-10-16 06:37    [W:0.129 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site