[PATCH] arm64: dts: mediatek: mt8183-pumpkin: reserve OP-TEE and BL31 memory
Kevin Hilman
khilman at baylibre.com
Wed Dec 2 12:10:58 PST 2026
The Pumpkin's firmware runs BL31 at 0x54600000 and OP-TEE at
0x43200000, but only the SCP memory is reserved in the board's DT, and
its U-Boot doesn't add reservations for them either. Linux then uses
that secure memory as normal RAM.
With a small initramfs this goes unnoticed, but as soon as enough pages
are in use, e.g. with a 37 MiB initramfs holding the defconfig modules,
the board hangs silently while the initramfs is unpacked, or resets
once udev starts loading modules.
Reserve both regions as the vendor (IoT Yocto) DT does: 12 MiB for
OP-TEE at 0x43200000 and 192 KiB for BL31 at 0x54600000. With this,
defconfig + all modules boots to userspace, both with separate images
and with a FIT.
Fixes: 19b6403f1e2a ("arm64: dts: mt8183: add mt8183 pumpkin board")
Signed-off-by: Kevin Hilman <khilman at baylibre.com>
---
arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
index e47955602c83..70bd04420dab 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts
@@ -33,11 +33,23 @@ reserved-memory {
#size-cells = <2>;
ranges;
+ /* 12 MiB reserved for OP-TEE (BL32) */
+ optee_reserved: optee at 43200000 {
+ reg = <0 0x43200000 0 0xc00000>;
+ no-map;
+ };
+
scp_mem_reserved: scp-mem at 50000000 {
compatible = "shared-dma-pool";
reg = <0 0x50000000 0 0x2900000>;
no-map;
};
+
+ /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
+ bl31_secmon_reserved: secmon at 54600000 {
+ reg = <0 0x54600000 0 0x30000>;
+ no-map;
+ };
};
leds {
---
base-commit: 4dce97c6c265544342e716e62fd24bbb232590c5
change-id: 20261202-pumpkin-reserved-memory-acfaaae7871c
Best regards,
--
Kevin Hilman <khilman at baylibre.com>
More information about the linux-arm-kernel
mailing list