From 4330b61bdbfcc2c73c6c31a9d228e6a17a61cafe Mon Sep 17 00:00:00 2001 From: Tomasz Leman Date: Tue, 11 Mar 2025 10:59:32 +0100 Subject: [PATCH] config: adjust log flush sleep time for ACE boards This patch updates the configuration for the log flush sleep time across multiple Intel ADSP boards, specifically ACE15 MTPM, ACE20 LNL, and ACE30 PTL. The `CONFIG_LOG_FLUSH_SLEEP_US` parameter is set to 5000 microseconds to optimize the log flushing process. The change is motivated by the recent update in commit https://github.com/zephyrproject-rtos/zephyr/commit/57e8d5ecfb4dcba2e19b87c9d1b048e6b1090584, which introduced `CONFIG_LOG_FLUSH_SLEEP_US` as a configurable parameter to address inefficiencies in the log flushing mechanism. By reducing the sleep time, the logging thread can wake up more frequently, improving the responsiveness of the logging system. This adjustment ensures that the logging system operates efficiently across different board configurations, aligning with the new logging behavior introduced in the referenced commit. Signed-off-by: Tomasz Leman --- app/boards/intel_adsp_ace15_mtpm.conf | 1 + app/boards/intel_adsp_ace20_lnl.conf | 1 + app/boards/intel_adsp_ace30_ptl.conf | 1 + 3 files changed, 3 insertions(+) diff --git a/app/boards/intel_adsp_ace15_mtpm.conf b/app/boards/intel_adsp_ace15_mtpm.conf index 88530f83d869..30f622f8cf0b 100644 --- a/app/boards/intel_adsp_ace15_mtpm.conf +++ b/app/boards/intel_adsp_ace15_mtpm.conf @@ -120,3 +120,4 @@ CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y CONFIG_LOG_OUTPUT_FORMAT_LINUX_TIMESTAMP=y CONFIG_LOG_TIMESTAMP_64BIT=y CONFIG_WINSTREAM_CONSOLE=n +CONFIG_LOG_FLUSH_SLEEP_US=5000 diff --git a/app/boards/intel_adsp_ace20_lnl.conf b/app/boards/intel_adsp_ace20_lnl.conf index 5e0a34f71e30..acc26e09462a 100644 --- a/app/boards/intel_adsp_ace20_lnl.conf +++ b/app/boards/intel_adsp_ace20_lnl.conf @@ -96,3 +96,4 @@ CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y CONFIG_LOG_OUTPUT_FORMAT_LINUX_TIMESTAMP=y CONFIG_LOG_TIMESTAMP_64BIT=y CONFIG_WINSTREAM_CONSOLE=n +CONFIG_LOG_FLUSH_SLEEP_US=5000 diff --git a/app/boards/intel_adsp_ace30_ptl.conf b/app/boards/intel_adsp_ace30_ptl.conf index d1a2adb4b81e..7f55af6fdeba 100644 --- a/app/boards/intel_adsp_ace30_ptl.conf +++ b/app/boards/intel_adsp_ace30_ptl.conf @@ -91,3 +91,4 @@ CONFIG_LOG_FUNC_NAME_PREFIX_WRN=y CONFIG_LOG_FUNC_NAME_PREFIX_INF=y CONFIG_LOG_FUNC_NAME_PREFIX_DBG=y CONFIG_LOG_MODE_DEFERRED=y +CONFIG_LOG_FLUSH_SLEEP_US=5000