Skip to content

Commit 21ebebb

Browse files
committed
boards: ace: 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 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_ace15_mtpm - intel_adsp_ace20_lnl - intel_adsp_ace30_ptl - intel_adsp_ace30_wcl - 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 is explicitly disabled in debug_overlay.conf to maintain current debug build behavior where logs are not filtered at runtime. 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 0fe81fd commit 21ebebb

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed

app/boards/intel_adsp_ace15_mtpm.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,5 @@ CONFIG_LOG_BACKEND_ADSP=n
8686
CONFIG_LOG_BACKEND_SOF_PROBE=n
8787
CONFIG_WINSTREAM_CONSOLE=n
8888
CONFIG_LOG_FLUSH_SLEEP_US=5000
89+
CONFIG_LOG_RUNTIME_FILTERING=y
90+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1

app/boards/intel_adsp_ace20_lnl.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ CONFIG_PM_DEVICE_RUNTIME_ASYNC=n
6363
CONFIG_LOG_BACKEND_ADSP=n
6464
CONFIG_WINSTREAM_CONSOLE=n
6565
CONFIG_LOG_FLUSH_SLEEP_US=5000
66+
CONFIG_LOG_RUNTIME_FILTERING=y
67+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1

app/boards/intel_adsp_ace30_ptl.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ CONFIG_PM_DEVICE_RUNTIME_ASYNC=n
6666
CONFIG_LOG_BACKEND_ADSP=n
6767
CONFIG_LOG_FLUSH_SLEEP_US=5000
6868
CONFIG_WINSTREAM_CONSOLE=n
69+
CONFIG_LOG_RUNTIME_FILTERING=y
70+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1
6971

7072
# Userspace options
7173
CONFIG_USERSPACE=y

app/boards/intel_adsp_ace30_wcl.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ CONFIG_PM_DEVICE_RUNTIME_ASYNC=n
6262
CONFIG_LOG_BACKEND_ADSP=n
6363
CONFIG_LOG_FLUSH_SLEEP_US=5000
6464
CONFIG_WINSTREAM_CONSOLE=n
65+
CONFIG_LOG_RUNTIME_FILTERING=y
66+
CONFIG_LOG_RUNTIME_DEFAULT_LEVEL=1

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ CONFIG_COLD_STORE_EXECUTE_DEBUG=y
2323

2424
CONFIG_GDBSTUB=y
2525
CONFIG_GDBSTUB_ENTER_IMMEDIATELY=n
26+
27+
# Logging options
28+
CONFIG_LOG_RUNTIME_FILTERING=n

0 commit comments

Comments
 (0)