Files
u-boot/board
Pranav Sanwal 3aebac5a75 arm64: versal2: Populate DRAM banks before page table size calculation
Move DRAM bank detection from fdtdec to custom implementation to
ensure memory banks are populated before get_page_table_size() is
called during MMU initialization.

The current fdtdec-based approach populates gd->bd->bi_dram[] too
late in the boot sequence, causing get_page_table_size() to be
called with unpopulated DRAM information. This prevents dynamic
page table sizing based on actual memory configuration.

Parse /memory nodes in dram_init() to fill versal2_mem_map[]
early enough for MMU setup. Supports up to
CONFIG_NR_DRAM_BANKS (36) non-contiguous banks with high memory
regions (>4GB) and use __weak get_page_table_size implementation
to estimate page table size based on the populated DRAM banks.

Signed-off-by: Pranav Sanwal <pranav.sanwal@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20260129120021.1328653-3-pranav.sanwal@amd.com
2026-02-13 08:16:24 +01:00
..
2026-01-23 14:20:59 -06:00
2025-11-29 14:42:24 -03:00
2026-01-02 10:28:14 -06:00
2025-05-09 15:05:14 -06:00
2025-06-02 17:26:16 -06:00
2024-07-22 10:51:47 -06:00
2025-06-02 17:26:16 -06:00
2025-07-08 13:11:12 -06:00
2025-05-09 15:05:14 -06:00
2026-02-06 20:32:10 -03:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00