Skip to content

Commit d0506a2

Browse files
author
Russell King
committed
ARM: kexec: remove 512MB restriction on kexec crashdump
The real limit is the top of the visible physical address space with the MMU turned off. Hence, we need to limit the crash kernel allocation running-view physical address of the top of the boot-view physical address space. Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 981b671 commit d0506a2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎arch/arm/kernel/setup.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,6 @@ late_initcall(init_machine_late);
943943
* zImage relocating below the reserved region.
944944
*/
945945
#define CRASH_ALIGN (128 << 20)
946-
#define CRASH_ADDR_MAX (PHYS_OFFSET + (512 << 20))
947946

948947
static inline unsigned long long get_total_mem(void)
949948
{
@@ -973,9 +972,7 @@ static void __init reserve_crashkernel(void)
973972
return;
974973

975974
if (crash_base <= 0) {
976-
unsigned long long crash_max = CRASH_ADDR_MAX;
977-
if (crash_max > (u32)~0)
978-
crash_max = (u32)~0;
975+
unsigned long long crash_max = idmap_to_phys((u32)~0);
979976
crash_base = memblock_find_in_range(CRASH_ALIGN, crash_max,
980977
crash_size, CRASH_ALIGN);
981978
if (!crash_base) {

0 commit comments

Comments
 (0)