Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/arm64/mm/
Dinit.c100 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
104 &crash_size, &crash_base); in reserve_crashkernel()
111 if (crash_base == 0) { in reserve_crashkernel()
113 crash_base = memblock_find_in_range(0, arm64_dma_phys_limit, in reserve_crashkernel()
115 if (crash_base == 0) { in reserve_crashkernel()
122 if (!memblock_is_region_memory(crash_base, crash_size)) { in reserve_crashkernel()
127 if (memblock_is_region_reserved(crash_base, crash_size)) { in reserve_crashkernel()
132 if (!IS_ALIGNED(crash_base, SZ_2M)) { in reserve_crashkernel()
137 memblock_reserve(crash_base, crash_size); in reserve_crashkernel()
140 crash_base, crash_base + crash_size, crash_size >> 20); in reserve_crashkernel()
[all …]
/kernel/linux/linux-5.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 …]
/kernel/linux/linux-5.10/arch/s390/kernel/
Dsetup.c674 unsigned long long crash_base, crash_size; in reserve_crashkernel() local
679 &crash_base); in reserve_crashkernel()
681 crash_base = ALIGN(crash_base, KEXEC_CRASH_MEM_ALIGN); in reserve_crashkernel()
692 low = crash_base ?: OLDMEM_BASE; in reserve_crashkernel()
696 crash_base = low; in reserve_crashkernel()
700 high = crash_base ? crash_base + crash_size : ULONG_MAX; in reserve_crashkernel()
702 if (crash_base && crash_base < low) { in reserve_crashkernel()
707 low = crash_base ?: low; in reserve_crashkernel()
708 crash_base = memblock_find_in_range(low, high, crash_size, in reserve_crashkernel()
712 if (!crash_base) { in reserve_crashkernel()
[all …]
/kernel/linux/linux-5.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()
167 crash_base = PAGE_ALIGN(crashk_res.start); in reserve_crashkernel()
168 if (crash_base != crashk_res.start) { in reserve_crashkernel()
171 crashk_res.start = crash_base; in reserve_crashkernel()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dsetup.c491 unsigned long long crash_size, crash_base, total_mem; in reserve_crashkernel() local
498 ret = parse_crashkernel(boot_command_line, total_mem, &crash_size, &crash_base); in reserve_crashkernel()
502 &crash_size, &crash_base); in reserve_crashkernel()
514 if (!crash_base) { in reserve_crashkernel()
524 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
527 if (!crash_base) in reserve_crashkernel()
528 crash_base = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
531 if (!crash_base) { in reserve_crashkernel()
538 start = memblock_phys_alloc_range(crash_size, SZ_1M, crash_base, in reserve_crashkernel()
539 crash_base + crash_size); in reserve_crashkernel()
[all …]
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dkaslr_booke.c179 unsigned long long crash_size, crash_base; in get_crash_kernel() local
183 &crash_base); in get_crash_kernel()
186 if (crash_base == 0) in get_crash_kernel()
187 crash_base = KDUMP_KERNELBASE; in get_crash_kernel()
189 regions.crash_start = (unsigned long)crash_base; in get_crash_kernel()
190 regions.crash_end = (unsigned long)(crash_base + crash_size); in get_crash_kernel()
192 pr_debug("crash_base=0x%llx crash_size=0x%llx\n", crash_base, crash_size); in get_crash_kernel()
/kernel/linux/linux-5.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()
/kernel/linux/linux-5.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()
1010 if (crash_base <= 0) { in reserve_crashkernel()
1015 crash_base = memblock_find_in_range(CRASH_ALIGN, crash_max, in reserve_crashkernel()
1017 if (!crash_base) { in reserve_crashkernel()
1024 start = memblock_find_in_range(crash_base, in reserve_crashkernel()
1025 crash_base + crash_size, in reserve_crashkernel()
1027 if (start != crash_base) { in reserve_crashkernel()
1033 ret = memblock_reserve(crash_base, crash_size); in reserve_crashkernel()
1036 (unsigned long)crash_base); in reserve_crashkernel()
[all …]
/kernel/linux/linux-5.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);