From d98531957849ecb8410324190a5df9b9e1eebd4c Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Mon, 7 Sep 2026 13:01:02 +0200 Subject: [PATCH] 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 while vregion use isn't sufficient, we temporarily increase the conventional heap. Signed-off-by: Guennadi Liakhovetski --- app/overlays/ptl/ll_userspace_overlay.conf | 2 ++ zephyr/Kconfig | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/overlays/ptl/ll_userspace_overlay.conf b/app/overlays/ptl/ll_userspace_overlay.conf index b799736240f8..28a6e4ea044b 100644 --- a/app/overlays/ptl/ll_userspace_overlay.conf +++ b/app/overlays/ptl/ll_userspace_overlay.conf @@ -37,3 +37,5 @@ CONFIG_XRUN_NOTIFICATIONS_ENABLE=n # enabled and uses the vmh allocation intended for KBP. # TODO: needs some better solution to allocate CONFIG_SOF_ZEPHYR_SYS_USER_HEAP_SIZE=0x80000 + +CONFIG_VIRTUAL_HEAP=n diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 651b1ec16775..514f5133bfc5 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -84,7 +84,7 @@ config SOF_ZEPHYR_HEAP_SIZE hex "Size of the Zephyr heap for SOF" default 0x40000 if VIRTUAL_HEAP default 0xF0000 if SOC_ACE15_MTPM || SOC_ACE20_LNL - default 0xD0000 if SOC_ACE30 || SOC_ACE40 + default 0x100000 if SOC_ACE30 || SOC_ACE40 default 0x0 help Support scaling of the heap size for different platforms and different types @@ -129,7 +129,8 @@ config SOF_ZEPHYR_VIRTUAL_HEAP_REGION_SIZE hex "Size in bytes of virtual memory region for virtual heap shared for all cores" depends on MM_DRV_INTEL_ADSP_MTL_TLB default 0x140000 if VIRTUAL_HEAP_EXTENDED - default 0x100000 + default 0x100000 if VIRTUAL_HEAP + default 0x0 help This config defines size of virtual heap region shared between all cores