diff --git a/app/boards/intel_adsp/Kconfig.defconfig b/app/boards/intel_adsp/Kconfig.defconfig index a7423ef1d630..0fd7126d58d1 100644 --- a/app/boards/intel_adsp/Kconfig.defconfig +++ b/app/boards/intel_adsp/Kconfig.defconfig @@ -174,6 +174,24 @@ config LOG_TIMESTAMP_64BIT config ZTEST default SOF_BOOT_TEST_SUPPORTED && SOF_BOOT_TEST_ALLOWED +# Zephyr / core dump +# ---------------------------------------- +# Enable core dump on all Intel ADSP targets, not just the debug (-d) build, +# so that firmware crashes can always be analysed offline. +# +# DEBUG_COREDUMP has no in-tree default, so configdefault is used to force it +# on without weakening its "depends on ARCH_SUPPORTS_COREDUMP" dependency +# (SOC_FAMILY_INTEL_ADSP selects ARCH_SUPPORTS_COREDUMP). +# +# The coredump backend and memory-dump amount are Kconfig 'choice' symbols +# with an in-tree default. As noted above, this defconfig is sourced after the +# Zephyr tree, so choice defaults cannot be overridden from here; the ADSP +# memory-window backend and minimal dump are therefore selected in each Intel +# board .conf file instead. + +configdefault DEBUG_COREDUMP + default y + # Zephyr / debug slot manager # ---------------------------------------- diff --git a/app/boards/intel_adsp_ace15_mtpm.conf b/app/boards/intel_adsp_ace15_mtpm.conf index 0b5472cd282a..65cf5a620db1 100644 --- a/app/boards/intel_adsp_ace15_mtpm.conf +++ b/app/boards/intel_adsp_ace15_mtpm.conf @@ -49,7 +49,9 @@ CONFIG_LIBRARY_BUILD_LIB=y CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features -CONFIG_DEBUG_COREDUMP=y +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192 diff --git a/app/boards/intel_adsp_ace20_lnl.conf b/app/boards/intel_adsp_ace20_lnl.conf index c0b225650c01..6c45ffef2007 100644 --- a/app/boards/intel_adsp_ace20_lnl.conf +++ b/app/boards/intel_adsp_ace20_lnl.conf @@ -34,6 +34,11 @@ CONFIG_LIBRARY_MANAGER=y CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. +CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y +CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_COUNTER=y CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_LLEXT=y diff --git a/app/boards/intel_adsp_ace30_ptl.conf b/app/boards/intel_adsp_ace30_ptl.conf index b6ac41938398..6697f8d5523a 100644 --- a/app/boards/intel_adsp_ace30_ptl.conf +++ b/app/boards/intel_adsp_ace30_ptl.conf @@ -37,6 +37,11 @@ CONFIG_LIBRARY_DEFAULT_MODULAR=y CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. +CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y +CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_COUNTER=y CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_LLEXT=y diff --git a/app/boards/intel_adsp_ace30_wcl.conf b/app/boards/intel_adsp_ace30_wcl.conf index 2196af333e65..98f5ba341fc3 100644 --- a/app/boards/intel_adsp_ace30_wcl.conf +++ b/app/boards/intel_adsp_ace30_wcl.conf @@ -37,6 +37,11 @@ CONFIG_LIBRARY_DEFAULT_MODULAR=y CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. +CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y +CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_LLEXT=y CONFIG_LLEXT_STORAGE_WRITABLE=y diff --git a/app/boards/intel_adsp_ace40_nvl.conf b/app/boards/intel_adsp_ace40_nvl.conf index bb39cf026ada..4576e5a45210 100644 --- a/app/boards/intel_adsp_ace40_nvl.conf +++ b/app/boards/intel_adsp_ace40_nvl.conf @@ -35,6 +35,11 @@ CONFIG_TRACE=n CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. +CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y +CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_LLEXT=y CONFIG_LLEXT_STORAGE_WRITABLE=y diff --git a/app/boards/intel_adsp_ace40_nvls.conf b/app/boards/intel_adsp_ace40_nvls.conf index bb39cf026ada..4576e5a45210 100644 --- a/app/boards/intel_adsp_ace40_nvls.conf +++ b/app/boards/intel_adsp_ace40_nvls.conf @@ -35,6 +35,11 @@ CONFIG_TRACE=n CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. +CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y +CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192 CONFIG_LLEXT=y CONFIG_LLEXT_STORAGE_WRITABLE=y diff --git a/app/boards/intel_adsp_cavs25.conf b/app/boards/intel_adsp_cavs25.conf index 7cd938ec7ff8..7b2a260db89d 100644 --- a/app/boards/intel_adsp_cavs25.conf +++ b/app/boards/intel_adsp_cavs25.conf @@ -30,7 +30,9 @@ CONFIG_LIBRARY_MANAGER=n CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features -CONFIG_DEBUG_COREDUMP=y +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192 diff --git a/app/boards/intel_adsp_cavs25_tgph.conf b/app/boards/intel_adsp_cavs25_tgph.conf index 0c1d1dab1ad6..cf48d9a5aea7 100644 --- a/app/boards/intel_adsp_cavs25_tgph.conf +++ b/app/boards/intel_adsp_cavs25_tgph.conf @@ -29,7 +29,9 @@ CONFIG_LIBRARY_MANAGER=n CONFIG_SOF_LOG_LEVEL_INF=y # Zephyr / OS features -CONFIG_DEBUG_COREDUMP=y +# note: CONFIG_DEBUG_COREDUMP is enabled for all Intel targets in +# boards/intel_adsp/Kconfig.defconfig; only the backend and dump-amount +# choices have to be selected per board. CONFIG_DEBUG_COREDUMP_BACKEND_INTEL_ADSP_MEM_WINDOW=y CONFIG_DEBUG_COREDUMP_MEMORY_DUMP_MIN=y CONFIG_HEAP_MEM_POOL_SIZE=8192