From 72b307d57916344e5723ae692d1d7509e4119e28 Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Fri, 13 Dec 2024 08:19:47 +0100 Subject: [PATCH] plat-vexpress: increase QEMU heap size The core heap usage is increased by around 20kB with fTPM enabled so it makes sense if this has to be compensated. Increase heap size for the QEMU variants: - QEMU v7 from 64kB to 96kB - QEMU v8 from 128kB to 192kB Signed-off-by: Jens Wiklander Reviewed-by: Jerome Forissier --- core/arch/arm/plat-vexpress/conf.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/arch/arm/plat-vexpress/conf.mk b/core/arch/arm/plat-vexpress/conf.mk index d9fbe14a437..44abc899b05 100644 --- a/core/arch/arm/plat-vexpress/conf.mk +++ b/core/arch/arm/plat-vexpress/conf.mk @@ -102,6 +102,7 @@ CFG_WITH_SOFTWARE_PRNG ?= n endif ifeq ($(PLATFORM_FLAVOR),qemu_virt) +CFG_CORE_HEAP_SIZE ?= 98304 CFG_HALT_CORES_ON_PANIC ?= y CFG_TEE_CORE_NB_CORE ?= 4 # [0e00.0000 0e0f.ffff] is reserved to early boot @@ -131,7 +132,7 @@ endif ifeq ($(PLATFORM_FLAVOR),qemu_armv8a) CFG_CORE_TZSRAM_EMUL_SIZE ?= 524288 -CFG_CORE_HEAP_SIZE ?= 131072 +CFG_CORE_HEAP_SIZE ?= 196608 CFG_HALT_CORES_ON_PANIC ?= y CFG_TEE_CORE_NB_CORE ?= 4 CFG_AUTO_MAX_PA_BITS ?= y