Home
last modified time | relevance | path

Searched refs:crash_base (Results 1 – 11 of 11) sorted by relevance

/linux-5.19.10/arch/arm64/mm/
Dinit.c128 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-5.19.10/kernel/
Dcrash_core.c43 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()
231 unsigned long long *crash_base, in __parse_crashkernel() argument
238 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel()
240 *crash_base = 0; in __parse_crashkernel()
259 crash_size, crash_base); in __parse_crashkernel()
261 return parse_crashkernel_simple(ck_cmdline, crash_size, crash_base); in __parse_crashkernel()
271 unsigned long long *crash_base) in parse_crashkernel() argument
[all …]
/linux-5.19.10/arch/s390/kernel/
Dsetup.c647 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
652 &crash_base); in reserve_crashkernel()
654 crash_base = ALIGN(crash_base, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel()
665 low = crash_base ?: oldmem_data.start; in reserve_crashkernel()
669 crash_base = low; in reserve_crashkernel()
673 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel()
675 if (crash_base && crash_base < low) { in reserve_crashkernel()
680 low = crash_base ?: low; in reserve_crashkernel()
681 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
686 if (!crash_base) { in reserve_crashkernel()
[all …]
/linux-5.19.10/arch/powerpc/kexec/
Dcore.c104 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local
110 &crash_size, &crash_base); in reserve_crashkernel()
112 crashk_res.start = crash_base; in reserve_crashkernel()
113 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
153 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel()
154 if (crash_base != crashk_res.start) { in reserve_crashkernel()
157 crashk_res.start = crash_base; in reserve_crashkernel()
/linux-5.19.10/arch/x86/kernel/
Dsetup.c482 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
492 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
496 &crash_size, &crash_base); in reserve_crashkernel()
508 if (!crash_base) { in reserve_crashkernel()
518 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
521 if (!crash_base) in reserve_crashkernel()
522 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
525 if (!crash_base) { in reserve_crashkernel()
532 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel()
533 crash_base + crash_size); in reserve_crashkernel()
[all …]
/linux-5.19.10/arch/mips/kernel/
Dsetup.c454 unsigned long long crash_size, crash_base; in mips_parse_crashkernel() local
459 &crash_size, &crash_base); in mips_parse_crashkernel()
463 if (crash_base <= 0) { in mips_parse_crashkernel()
464 crash_base = memblock_phys_alloc_range(crash_size, CRASH_ALIGN, in mips_parse_crashkernel()
467 if (!crash_base) { in mips_parse_crashkernel()
475 crash_base, in mips_parse_crashkernel()
476 crash_base + crash_size); in mips_parse_crashkernel()
477 if (start != crash_base) { in mips_parse_crashkernel()
483 crashk_res.start = crash_base; in mips_parse_crashkernel()
484 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
/linux-5.19.10/arch/powerpc/mm/nohash/
Dkaslr_booke.c178 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-5.19.10/arch/sh/kernel/
Dmachine_kexec.c153 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-5.19.10/include/linux/
Dcrash_core.h81 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-5.19.10/arch/arm/kernel/
Dsetup.c1000 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-5.19.10/arch/riscv/mm/
Dinit.c1144 unsigned long long crash_base = 0; in reserve_crashkernel() local
1164 &crash_size, &crash_base); in reserve_crashkernel()
1170 if (crash_base) { in reserve_crashkernel()
1171 search_start = crash_base; in reserve_crashkernel()
1172 search_end = crash_base + crash_size; in reserve_crashkernel()
1182 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel()
1185 if (crash_base == 0) { in reserve_crashkernel()
1187 crash_base = memblock_phys_alloc_range(crash_size, PMD_SIZE, in reserve_crashkernel()
1189 if (crash_base == 0) { in reserve_crashkernel()
1197 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel()
[all …]