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

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

authored by

Andrew Jeffery and committed by
Joel Stanley
c1fc133f c7b74131

+9
+9
arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts
··· 31 31 reg = <0xb8000000 0x4000000>; /* 64M */ 32 32 }; 33 33 34 + ramoops@bc000000 { 35 + compatible = "ramoops"; 36 + reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */ 37 + record-size = <0x8000>; 38 + console-size = <0x8000>; 39 + pmsg-size = <0x8000>; 40 + max-reason = <3>; /* KMSG_DUMP_EMERG */ 41 + }; 42 + 34 43 vga_memory: region@bf000000 { 35 44 no-map; 36 45 compatible = "shared-dma-pool";