Skip to content

Commit

Permalink
mt8195: Bump task stack size for Google AEC
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
andyross authored and kv2019i committed Mar 11, 2024
1 parent 02e8837 commit 8ab49bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/mt8195/include/platform/lib/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8ab49bb

Please sign in to comment.