Home
last modified time | relevance | path

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

12

/linux/arch/sh/kernel/
H A Dmachine_kexec.c151 crashk_res.start = crash_base; in reserve_crashkernel()
152 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
155 if (crashk_res.end == crashk_res.start) in reserve_crashkernel()
158 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel()
159 if (!crashk_res.start) { in reserve_crashkernel()
161 crashk_res.start = memblock_phys_alloc_range(crash_size, in reserve_crashkernel()
163 if (!crashk_res.start) { in reserve_crashkernel()
168 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel()
176 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel()
181 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel()
[all …]
/linux/arch/s390/kernel/
H A Dmachine_kexec.c145 size = begin - crashk_res.start; in crash_free_reserved_phys_range()
147 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range()
156 if (!crashk_res.end) in crash_protect_pages()
158 size = resource_size(&crashk_res); in crash_protect_pages()
160 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages()
162 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages()
184 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump()
185 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
H A Dmachine_kexec_file.c113 &crashk_res.start, in kexec_file_update_purgatory()
114 sizeof(crashk_res.start), in kexec_file_update_purgatory()
119 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory()
141 buf.mem += crashk_res.start; in kexec_file_add_purgatory()
167 buf.mem += crashk_res.start; in kexec_file_add_initrd()
234 buf.mem += crashk_res.start; in kexec_file_add_ipl_report()
283 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components()
284 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
H A Dsetup.c542 if (crashk_res.end) { in setup_resources()
543 memblock_add_node(crashk_res.start, resource_size(&crashk_res), in setup_resources()
545 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources()
546 insert_resource(&iomem_resource, &crashk_res); in setup_resources()
572 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier()
653 crashk_res.start = crash_base; in reserve_crashkernel()
654 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
H A Dkexec_image.c29 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
H A Dkexec_elf.c45 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
/linux/arch/powerpc/kexec/
H A Dcore.c146 return (start + size) > crashk_res.start && start <= crashk_res.end; in overlaps_crashkernel()
181 if (crashk_res.start != 0) { in export_crashk_values()
182 crashk_base = cpu_to_be_ulong(crashk_res.start), in export_crashk_values()
184 crashk_size = cpu_to_be_ulong(resource_size(&crashk_res)); in export_crashk_values()
H A Delf_64.c54 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load()
56 ((crashk_res.end < ppc64_rma_size) ? in elf64_load()
57 crashk_res.end : (ppc64_rma_size - 1)); in elf64_load()
H A Dranges.c527 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges()
608 ret = crash_exclude_mem_range_guarded(mem_ranges, crashk_res.start, crashk_res.end); in get_crash_memory_ranges()
H A Dfile_load_64.c647 (2 * (resource_size(&crashk_res) / drmem_lmb_size()))); in kdump_extra_fdt_size_ppc64()
781 crashk_res.start - BACKUP_SRC_SIZE); in setup_new_fdt_ppc64()
/linux/kernel/
H A Dcrash_reserve.c29 struct resource crashk_res = { variable
467 crashk_res.start = crash_base; in reserve_crashkernel_generic()
468 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel_generic()
470 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel_generic()
530 if (crashk_res.start < crashk_res.end) in insert_crashkernel_resources()
531 insert_resource(&iomem_resource, &crashk_res); in insert_crashkernel_resources()
H A Dcrash_core.c359 size += crash_resource_size(&crashk_res); in crash_get_memory_size()
408 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory()
424 ret = __crash_shrink_memory(&crashk_res, 0); in crash_shrink_memory()
430 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory()
434 if (!crashk_res.end && crashk_low_res.end) { in crash_shrink_memory()
435 crashk_res.start = crashk_low_res.start; in crash_shrink_memory()
436 crashk_res.end = crashk_low_res.end; in crash_shrink_memory()
440 insert_resource(&iomem_resource, &crashk_res); in crash_shrink_memory()
H A Dkexec.c34 if ((entry < phys_to_boot_phys(crashk_res.start)) || in kimage_alloc_init()
35 (entry > phys_to_boot_phys(crashk_res.end))) in kimage_alloc_init()
52 image->control_page = crashk_res.start; in kimage_alloc_init()
H A Dkexec_file.c323 image->control_page = crashk_res.start; in kimage_file_alloc_init()
597 return func(&crashk_res, kbuf); in kexec_walk_memblock()
659 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources()
661 crashk_res.start, crashk_res.end, in kexec_walk_resources()
/linux/arch/loongarch/kernel/
H A Dmachine_kexec_file.c84 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
110 crashk_res.end - crashk_res.start + 1, crashk_res.start); in cmdline_add_mem()
/linux/arch/mips/kernel/
H A Dsetup.c486 crashk_res.start = crash_base; in mips_parse_crashkernel()
487 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
497 if (crashk_res.start == crashk_res.end) in request_crashkernel()
500 ret = request_resource(res, &crashk_res); in request_crashkernel()
503 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel()
504 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
/linux/arch/arm64/kernel/
H A Dmachine_kexec.c263 if (!crashk_res.end) in crash_is_nosave()
268 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
H A Dmachine_kexec_file.c68 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
/linux/arch/x86/kernel/
H A Dcrash.c204 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges()
385 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
H A Dmachine_kexec_64.c658 kexec_mark_range(crashk_res.start, control - 1, protect); in kexec_mark_crashkres()
660 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
/linux/drivers/of/
H A Dkexec.c429 "linux,usable-memory-range", crashk_res.start, in of_kexec_alloc_and_setup_fdt()
430 crashk_res.end - crashk_res.start + 1); in of_kexec_alloc_and_setup_fdt()
/linux/include/linux/
H A Dcrash_reserve.h14 extern struct resource crashk_res;
/linux/arch/powerpc/kernel/
H A Dprom.c488 crashk_res.start = *lprop; in early_init_dt_scan_chosen_ppc()
492 crashk_res.end = crashk_res.start + *lprop - 1; in early_init_dt_scan_chosen_ppc()
/linux/arch/riscv/kernel/
H A Dmachine_kexec_file.c78 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
/linux/arch/arm/kernel/
H A Dsetup.c1042 crashk_res.start = crash_base; in reserve_crashkernel()
1043 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
1044 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()

12