Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: rainier: Add reserved memory for ramoops

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-6-andrew@aj.id.au
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Andrew Jeffery and committed by
Joel Stanley
c7b74131 cbee028d

+9
+9
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts
··· 52 52 reg = <0xB8000000 0x04000000>; /* 64M */ 53 53 }; 54 54 55 + ramoops@bc000000 { 56 + compatible = "ramoops"; 57 + reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */ 58 + record-size = <0x8000>; 59 + console-size = <0x8000>; 60 + pmsg-size = <0x8000>; 61 + max-reason = <3>; /* KMSG_DUMP_EMERG */ 62 + }; 63 + 55 64 vga_memory: region@bf000000 { 56 65 no-map; 57 66 compatible = "shared-dma-pool";