/linux-6.1.9/arch/arm64/mm/ |
D | init.c | 128 unsigned long long crash_base, crash_size; in reserve_crashkernel() local 139 &crash_size, &crash_base); in reserve_crashkernel() 141 ret = parse_crashkernel_high(cmdline, 0, &crash_size, &crash_base); in reserve_crashkernel() 149 ret = parse_crashkernel_low(cmdline, 0, &crash_low_size, &crash_base); in reserve_crashkernel() 162 if (crash_base) in reserve_crashkernel() 163 crash_max = crash_base + crash_size; in reserve_crashkernel() 165 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in reserve_crashkernel() 166 crash_base, crash_max); in reserve_crashkernel() 167 if (!crash_base) { in reserve_crashkernel() 173 if ((crash_base >= CRASH_ADDR_LOW_MAX) && in reserve_crashkernel() [all …]
|
/linux-6.1.9/kernel/ |
D | crash_core.c | 46 unsigned long long *crash_base) in parse_crashkernel_mem() argument 119 *crash_base = memparse(cur, &tmp); in parse_crashkernel_mem() 140 unsigned long long *crash_base) in parse_crashkernel_simple() argument 151 *crash_base = memparse(cur+1, &cur); in parse_crashkernel_simple() 243 unsigned long long *crash_base, in __parse_crashkernel() argument 250 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel() 252 *crash_base = 0; in __parse_crashkernel() 271 crash_size, crash_base); in __parse_crashkernel() 273 return parse_crashkernel_simple(ck_cmdline, crash_size, crash_base); in __parse_crashkernel() 283 unsigned long long *crash_base) in parse_crashkernel() argument [all …]
|
/linux-6.1.9/arch/s390/kernel/ |
D | setup.c | 656 unsigned long long crash_base, crash_size; in reserve_crashkernel() local 661 &crash_base); in reserve_crashkernel() 663 crash_base = ALIGN(crash_base, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel() 674 low = crash_base ?: oldmem_data.start; in reserve_crashkernel() 678 crash_base = low; in reserve_crashkernel() 682 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel() 684 if (crash_base && crash_base < low) { in reserve_crashkernel() 689 low = crash_base ?: low; in reserve_crashkernel() 690 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 695 if (!crash_base) { in reserve_crashkernel() [all …]
|
/linux-6.1.9/arch/powerpc/kexec/ |
D | core.c | 106 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local 112 &crash_size, &crash_base); in reserve_crashkernel() 114 crashk_res.start = crash_base; in reserve_crashkernel() 115 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 155 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel() 156 if (crash_base != crashk_res.start) { in reserve_crashkernel() 159 crashk_res.start = crash_base; in reserve_crashkernel()
|
/linux-6.1.9/arch/x86/kernel/ |
D | setup.c | 555 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local 565 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel() 569 &crash_size, &crash_base); in reserve_crashkernel() 581 if (!crash_base) { in reserve_crashkernel() 591 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 594 if (!crash_base) in reserve_crashkernel() 595 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 598 if (!crash_base) { in reserve_crashkernel() 605 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel() 606 crash_base + crash_size); in reserve_crashkernel() [all …]
|
/linux-6.1.9/arch/mips/kernel/ |
D | setup.c | 455 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local 460 &crash_size, &crash_base); in mips_parse_crashkernel() 464 if (crash_base <= 0) { in mips_parse_crashkernel() 465 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel() 468 if (!crash_base) { in mips_parse_crashkernel() 476 crash_base, in mips_parse_crashkernel() 477 crash_base + crash_size); in mips_parse_crashkernel() 478 if (start != crash_base) { in mips_parse_crashkernel() 484 crashk_res.start = crash_base; in mips_parse_crashkernel() 485 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | setup.c | 231 unsigned long long crash_base, crash_size; in arch_parse_crashkernel() local 234 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in arch_parse_crashkernel() 238 start = memblock_phys_alloc_range(crash_size, 1, crash_base, crash_base + crash_size); in arch_parse_crashkernel() 239 if (start != crash_base) { in arch_parse_crashkernel() 244 crashk_res.start = crash_base; in arch_parse_crashkernel() 245 crashk_res.end = crash_base + crash_size - 1; in arch_parse_crashkernel()
|
/linux-6.1.9/arch/powerpc/mm/nohash/ |
D | kaslr_booke.c | 178 unsigned long long crash_size, crash_base; in get_crash_kernel() local 182 &crash_base); in get_crash_kernel() 185 if (crash_base == 0) in get_crash_kernel() 186 crash_base = KDUMP_KERNELBASE; in get_crash_kernel() 188 regions.crash_start = (unsigned long)crash_base; in get_crash_kernel() 189 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel() 191 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
|
/linux-6.1.9/arch/sh/kernel/ |
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-6.1.9/include/linux/ |
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-6.1.9/arch/arm/kernel/ |
D | setup.c | 1000 unsigned long long crash_size, crash_base; in reserve_crashkernel() local 1006 &crash_size, &crash_base); in reserve_crashkernel() 1011 if (crash_base <= 0) { in reserve_crashkernel() 1017 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in reserve_crashkernel() 1019 if (!crash_base) { in reserve_crashkernel() 1024 unsigned long long crash_max = crash_base + crash_size; in reserve_crashkernel() 1028 crash_base, crash_max); in reserve_crashkernel() 1037 (unsigned long)(crash_base >> 20), in reserve_crashkernel() 1041 crashk_res.start = crash_base; in reserve_crashkernel() 1042 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() [all …]
|
/linux-6.1.9/arch/riscv/mm/ |
D | init.c | 1163 unsigned long long crash_base = 0; in reserve_crashkernel() local 1183 &crash_size, &crash_base); in reserve_crashkernel() 1189 if (crash_base) { in reserve_crashkernel() 1190 search_start = crash_base; in reserve_crashkernel() 1191 search_end = crash_base + crash_size; in reserve_crashkernel() 1201 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel() 1204 if (crash_base == 0) { in reserve_crashkernel() 1206 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel() 1208 if (crash_base == 0) { in reserve_crashkernel() 1216 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel() [all …]
|