/linux/arch/arm64/mm/ |
A D | init.c | 77 unsigned long long crash_base, crash_size; in reserve_crashkernel() local 82 &crash_size, &crash_base); in reserve_crashkernel() 90 if (crash_base) in reserve_crashkernel() 91 crash_max = crash_base + crash_size; in reserve_crashkernel() 94 crash_base = memblock_phys_alloc_range(crash_size, SZ_2M, in reserve_crashkernel() 95 crash_base, crash_max); in reserve_crashkernel() 96 if (!crash_base) { in reserve_crashkernel() 103 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel() 109 kmemleak_ignore_phys(crash_base); in reserve_crashkernel() 110 crashk_res.start = crash_base; in reserve_crashkernel() [all …]
|
/linux/kernel/ |
A D | crash_core.c | 43 unsigned long long *crash_base) in parse_crashkernel_mem() argument 107 *crash_base = memparse(cur, &tmp); in parse_crashkernel_mem() 128 unsigned long long *crash_base) in parse_crashkernel_simple() argument 139 *crash_base = memparse(cur+1, &cur); in parse_crashkernel_simple() 234 unsigned long long *crash_base, in __parse_crashkernel() argument 241 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel() 243 *crash_base = 0; in __parse_crashkernel() 263 crash_size, crash_base); in __parse_crashkernel() 275 unsigned long long *crash_base) in parse_crashkernel() argument 284 unsigned long long *crash_base) in parse_crashkernel_high() argument [all …]
|
/linux/arch/s390/kernel/ |
A D | setup.c | 651 &crash_base); in reserve_crashkernel() 653 crash_base = ALIGN(crash_base, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel() 664 low = crash_base ?: oldmem_data.start; in reserve_crashkernel() 668 crash_base = low; in reserve_crashkernel() 672 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel() 674 if (crash_base && crash_base < low) { in reserve_crashkernel() 679 low = crash_base ?: low; in reserve_crashkernel() 685 if (!crash_base) { in reserve_crashkernel() 698 crashk_res.start = crash_base; in reserve_crashkernel() 700 memblock_remove(crash_base, crash_size); in reserve_crashkernel() [all …]
|
/linux/arch/x86/kernel/ |
A D | setup.c | 479 &crash_size, &crash_base); in reserve_crashkernel() 491 if (!crash_base) { in reserve_crashkernel() 501 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 504 if (!crash_base) in reserve_crashkernel() 508 if (!crash_base) { in reserve_crashkernel() 516 crash_base + crash_size); in reserve_crashkernel() 517 if (start != crash_base) { in reserve_crashkernel() 524 memblock_phys_free(crash_base, crash_size); in reserve_crashkernel() 530 (unsigned long)(crash_base >> 20), in reserve_crashkernel() 533 crashk_res.start = crash_base; in reserve_crashkernel() [all …]
|
/linux/arch/powerpc/kexec/ |
A D | core.c | 105 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local 111 &crash_size, &crash_base); in reserve_crashkernel() 113 crashk_res.start = crash_base; in reserve_crashkernel() 114 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 147 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel() 148 if (crash_base != crashk_res.start) { in reserve_crashkernel() 151 crashk_res.start = crash_base; in reserve_crashkernel()
|
/linux/arch/mips/kernel/ |
A D | setup.c | 445 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local 450 &crash_size, &crash_base); in mips_parse_crashkernel() 454 if (crash_base <= 0) { in mips_parse_crashkernel() 455 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel() 458 if (!crash_base) { in mips_parse_crashkernel() 466 crash_base, in mips_parse_crashkernel() 467 crash_base + crash_size); in mips_parse_crashkernel() 468 if (start != crash_base) { in mips_parse_crashkernel() 474 crashk_res.start = crash_base; in mips_parse_crashkernel() 475 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
|
/linux/arch/powerpc/mm/nohash/ |
A D | kaslr_booke.c | 183 unsigned long long crash_size, crash_base; in get_crash_kernel() local 187 &crash_base); in get_crash_kernel() 190 if (crash_base == 0) in get_crash_kernel() 191 crash_base = KDUMP_KERNELBASE; in get_crash_kernel() 193 regions.crash_start = (unsigned long)crash_base; in get_crash_kernel() 194 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel() 196 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
|
/linux/arch/sh/kernel/ |
A D | machine_kexec.c | 153 unsigned long long crash_size, crash_base; in reserve_crashkernel() local 157 &crash_size, &crash_base); in reserve_crashkernel() 159 crashk_res.start = crash_base; in reserve_crashkernel() 160 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
/linux/arch/riscv/mm/ |
A D | init.c | 781 unsigned long long crash_base = 0; in reserve_crashkernel() local 801 &crash_size, &crash_base); in reserve_crashkernel() 807 if (crash_base) { in reserve_crashkernel() 808 search_start = crash_base; in reserve_crashkernel() 809 search_end = crash_base + crash_size; in reserve_crashkernel() 816 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel() 818 if (crash_base == 0) { in reserve_crashkernel() 825 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel() 827 crashk_res.start = crash_base; in reserve_crashkernel() 828 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
/linux/include/linux/ |
A D | crash_core.h | 81 unsigned long long *crash_size, unsigned long long *crash_base); 83 unsigned long long *crash_size, unsigned long long *crash_base); 85 unsigned long long *crash_size, unsigned long long *crash_base);
|
/linux/arch/arm/kernel/ |
A D | setup.c | 1000 unsigned long long crash_size, crash_base; in reserve_crashkernel() local 1006 &crash_size, &crash_base); in reserve_crashkernel() 1010 if (crash_base <= 0) { in reserve_crashkernel() 1016 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in reserve_crashkernel() 1018 if (!crash_base) { in reserve_crashkernel() 1023 unsigned long long crash_max = crash_base + crash_size; in reserve_crashkernel() 1027 crash_base, crash_max); in reserve_crashkernel() 1036 (unsigned long)(crash_base >> 20), in reserve_crashkernel() 1040 crashk_res.start = crash_base; in reserve_crashkernel() 1041 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() [all …]
|