From a1c051015d03426d58cc68ed1362b381fd4c5390 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 On Intel platforms, SOF_STACK_SIZE is only used to define the IDC worker thread stack size. However, a Kconfig option, CONFIG_SOF_STACK_SIZE, already exists. On some platforms, the IDC worker thread stack size was hard-coded in memory.h, which appears to have been an oversight. The default value of CONFIG_SOF_STACK_SIZE is 4096, but it is increased to 8192 for 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..7233af485794 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..fed4921fa7b6 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..ac495b784f9b 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 */