From 8ab49bbf240ecb9bf8f88f8bfe61a336605795b7 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Thu, 31 Aug 2023 12:48:34 -0700 Subject: [PATCH] mt8195: Bump task stack size for Google AEC AEC initialization is stack-hungry, needing ~6kb during initialization. That happens under the IPC task, not a component-local stack. So bump the default for all tasks as that's the only way to make sure IPC gets it. (Really this shouldn't be a platform choice, but that's where the symbol exists) Signed-off-by: Andy Ross --- src/platform/mt8195/include/platform/lib/memory.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/mt8195/include/platform/lib/memory.h b/src/platform/mt8195/include/platform/lib/memory.h index 47bb91202..78d21faac 100644 --- a/src/platform/mt8195/include/platform/lib/memory.h +++ b/src/platform/mt8195/include/platform/lib/memory.h @@ -165,7 +165,11 @@ #define HEAP_BUF_ALIGNMENT DCACHE_LINE_SIZE /** \brief EDF task's default stack size in bytes. */ +#ifdef CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING +#define PLATFORM_TASK_DEFAULT_STACK_SIZE 8192 +#else #define PLATFORM_TASK_DEFAULT_STACK_SIZE 3072 +#endif #if !defined(__ASSEMBLER__) && !defined(LINKER)