Skip to content

Commit c7d5950

Browse files
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 <serhiy.katsyuba@intel.com>
1 parent 8c0c11b commit c7d5950

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/platform

src/platform/ace30/include/platform/lib/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#define SRAM_STREAM_SIZE 0x1000
4343

4444
/* Stack configuration */
45-
#define SOF_STACK_SIZE 0x1000
45+
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
4646

4747
#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
4848
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */

src/platform/lunarlake/include/platform/lib/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#define SRAM_STREAM_SIZE 0x1000
4545

4646
/* Stack configuration */
47-
#define SOF_STACK_SIZE 0x1000
47+
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
4848

4949
#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
5050
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */

src/platform/meteorlake/include/platform/lib/memory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#define SRAM_STREAM_SIZE 0x1000
4545

4646
/* Stack configuration */
47-
#define SOF_STACK_SIZE 0x1000
47+
#define SOF_STACK_SIZE (CONFIG_SOF_STACK_SIZE)
4848

4949
#define PLATFORM_HEAP_SYSTEM CONFIG_CORE_COUNT /* one per core */
5050
#define PLATFORM_HEAP_SYSTEM_RUNTIME CONFIG_CORE_COUNT /* one per core */

0 commit comments

Comments
 (0)