Home
last modified time | relevance | path

Searched refs:crashk_res (Results 1 – 19 of 19) sorted by relevance

/linux-4.4.14/arch/powerpc/kernel/
Dmachine_kexec.c123 crashk_res.start = crash_base; in reserve_crashkernel()
124 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
127 if (crashk_res.end == crashk_res.start) { in reserve_crashkernel()
128 crashk_res.start = crashk_res.end = 0; in reserve_crashkernel()
135 crash_size = resource_size(&crashk_res); in reserve_crashkernel()
138 if (crashk_res.start != KDUMP_KERNELBASE) in reserve_crashkernel()
142 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel()
144 if (!crashk_res.start) { in reserve_crashkernel()
151 crashk_res.start = min(0x8000000ULL, (ppc64_rma_size / 2)); in reserve_crashkernel()
153 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel()
[all …]
Dprom.c429 crashk_res.start = *lprop; in early_init_dt_scan_chosen_ppc()
433 crashk_res.end = crashk_res.start + *lprop - 1; in early_init_dt_scan_chosen_ppc()
/linux-4.4.14/arch/sh/kernel/
Dmachine_kexec.c163 crashk_res.start = crash_base; in reserve_crashkernel()
164 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
167 if (crashk_res.end == crashk_res.start) in reserve_crashkernel()
170 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel()
171 if (!crashk_res.start) { in reserve_crashkernel()
173 crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max); in reserve_crashkernel()
174 if (!crashk_res.start) { in reserve_crashkernel()
179 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel()
187 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
192 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel()
[all …]
Dsetup.c222 request_resource(res, &crashk_res); in __add_active_range()
/linux-4.4.14/arch/s390/kernel/
Dmachine_kexec.c86 if (crashk_res.start) in machine_kdump_pm_cb()
91 if (crashk_res.start) in machine_kdump_pm_cb()
142 unsigned long size = resource_size(&crashk_res); in crash_map_pages()
144 BUG_ON(crashk_res.start % KEXEC_CRASH_MEM_ALIGN || in crash_map_pages()
147 vmem_add_mapping(crashk_res.start, size); in crash_map_pages()
149 vmem_remove_mapping(crashk_res.start, size); in crash_map_pages()
151 os_info_crashkernel_add(crashk_res.start, size); in crash_map_pages()
180 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump()
181 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
Dsetup.c493 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier()
495 if (arg->start_pfn > PFN_DOWN(crashk_res.end)) in kdump_mem_notifier()
497 if (arg->start_pfn + arg->nr_pages - 1 < PFN_DOWN(crashk_res.start)) in kdump_mem_notifier()
605 crashk_res.start = crash_base; in reserve_crashkernel()
606 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
607 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
/linux-4.4.14/arch/mips/kernel/
Dsetup.c599 crashk_res.start = crash_base; in mips_parse_crashkernel()
600 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
607 ret = request_resource(res, &crashk_res); in request_crashkernel()
610 (unsigned long)((crashk_res.end - in request_crashkernel()
611 crashk_res.start + 1) >> 20), in request_crashkernel()
612 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
694 if (crashk_res.start != crashk_res.end) in arch_mem_init()
695 reserve_bootmem(crashk_res.start, in arch_mem_init()
696 crashk_res.end - crashk_res.start + 1, in arch_mem_init()
/linux-4.4.14/kernel/
Dkexec_core.c65 struct resource crashk_res = { variable
228 if ((mstart < crashk_res.start) || in sanity_check_segment_list()
229 (mend > crashk_res.end)) in sanity_check_segment_list()
421 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages()
884 if (crashk_res.end != crashk_res.start) in crash_get_memory_size()
885 size = resource_size(&crashk_res); in crash_get_memory_size()
912 start = crashk_res.start; in crash_shrink_memory()
913 end = crashk_res.end; in crash_shrink_memory()
930 crash_free_reserved_phys_range(end, crashk_res.end); in crash_shrink_memory()
932 if ((start == end) && (crashk_res.parent != NULL)) in crash_shrink_memory()
[all …]
Dkexec.c51 if ((entry < crashk_res.start) || (entry > crashk_res.end)) in kimage_alloc_init()
72 image->control_page = crashk_res.start; in kimage_alloc_init()
Dkexec_file.c269 image->control_page = crashk_res.start; in kimage_file_alloc_init()
527 crashk_res.start, crashk_res.end, kbuf, in kexec_add_buffer()
/linux-4.4.14/arch/ia64/mm/
Dinit.c559 if (start > crashk_res.start && start < crashk_res.end) in register_active_ranges()
560 start = crashk_res.end; in register_active_ranges()
561 if (end > crashk_res.start && end < crashk_res.end) in register_active_ranges()
562 end = crashk_res.start; in register_active_ranges()
/linux-4.4.14/arch/x86/kernel/
Dcrash.c332 ret = exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges()
608 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, in crash_setup_memmap_entries()
609 crashk_res.end); in crash_setup_memmap_entries()
Dsetup.c613 crashk_res.start = crash_base; in reserve_crashkernel()
614 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
615 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
/linux-4.4.14/arch/tile/kernel/
Dsetup.c709 if (crashk_res.start != crashk_res.end) in setup_bootmem_allocator()
710 reserve_bootmem(crashk_res.start, resource_size(&crashk_res), in setup_bootmem_allocator()
1734 insert_resource(&iomem_resource, &crashk_res); in request_standard_resources()
/linux-4.4.14/arch/arm/kernel/
Dsetup.c910 crashk_res.start = crash_base; in reserve_crashkernel()
911 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
912 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
/linux-4.4.14/include/linux/
Dkexec.h300 extern struct resource crashk_res;
/linux-4.4.14/init/
Dinitramfs.c530 unsigned long crashk_start = (unsigned long)__va(crashk_res.start); in free_initrd()
531 unsigned long crashk_end = (unsigned long)__va(crashk_res.end); in free_initrd()
/linux-4.4.14/arch/ia64/kernel/
Dsetup.c312 crashk_res.start = base; in setup_crashkernel()
313 crashk_res.end = base + size - 1; in setup_crashkernel()
Defi.c1264 if (crashk_res.end > crashk_res.start) in efi_initialize_iomem_resources()
1265 insert_resource(res, &crashk_res); in efi_initialize_iomem_resources()