Skip to content

Commit

Permalink
ARM: dts: rainier: Add reserved memory for ramoops
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Joel Stanley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joel Stanley <[email protected]>
  • Loading branch information
amboar authored and shenki committed Nov 19, 2020
1 parent cbee028 commit c7b7413
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@
reg = <0xB8000000 0x04000000>; /* 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";
Expand Down

0 comments on commit c7b7413

Please sign in to comment.