diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 672094ed7e07031e7b557d90096aeeda1318d8a1..285745b2ca38d4aacd9c855585bf1a742fb4692d 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -366,6 +366,9 @@ void __init arm64_memblock_init(void) /* Handle linux,usable-memory-range property */ fdt_enforce_memory_region(); + /* Remove memory above our supported physical address size */ + memblock_remove(1ULL << PHYS_MASK_SHIFT, ULLONG_MAX); + /* * Ensure that the linear region takes up exactly half of the kernel * virtual address space. This way, we can distinguish a linear address