ARM: dts: tacoma: Add reserved memory for ramoops
authorAndrew Jeffery <andrew@aj.id.au>
Thu, 22 Oct 2020 01:47:31 +0000 (12:17 +1030)
committerJoel Stanley <joel@jms.id.au>
Thu, 19 Nov 2020 05:21:05 +0000 (15:51 +1030)
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 16 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>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20201022014731.2035438-7-andrew@aj.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts

index e86c22ce6d12328a54b6f1ec9ff52c9055a516c3..c1478d2db6026cedcdb266a91c75b3caf2c4e8ee 100644 (file)
                        reg = <0xb8000000 0x4000000>; /* 64M */
                };
 
+               ramoops@bc000000 {
+                       compatible = "ramoops";
+                       reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
+                       record-size = <0x8000>;
+                       console-size = <0x8000>;
+                       pmsg-size = <0x8000>;
+                       max-reason = <3>; /* KMSG_DUMP_EMERG */
+               };
+
                vga_memory: region@bf000000 {
                        no-map;
                        compatible = "shared-dma-pool";