From 4d53aa77042ae3233e0ed3949730ac274cfbf3ed Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Sat, 6 Dec 2025 19:45:46 +0000 Subject: [PATCH] soc/qualcomm/x1p42100: Relocate PRERAM stack to BSRAM memory Relocate the PRERAM_STACK region to a new address to resolve a memory conflict with the QSEE Trust Zone environment. Details: - The previous location of the PRERAM_STACK starting at 0x14680000 in SSRAM is now reserved for QC QSEE. - This change moves the 16KB PRERAM_STACK from 0x14680000 (SSRAM) to the available memory region starting at 0x14850000 in the BSRAM. BUG=b:456953373 BRANCH=None TEST=Able to build google/bluey. Change-Id: Ifa9bc457e28b9ec21aa59c6ab9114993f23b2bc8 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/90406 Tested-by: build bot (Jenkins) Reviewed-by: Jayvik Desai Reviewed-by: Kapil Porwal --- src/soc/qualcomm/x1p42100/memlayout.ld | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/soc/qualcomm/x1p42100/memlayout.ld b/src/soc/qualcomm/x1p42100/memlayout.ld index 76c0ff2dfd..cbcbd57ca9 100644 --- a/src/soc/qualcomm/x1p42100/memlayout.ld +++ b/src/soc/qualcomm/x1p42100/memlayout.ld @@ -139,6 +139,8 @@ * 0x14857000 +----------------------------------------------------------+ | * | VBOOT2_WORK | | * 0x14854000 +----------------------------------------------------------+ | + * | PRERAM STACK | | + * 0x14850000 +----------------------------------------------------------+ | * | TTB (Translation Table Base) | | * 0x14842000 +----------------------------------------------------------+ | * | TIMESTAMP | | @@ -165,7 +167,7 @@ * 0x146A5000 +----------------------------------------------------------+ | * | AOP SDI | | * 0x14699000 +----------------------------------------------------------+ | - * | PRERAM STACK | v + * | Reserved for QSEE | v * 0x14680000 +----------------------------------------------------------+ <--------- * | ... (Memory not mapped: Unavailable) ... | XXXXXXXXX * 0x0B100000 +----------------------------------------------------------+ <--------- @@ -188,7 +190,6 @@ SECTIONS AOPSRAM_END(0x0B100000) SSRAM_START(0x14680000) - PRERAM_STACK(0x14680000, 16K) REGION(aop_sdi, 0x14699000, 48K, 4K) REGION(shared_imem, 0x146AA000, 0x1000, 4K) REGION(ddr_information, 0x146ABFE8, 16, 8) @@ -201,6 +202,7 @@ SECTIONS PRERAM_CBFS_CACHE(0x14828000, 103K) TIMESTAMP(0x14841C00, 1K) TTB(0x14842000, 56K) + PRERAM_STACK(0x14850000, 16K) VBOOT2_WORK(0x14854000, 12K) PRERAM_DMA_COHERENT(0x14857000, 8K) REGION(qclib_serial_log, 0x1485B000, 4K, 4K)