Skip to content

Commit 0375ee8

Browse files
tmlemankv2019i
authored andcommitted
boards: ace_4.0: Enable runtime log filtering with ERROR default level
Enable CONFIG_LOG_RUNTIME_FILTERING and set CONFIG_LOG_RUNTIME_DEFAULT_LEVEL to 1 (ERROR) for all Intel ADSP ACE 4.0 platforms. This provides quiet firmware boot with minimal logging overhead while maintaining full DEBUG compile-time capability for dynamic log level control via IPC. Platforms configured: - intel_adsp_ace40_nvl - intel_adsp_ace40_nvls With these settings: - Firmware boots showing only ERROR level logs (quiet startup) - Host can dynamically increase verbosity to INFO or DEBUG via IPC4_ENABLE_LOGS without recompilation - All log macros (LOG_ERR, LOG_INF, etc.) remain compiled in Runtime filtering default level is set to INFO (3) in debug_overlay.conf to maintain current debug build behavior where logs start at INFO level. This ensures the same feature set is tested with runtime filtering enabled. This works in conjunction with the IPC4 logging handler changes that parse logs_mask to set the appropriate runtime filter level. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 9ac7d72 commit 0375ee8

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

app/boards/intel_adsp_ace40_nvl.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ CONFIG_PM_DEVICE_RUNTIME_ASYNC=n
5555
# Zephyr / logging
5656
CONFIG_LOG_BACKEND_ADSP=n
5757
CONFIG_WINSTREAM_CONSOLE=n
58+
CONFIG_LOG_RUNTIME_FILTERING=y
59+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1
5860

5961
# Zephyr / debug: temporary, until fixed
6062
CONFIG_GDBSTUB=n

app/boards/intel_adsp_ace40_nvls.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ CONFIG_PM_DEVICE_RUNTIME_ASYNC=n
5555
# Zephyr / logging
5656
CONFIG_LOG_BACKEND_ADSP=n
5757
CONFIG_WINSTREAM_CONSOLE=n
58+
CONFIG_LOG_RUNTIME_FILTERING=y
59+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1
5860

5961
# Zephyr / debug: temporary, until fixed
6062
CONFIG_GDBSTUB=n

app/debug_overlay.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ CONFIG_COLD_STORE_EXECUTE_DEBUG=y
2323

2424
CONFIG_GDBSTUB=y
2525
CONFIG_GDBSTUB_ENTER_IMMEDIATELY=n
26+
27+
# Logging options
28+
# Set default runtime log level to INFO (3) to maintain expected behavior in SOF CI.
29+
# This ensures firmware starts with INFO level logging, same as previous configuration.
30+
# Testing with runtime filtering enabled ensures the same feature set is validated.
31+
# Note: This setting has no effect if CONFIG_LOG_RUNTIME_FILTERING is disabled.
32+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=3

app/os_linux_overlay.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@
77
# state, so context save can be disabled
88
CONFIG_ADSP_IMR_CONTEXT_SAVE=n
99
CONFIG_SOF_USERSPACE_PROXY=n
10+
11+
# Logging options
12+
13+
# Set default runtime log level to INFO (3).
14+
# Note: This setting only has effect when CONFIG_LOG_RUNTIME_FILTERING is enabled.
15+
# By default, the runtime level equals the compile-time level, but it is explicitly
16+
# set here to INFO to ensure expected behavior if platform configurations set a
17+
# lower default level (e.g., ERROR).
18+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=3

0 commit comments

Comments
 (0)