Skip to content

Commit a1c0510

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

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)