OSDN Git Service

ARM: dts: aspeed: p10bmc: Enable ftrace in ramoops buffer
authorEddie James <eajames@linux.ibm.com>
Thu, 2 Dec 2021 22:45:25 +0000 (16:45 -0600)
committerJoel Stanley <joel@jms.id.au>
Mon, 28 Feb 2022 05:16:12 +0000 (15:46 +1030)
Increase the size of the buffer and set the ftrace-size property in order
to collect event tracing during a crash.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20211202224525.29178-1-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts

index 64bc5b6..578f9e2 100644 (file)
                /* 48MB region from the end of flash to start of vga memory */
                ramoops@bc000000 {
                        compatible = "ramoops";
-                       reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
+                       reg = <0xbc000000 0x200000>; /* 16 * (4 * 0x8000) */
                        record-size = <0x8000>;
                        console-size = <0x8000>;
+                       ftrace-size = <0x8000>;
                        pmsg-size = <0x8000>;
                        max-reason = <3>; /* KMSG_DUMP_EMERG */
                };
index 40958da..528b49e 100644 (file)
 
                ramoops@bc000000 {
                        compatible = "ramoops";
-                       reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */
+                       reg = <0xbc000000 0x200000>; /* 16 * (4 * 0x8000) */
                        record-size = <0x8000>;
                        console-size = <0x8000>;
+                       ftrace-size = <0x8000>;
                        pmsg-size = <0x8000>;
                        max-reason = <3>; /* KMSG_DUMP_EMERG */
                };