Home
last modified time | relevance | path

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

/Linux-v5.10/arch/arm64/mm/
Dinit.c75 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
79 &crash_size, &crash_base); in reserve_crashkernel()
86 if (crash_base == 0) { in reserve_crashkernel()
88 crash_base = memblock_find_in_range(0, arm64_dma32_phys_limit, in reserve_crashkernel()
90 if (crash_base == 0) { in reserve_crashkernel()
97 if (!memblock_is_region_memory(crash_base, crash_size)) { in reserve_crashkernel()
102 if (memblock_is_region_reserved(crash_base, crash_size)) { in reserve_crashkernel()
107 if (!IS_ALIGNED(crash_base, SZ_2M)) { in reserve_crashkernel()
112 memblock_reserve(crash_base, crash_size); in reserve_crashkernel()
115 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel()
[all …]
/Linux-v5.10/kernel/
Dcrash_core.c41 unsigned long long *crash_base) in parse_crashkernel_mem() argument
105 *crash_base = memparse(cur, &tmp); in parse_crashkernel_mem()
126 unsigned long long *crash_base) in parse_crashkernel_simple() argument
137 *crash_base = memparse(cur+1, &cur); in parse_crashkernel_simple()
232 unsigned long long *crash_base, in __parse_crashkernel() argument
239 BUG_ON(!crash_size || !crash_base); in __parse_crashkernel()
241 *crash_base = 0; in __parse_crashkernel()
261 crash_size, crash_base); in __parse_crashkernel()
263 return parse_crashkernel_simple(ck_cmdline, crash_size, crash_base); in __parse_crashkernel()
273 unsigned long long *crash_base) in parse_crashkernel() argument
[all …]
/Linux-v5.10/arch/s390/kernel/
Dsetup.c673 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
678 &crash_base); in reserve_crashkernel()
680 crash_base = ALIGN(crash_base, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel()
691 low = crash_base ?: OLDMEM_BASE; in reserve_crashkernel()
695 crash_base = low; in reserve_crashkernel()
699 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel()
701 if (crash_base && crash_base < low) { in reserve_crashkernel()
706 low = crash_base ?: low; in reserve_crashkernel()
707 crash_base = memblock_find_in_range(low, high, crash_size, in reserve_crashkernel()
711 if (!crash_base) { in reserve_crashkernel()
[all …]
/Linux-v5.10/arch/powerpc/kexec/
Dcore.c118 unsigned long long crash_size, crash_base, total_mem_sz; in reserve_crashkernel() local
124 &crash_size, &crash_base); in reserve_crashkernel()
126 crashk_res.start = crash_base; in reserve_crashkernel()
127 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
160 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel()
161 if (crash_base != crashk_res.start) { in reserve_crashkernel()
164 crashk_res.start = crash_base; in reserve_crashkernel()
/Linux-v5.10/arch/x86/kernel/
Dsetup.c471 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
478 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
482 &crash_size, &crash_base); in reserve_crashkernel()
494 if (!crash_base) { in reserve_crashkernel()
504 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
507 if (!crash_base) in reserve_crashkernel()
508 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
511 if (!crash_base) { in reserve_crashkernel()
518 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel()
519 crash_base + crash_size); in reserve_crashkernel()
[all …]
/Linux-v5.10/arch/mips/kernel/
Dsetup.c445 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_find_in_range(CRASH_ALIGN, CRASH_ADDR_MAX, in mips_parse_crashkernel()
457 if (!crash_base) { in mips_parse_crashkernel()
464 start = memblock_find_in_range(crash_base, crash_base + crash_size, in mips_parse_crashkernel()
466 if (start != crash_base) { in mips_parse_crashkernel()
472 crashk_res.start = crash_base; in mips_parse_crashkernel()
473 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
/Linux-v5.10/arch/powerpc/mm/nohash/
Dkaslr_booke.c183 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-v5.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-v5.10/arch/arm/kernel/
Dsetup.c996 unsigned long long crash_size, crash_base; in reserve_crashkernel() local
1002 &crash_size, &crash_base); in reserve_crashkernel()
1006 if (crash_base <= 0) { in reserve_crashkernel()
1011 crash_base = memblock_find_in_range(CRASH_ALIGN, crash_max, in reserve_crashkernel()
1013 if (!crash_base) { in reserve_crashkernel()
1020 start = memblock_find_in_range(crash_base, in reserve_crashkernel()
1021 crash_base + crash_size, in reserve_crashkernel()
1023 if (start != crash_base) { in reserve_crashkernel()
1029 ret = memblock_reserve(crash_base, crash_size); in reserve_crashkernel()
1032 (unsigned long)crash_base); in reserve_crashkernel()
[all …]
/Linux-v5.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);