From c7d5950ab24ea2975884ca9c61a041c816f69979 Mon Sep 17 00:00:00 2001 From: Serhiy Katsyuba Date: Thu, 23 Jul 2026 16:40:08 +0200 Subject: [PATCH] intel: platform: use Kconfig for IDC stack size The stack size is defined by the Kconfig option CONFIG_SOF_STACK_SIZE. On some platforms, the IDC worker thread stack used a hard-coded value, which seems to have been an oversight. The default CONFIG_SOF_STACK_SIZE value is 4096, but it is increased to 8192 on the PTL board and in some overlays, such as the MTL DAX overlay. Therefore, this change also increases the IDC worker thread stack size for those configurations. Signed-off-by: Serhiy Katsyuba --- src/platform/ace30/include/platform/lib/memory.h | 2 +- src/platform/lunarlake/include/platform/lib/memory.h | 2 +- src/platform/meteorlake/include/platform/lib/memory.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/ace30/include/platform/lib/memory.h b/src/platform/ace30/include/platform/lib/memory.h index 70888798e22a..666c4fc9eb89 100644 --- a/src/platform/ace30/include/platform/lib/memory.h +++ b/src/platform/ace30/include/platform/lib/memory.h @@ -42,7 +42,7 @@ #define SRAM_STREAM_SIZE 0x1000 /* Stack configuration */ -#define SOF_STACK_SIZE 0x1000 +#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE) #define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */ #define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */ diff --git a/src/platform/lunarlake/include/platform/lib/memory.h b/src/platform/lunarlake/include/platform/lib/memory.h index 276c61d17d58..f3347ab53e3e 100644 --- a/src/platform/lunarlake/include/platform/lib/memory.h +++ b/src/platform/lunarlake/include/platform/lib/memory.h @@ -44,7 +44,7 @@ #define SRAM_STREAM_SIZE 0x1000 /* Stack configuration */ -#define SOF_STACK_SIZE 0x1000 +#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE) #define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */ #define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */ diff --git a/src/platform/meteorlake/include/platform/lib/memory.h b/src/platform/meteorlake/include/platform/lib/memory.h index cd279b603c64..66394609eb71 100644 --- a/src/platform/meteorlake/include/platform/lib/memory.h +++ b/src/platform/meteorlake/include/platform/lib/memory.h @@ -44,7 +44,7 @@ #define SRAM_STREAM_SIZE 0x1000 /* Stack configuration */ -#define SOF_STACK_SIZE 0x1000 +#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE) #define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */ #define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */