summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2023-04-12 13:06:55 +0300
committerWilliam A. Kennington III <wak@google.com>2023-04-29 01:46:11 +0300
commit755d78bc206d6da620cdfeef3d4c0f27120e9c83 (patch)
treef850e5ece21360cf5cce3c839444a5ce4dc3965a
parent85330d2f2df62ed9ed3fb36b8b55887e6e89ba83 (diff)
downloadopenbmc-755d78bc206d6da620cdfeef3d4c0f27120e9c83.tar.xz
meta-google: linux: Add more debug features
These features ensure that the kernels we ship are more stable, and give us early warnings when we have deadlock causing bugs. Change-Id: I2616f5faa8f98f84c86a6e6683c8b4a322c535db Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--meta-google/recipes-kernel/linux/files/gbmc-dev.cfg1
-rw-r--r--meta-google/recipes-kernel/linux/files/gbmc.cfg9
2 files changed, 10 insertions, 0 deletions
diff --git a/meta-google/recipes-kernel/linux/files/gbmc-dev.cfg b/meta-google/recipes-kernel/linux/files/gbmc-dev.cfg
index d37b1163ef..0576b440ac 100644
--- a/meta-google/recipes-kernel/linux/files/gbmc-dev.cfg
+++ b/meta-google/recipes-kernel/linux/files/gbmc-dev.cfg
@@ -8,6 +8,7 @@ CONFIG_FUNCTION_TRACER=y
CONFIG_FUNCTION_GRAPH_TRACER=y
CONFIG_STACK_TRACER=y
CONFIG_DYNAMIC_FTRACE=y
+CONFIG_TEST_LOCKUP=y
# We want to allow for sysrqs over the console
CONFIG_MAGIC_SYSRQ=y
diff --git a/meta-google/recipes-kernel/linux/files/gbmc.cfg b/meta-google/recipes-kernel/linux/files/gbmc.cfg
index c8a5364464..e2a44b1e34 100644
--- a/meta-google/recipes-kernel/linux/files/gbmc.cfg
+++ b/meta-google/recipes-kernel/linux/files/gbmc.cfg
@@ -64,3 +64,12 @@ CONFIG_PRINTK_TIME=y
CONFIG_WATCHDOG_SYSFS=y
CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT=y
CONFIG_WATCHDOG_PRETIMEOUT_GOV=y
+
+# All image debug features
+CONFIG_PANIC_ON_OOPS=y
+CONFIG_PANIC_TIMEOUT=10
+CONFIG_SOFTLOCKUP_DETECTOR=y
+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
+CONFIG_DETECT_HUNG_TASK=y
+CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y
+CONFIG_WQ_WATCHDOG=y