Skip to content

Commit cc784a3

Browse files
committed
userspace-ll: disable VMH, increase heap
VMH uses a hard-coded chunk configuration, which wastes SRAM. We can instead move to use vregions for large allocations, but during the transition period when vregion is not yet used by all such allocations, we temporarily increase the conventional heap. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 158518d commit cc784a3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

app/overlays/ptl/ll_userspace_overlay.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,5 @@ CONFIG_XRUN_NOTIFICATIONS_ENABLE=n
3737
# enabled and uses the vmh allocation intended for KBP.
3838
# TODO: needs some better solution to allocate
3939
CONFIG_SOF_ZEPHYR_SYS_USER_HEAP_SIZE=0x80000
40+
41+
CONFIG_VIRTUAL_HEAP=n

zephyr/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ config SOF_ZEPHYR_HEAP_SIZE
8484
hex "Size of the Zephyr heap for SOF"
8585
default 0x40000 if VIRTUAL_HEAP
8686
default 0xF0000 if SOC_ACE15_MTPM || SOC_ACE20_LNL
87-
default 0xD0000 if SOC_ACE30 || SOC_ACE40
87+
default 0x100000 if SOC_ACE30 || SOC_ACE40
8888
default 0x0
8989
help
9090
Support scaling of the heap size for different platforms and different types
@@ -119,6 +119,7 @@ config SOF_ZEPHYR_SHARED_BUFFER_HEAP_SIZE
119119
config VIRTUAL_HEAP_EXTENDED
120120
bool "Extend the Virtual Heap configuration with additional buffers"
121121
depends on MM_DRV_INTEL_ADSP_MTL_TLB
122+
depends on VIRTUAL_HEAP
122123
default y
123124
help
124125
Enable additional Virtual Heap buffers. Some configurations need this
@@ -129,7 +130,8 @@ config SOF_ZEPHYR_VIRTUAL_HEAP_REGION_SIZE
129130
hex "Size in bytes of virtual memory region for virtual heap shared for all cores"
130131
depends on MM_DRV_INTEL_ADSP_MTL_TLB
131132
default 0x140000 if VIRTUAL_HEAP_EXTENDED
132-
default 0x100000
133+
default 0x100000 if VIRTUAL_HEAP
134+
default 0x0
133135
help
134136
This config defines size of virtual heap region shared between all cores
135137

0 commit comments

Comments
 (0)