Skip to content

Commit 7b557d5

Browse files
committed
zephyr: alloc: add 32K virtual heap bucket
The original virtual heap layout used the full 0x100000 region and forced 24 KB DMA buffers to consume 64 KB blocks. Increase the virtual heap region size to 0x140000 and add a 32 KB block pool so medium-sized DMA buffers no longer deplete the 64 KB entries. Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
1 parent 126674f commit 7b557d5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

zephyr/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ config SOF_ZEPHYR_VIRTUAL_HEAP_SIZE
9393
config SOF_ZEPHYR_VIRTUAL_HEAP_REGION_SIZE
9494
hex "Size in bytes of virtual memory region for virtual heap shared for all cores"
9595
depends on MM_DRV_INTEL_ADSP_MTL_TLB
96-
default 0x100000
96+
default 0x140000
9797
help
9898
This config defines size of virtual heap region shared between all cores
9999

zephyr/lib/alloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ static const struct vmh_heap_config static_hp_buffers = {
344344
{ 2048, 8},
345345
{ 4096, 11},
346346
{ 8192, 10},
347+
{ 32768, 8},
347348
{ 65536, 3},
348349
{ 131072, 1},
349350
{ 524288, 1} /* buffer for kpb */

0 commit comments

Comments
 (0)