Skip to content

Commit 7f66827

Browse files
abonislawskilgirdwood
authored andcommitted
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 0356d60 commit 7f66827

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
@@ -85,7 +85,7 @@ config SOF_ZEPHYR_SHARED_BUFFER_HEAP_SIZE
8585
config SOF_ZEPHYR_VIRTUAL_HEAP_REGION_SIZE
8686
hex "Size in bytes of virtual memory region for virtual heap shared for all cores"
8787
depends on MM_DRV_INTEL_ADSP_MTL_TLB
88-
default 0x100000
88+
default 0x140000
8989
help
9090
This config defines size of virtual heap region shared between all cores
9191

zephyr/lib/alloc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ static const struct vmh_heap_config static_hp_buffers = {
339339
{ 2048, 8},
340340
{ 4096, 11},
341341
{ 8192, 10},
342+
{ 32768, 8},
342343
{ 65536, 3},
343344
{ 131072, 1},
344345
{ 524288, 1} /* buffer for kpb */

0 commit comments

Comments
 (0)