/linux-6.1.9/arch/powerpc/kexec/ |
D | core.c | 114 crashk_res.start = crash_base; in reserve_crashkernel() 115 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 118 if (crashk_res.end == crashk_res.start) { in reserve_crashkernel() 119 crashk_res.start = crashk_res.end = 0; in reserve_crashkernel() 126 crash_size = resource_size(&crashk_res); in reserve_crashkernel() 129 if (crashk_res.start != KDUMP_KERNELBASE) in reserve_crashkernel() 133 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel() 135 if (!crashk_res.start) { in reserve_crashkernel() 147 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_512M); in reserve_crashkernel() 149 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_128M); in reserve_crashkernel() [all …]
|
D | elf_64.c | 52 kbuf.buf_min = pbuf.buf_min = crashk_res.start; in elf64_load() 54 ((crashk_res.end < ppc64_rma_size) ? in elf64_load() 55 crashk_res.end : (ppc64_rma_size - 1)); in elf64_load()
|
D | file_load_64.c | 114 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges() 178 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end); in get_crash_memory_ranges() 951 (2 * (resource_size(&crashk_res) / drmem_lmb_size()))); in kexec_extra_fdt_size_ppc64() 1123 crashk_res.start - BACKUP_SRC_SIZE); in setup_new_fdt_ppc64() 1211 buf_min = (buf_min < crashk_res.start ? in arch_kexec_locate_mem_hole() 1212 crashk_res.start : buf_min); in arch_kexec_locate_mem_hole() 1213 buf_max = (buf_max > crashk_res.end ? in arch_kexec_locate_mem_hole() 1214 crashk_res.end : buf_max); in arch_kexec_locate_mem_hole()
|
/linux-6.1.9/arch/sh/kernel/ |
D | machine_kexec.c | 159 crashk_res.start = crash_base; in reserve_crashkernel() 160 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 163 if (crashk_res.end == crashk_res.start) in reserve_crashkernel() 166 crash_size = PAGE_ALIGN(resource_size(&crashk_res)); in reserve_crashkernel() 167 if (!crashk_res.start) { in reserve_crashkernel() 169 crashk_res.start = memblock_phys_alloc_range(crash_size, in reserve_crashkernel() 171 if (!crashk_res.start) { in reserve_crashkernel() 176 ret = memblock_reserve(crashk_res.start, crash_size); in reserve_crashkernel() 184 crashk_res.end = crashk_res.start + crash_size - 1; in reserve_crashkernel() 189 if ((memblock_end_of_DRAM() - memory_limit) <= crashk_res.end) { in reserve_crashkernel() [all …]
|
/linux-6.1.9/arch/s390/kernel/ |
D | machine_kexec.c | 154 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 156 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 165 if (!crashk_res.end) in crash_protect_pages() 167 size = resource_size(&crashk_res); in crash_protect_pages() 169 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 171 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 193 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 194 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
|
D | machine_kexec_file.c | 112 &crashk_res.start, in kexec_file_update_purgatory() 113 sizeof(crashk_res.start), in kexec_file_update_purgatory() 118 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory() 138 buf.mem += crashk_res.start; in kexec_file_add_purgatory() 162 buf.mem += crashk_res.start; in kexec_file_add_initrd() 227 buf.mem += crashk_res.start; in kexec_file_add_ipl_report() 272 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components() 273 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
|
D | setup.c | 608 if (crashk_res.end) { in setup_resources() 609 memblock_add_node(crashk_res.start, resource_size(&crashk_res), in setup_resources() 611 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources() 612 insert_resource(&iomem_resource, &crashk_res); in setup_resources() 639 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier() 708 crashk_res.start = crash_base; in reserve_crashkernel() 709 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
D | kexec_image.c | 28 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
|
D | kexec_elf.c | 44 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
|
/linux-6.1.9/arch/loongarch/kernel/ |
D | setup.c | 244 crashk_res.start = crash_base; in arch_parse_crashkernel() 245 crashk_res.end = crash_base + crash_size - 1; in arch_parse_crashkernel() 357 if (crashk_res.start < crashk_res.end) { in resource_init() 358 insert_resource(&iomem_resource, &crashk_res); in resource_init() 360 (unsigned long)((crashk_res.end - crashk_res.start + 1) >> 20), in resource_init() 361 (unsigned long)(crashk_res.start >> 20)); in resource_init()
|
/linux-6.1.9/kernel/ |
D | kexec_core.c | 59 struct resource crashk_res = { variable 246 if ((mstart < phys_to_boot_phys(crashk_res.start)) || in sanity_check_segment_list() 247 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 448 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages() 1014 if (crashk_res.end != crashk_res.start) in crash_get_memory_size() 1015 size = resource_size(&crashk_res); in crash_get_memory_size() 1035 start = crashk_res.start; in crash_shrink_memory() 1036 end = crashk_res.end; in crash_shrink_memory() 1052 crash_free_reserved_phys_range(end, crashk_res.end); in crash_shrink_memory() 1054 if ((start == end) && (crashk_res.parent != NULL)) in crash_shrink_memory() [all …]
|
D | kexec.c | 33 if ((entry < phys_to_boot_phys(crashk_res.start)) || in kimage_alloc_init() 34 (entry > phys_to_boot_phys(crashk_res.end))) in kimage_alloc_init() 49 image->control_page = crashk_res.start; in kimage_alloc_init()
|
D | kexec_file.c | 285 image->control_page = crashk_res.start; in kimage_file_alloc_init() 528 return func(&crashk_res, kbuf); in kexec_walk_memblock() 588 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 590 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
/linux-6.1.9/arch/ia64/mm/ |
D | init.c | 374 if (start > crashk_res.start && start < crashk_res.end) in register_active_ranges() 375 start = crashk_res.end; in register_active_ranges() 376 if (end > crashk_res.start && end < crashk_res.end) in register_active_ranges() 377 end = crashk_res.start; in register_active_ranges()
|
/linux-6.1.9/arch/mips/kernel/ |
D | setup.c | 484 crashk_res.start = crash_base; in mips_parse_crashkernel() 485 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel() 492 if (crashk_res.start == crashk_res.end) in request_crashkernel() 495 ret = request_resource(res, &crashk_res); in request_crashkernel() 498 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel() 499 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
|
/linux-6.1.9/arch/x86/kernel/ |
D | crash.c | 225 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges() 366 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
|
D | setup.c | 623 crashk_res.start = crash_base; in reserve_crashkernel() 624 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 625 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
D | machine_kexec_64.c | 555 kexec_mark_range(crashk_res.start, control + PAGE_SIZE - 1, protect); in kexec_mark_crashkres() 557 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
|
/linux-6.1.9/arch/riscv/kernel/ |
D | setup.c | 174 if (crashk_res.start != crashk_res.end) { in init_resources() 175 ret = add_resource(&iomem_resource, &crashk_res); in init_resources()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | machine_kexec.c | 327 if (!crashk_res.end) in crash_is_nosave() 332 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
|
D | machine_kexec_file.c | 67 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
/linux-6.1.9/arch/arm64/mm/ |
D | init.c | 190 crashk_res.start = crash_base; in reserve_crashkernel() 191 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 192 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
D | mmu.c | 557 else if (crashk_res.end) in map_mem() 558 memblock_mark_nomap(crashk_res.start, in map_mem() 559 resource_size(&crashk_res)); in map_mem() 597 if (crashk_res.end) { in map_mem() 598 __map_memblock(pgdp, crashk_res.start, in map_mem() 599 crashk_res.end + 1, in map_mem() 602 memblock_clear_nomap(crashk_res.start, in map_mem() 603 resource_size(&crashk_res)); in map_mem()
|
/linux-6.1.9/drivers/of/ |
D | kexec.c | 399 "linux,usable-memory-range", crashk_res.start, in of_kexec_alloc_and_setup_fdt() 400 crashk_res.end - crashk_res.start + 1); in of_kexec_alloc_and_setup_fdt()
|
/linux-6.1.9/arch/powerpc/kernel/ |
D | prom.c | 453 crashk_res.start = *lprop; in early_init_dt_scan_chosen_ppc() 457 crashk_res.end = crashk_res.start + *lprop - 1; in early_init_dt_scan_chosen_ppc()
|