/linux-6.12.1/arch/powerpc/kexec/ |
D | core.c | 93 crashk_res.start = crash_base; in reserve_crashkernel() 94 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 97 if (crashk_res.end == crashk_res.start) { in reserve_crashkernel() 98 crashk_res.start = crashk_res.end = 0; in reserve_crashkernel() 105 crash_size = resource_size(&crashk_res); in reserve_crashkernel() 108 if (crashk_res.start != KDUMP_KERNELBASE) in reserve_crashkernel() 112 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel() 114 if (!crashk_res.start) { in reserve_crashkernel() 126 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_512M); in reserve_crashkernel() 128 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_128M); in reserve_crashkernel() [all …]
|
D | elf_64.c | 54 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()
|
D | file_load_64.c | 813 (2 * (resource_size(&crashk_res) / drmem_lmb_size()))); in kdump_extra_fdt_size_ppc64() 947 crashk_res.start - BACKUP_SRC_SIZE); in setup_new_fdt_ppc64() 1031 buf_min = (buf_min < crashk_res.start ? in arch_kexec_locate_mem_hole() 1032 crashk_res.start : buf_min); in arch_kexec_locate_mem_hole() 1033 buf_max = (buf_max > crashk_res.end ? in arch_kexec_locate_mem_hole() 1034 crashk_res.end : buf_max); in arch_kexec_locate_mem_hole()
|
D | ranges.c | 527 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges() 594 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end); in get_crash_memory_ranges()
|
/linux-6.12.1/arch/sh/kernel/ |
D | machine_kexec.c | 151 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-6.12.1/arch/s390/kernel/ |
D | machine_kexec.c | 143 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 145 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 154 if (!crashk_res.end) in crash_protect_pages() 156 size = resource_size(&crashk_res); in crash_protect_pages() 158 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 160 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 182 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 183 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
|
D | machine_kexec_file.c | 113 &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() 281 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components() 282 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
|
D | setup.c | 558 if (crashk_res.end) { in setup_resources() 559 memblock_add_node(crashk_res.start, resource_size(&crashk_res), in setup_resources() 561 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources() 562 insert_resource(&iomem_resource, &crashk_res); in setup_resources() 588 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier() 669 crashk_res.start = crash_base; in reserve_crashkernel() 670 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
D | kexec_image.c | 29 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
|
D | kexec_elf.c | 45 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
|
/linux-6.12.1/kernel/ |
D | crash_reserve.c | 27 struct resource crashk_res = { variable 454 crashk_res.start = crash_base; in reserve_crashkernel_generic() 455 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel_generic() 457 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel_generic() 464 if (crashk_res.start < crashk_res.end) in insert_crashkernel_resources() 465 insert_resource(&iomem_resource, &crashk_res); in insert_crashkernel_resources()
|
D | crash_core.c | 329 size += crash_resource_size(&crashk_res); in crash_get_memory_size() 355 crashk_res.end = ram_res->start - 1; in __crash_shrink_memory() 378 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory() 394 ret = __crash_shrink_memory(&crashk_res, 0); in crash_shrink_memory() 400 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory() 404 if (!crashk_res.end && crashk_low_res.end) { in crash_shrink_memory() 405 crashk_res.start = crashk_low_res.start; in crash_shrink_memory() 406 crashk_res.end = crashk_low_res.end; in crash_shrink_memory() 410 insert_resource(&iomem_resource, &crashk_res); in crash_shrink_memory()
|
D | kexec.c | 34 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()
|
D | kexec_file.c | 291 image->control_page = crashk_res.start; in kimage_file_alloc_init() 550 return func(&crashk_res, kbuf); in kexec_walk_memblock() 612 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 614 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
D | kexec_core.c | 206 if ((mstart < phys_to_boot_phys(crashk_res.start)) || in sanity_check_segment_list() 207 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 416 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages()
|
/linux-6.12.1/arch/mips/kernel/ |
D | setup.c | 485 crashk_res.start = crash_base; in mips_parse_crashkernel() 486 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel() 496 if (crashk_res.start == crashk_res.end) in request_crashkernel() 499 ret = request_resource(res, &crashk_res); in request_crashkernel() 502 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel() 503 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
|
/linux-6.12.1/arch/x86/kernel/ |
D | crash.c | 194 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges() 340 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
|
D | machine_kexec_64.c | 577 kexec_mark_range(crashk_res.start, control + PAGE_SIZE - 1, protect); in kexec_mark_crashkres() 579 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
|
/linux-6.12.1/arch/arm64/kernel/ |
D | machine_kexec.c | 294 if (!crashk_res.end) in crash_is_nosave() 299 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
|
D | machine_kexec_file.c | 68 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
/linux-6.12.1/drivers/of/ |
D | kexec.c | 401 "linux,usable-memory-range", crashk_res.start, in of_kexec_alloc_and_setup_fdt() 402 crashk_res.end - crashk_res.start + 1); in of_kexec_alloc_and_setup_fdt()
|
/linux-6.12.1/include/linux/ |
D | crash_reserve.h | 14 extern struct resource crashk_res;
|
/linux-6.12.1/arch/powerpc/kernel/ |
D | prom.c | 488 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-6.12.1/arch/arm/kernel/ |
D | setup.c | 1048 crashk_res.start = crash_base; in reserve_crashkernel() 1049 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 1050 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
/linux-6.12.1/arch/riscv/kernel/ |
D | elf_kexec.c | 161 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|