From 8d8a98c4cda76a59835cd859033496c68cf6c4fe Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Wed, 16 Oct 2019 14:37:46 +0200 Subject: [PATCH] tigerlake: increase system runtime heap size Update memory.h to have similar capabilities to other platforms, that were updated when dynamic DMA channels were introduced. Previous values were not enough for some topologies. Signed-off-by: Janusz Jankowski --- src/platform/tigerlake/include/platform/lib/memory.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/platform/tigerlake/include/platform/lib/memory.h b/src/platform/tigerlake/include/platform/lib/memory.h index 75fb4f42d3a5..3dcefd489186 100644 --- a/src/platform/tigerlake/include/platform/lib/memory.h +++ b/src/platform/tigerlake/include/platform/lib/memory.h @@ -237,7 +237,7 @@ #define SOF_TEXT_BASE (SOF_FW_START) /* Heap section sizes for system runtime heap for master core */ -#define HEAP_SYS_RT_0_COUNT64 64 +#define HEAP_SYS_RT_0_COUNT64 128 #define HEAP_SYS_RT_0_COUNT512 16 #define HEAP_SYS_RT_0_COUNT1024 4 @@ -264,7 +264,7 @@ #define HEAP_BUFFER_COUNT (HEAP_BUFFER_SIZE / HEAP_BUFFER_BLOCK_SIZE) #define HEAP_SYSTEM_M_SIZE 0x8000 /* heap master core size */ -#define HEAP_SYSTEM_S_SIZE 0x5000 /* heap slave core size */ +#define HEAP_SYSTEM_S_SIZE 0x6000 /* heap slave core size */ #define HEAP_SYSTEM_T_SIZE \ (HEAP_SYSTEM_M_SIZE + ((PLATFORM_CORE_COUNT - 1) * HEAP_SYSTEM_S_SIZE)) @@ -339,11 +339,8 @@ HEAP_RT_LP_COUNT128 * 128 + HEAP_RT_LP_COUNT256 * 256 + \ HEAP_RT_LP_COUNT512 * 512 + HEAP_RT_LP_COUNT1024 * 1024) -#define HEAP_LP_BUFFER_BASE \ - (HEAP_LP_RUNTIME_BASE + HEAP_LP_RUNTIME_SIZE) -#define HEAP_LP_BUFFER_SIZE \ - (LP_SRAM_SIZE - HEAP_LP_RUNTIME_SIZE - SOF_LP_STACK_SIZE - \ - HEAP_LP_SYSTEM_SIZE) +#define HEAP_LP_BUFFER_BASE LP_SRAM_BASE +#define HEAP_LP_BUFFER_SIZE LP_SRAM_SIZE #define HEAP_LP_BUFFER_BLOCK_SIZE 0x180