Skip to content

Commit 124d5e1

Browse files
numbqqsuperna9999
authored andcommitted
arm64: dts: amlogic: t7: khadas-vim4: fix memory layout for 8GB RAM
The Khadas VIM4 features 8GB of LPDDR4X RAM. The previous memory node mapped a single incorrect region. This caused the kernel to map MMIO and secure firmware (ATF/TrustZone) memory holes as standard RAM, leading to an Asynchronous SError Interrupt during early boot (paging_init) when the kernel attempted to clear those pages. Fix this by splitting the 8GB memory layout into three separate regions to properly avoid the memory holes (e.g., 0xe0000000 - 0xffffffff): - 3.5GB @ 0x000000000 - 3.5GB @ 0x100000000 - 1.0GB @ 0x200000000 Signed-off-by: Nick Xie <[email protected]> Suggested-by: Ronald Claveau <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Neil Armstrong <[email protected]>
1 parent 5ecee47 commit 124d5e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
memory@0 {
1919
device_type = "memory";
20-
reg = <0x0 0x0 0x2 0x0>; /* 8 GB */
20+
reg = <0x0 0x0 0x0 0xE0000000
21+
0x1 0x0 0x0 0xE0000000
22+
0x2 0x0 0x0 0x40000000>; /* 8 GB */
2123
};
2224

2325
reserved-memory {

0 commit comments

Comments
 (0)