/kernel/linux/linux-5.10/arch/powerpc/kexec/ |
D | core.c | 126 crashk_res.start = crash_base; in reserve_crashkernel() 127 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 130 if (crashk_res.end == crashk_res.start) { in reserve_crashkernel() 131 crashk_res.start = crashk_res.end = 0; in reserve_crashkernel() 138 crash_size = resource_size(&crashk_res); in reserve_crashkernel() 141 if (crashk_res.start != KDUMP_KERNELBASE) in reserve_crashkernel() 145 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel() 147 if (!crashk_res.start) { in reserve_crashkernel() 159 crashk_res.start = ppc64_rma_size / 2; in reserve_crashkernel() 161 crashk_res.start = min(0x8000000ULL, (ppc64_rma_size / 2)); 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 | 113 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges() 177 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end); in get_crash_memory_ranges() 957 (2 * (resource_size(&crashk_res) / drmem_lmb_size()))); in kexec_fdt_totalsize_ppc64() 1093 crashk_res.start - BACKUP_SRC_SIZE); in setup_new_fdt_ppc64() 1169 buf_min = (buf_min < crashk_res.start ? in arch_kexec_locate_mem_hole() 1170 crashk_res.start : buf_min); in arch_kexec_locate_mem_hole() 1171 buf_max = (buf_max > crashk_res.end ? in arch_kexec_locate_mem_hole() 1172 crashk_res.end : buf_max); in arch_kexec_locate_mem_hole()
|
/kernel/linux/linux-5.10/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 …]
|
D | setup.c | 228 request_resource(res, &crashk_res); in __add_active_range()
|
/kernel/linux/linux-5.10/arch/s390/kernel/ |
D | machine_kexec.c | 151 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 153 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 162 if (!crashk_res.end) in crash_protect_pages() 164 size = resource_size(&crashk_res); in crash_protect_pages() 166 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 168 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 190 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 191 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
|
D | machine_kexec_file.c | 110 &crashk_res.start, in kexec_file_update_purgatory() 111 sizeof(crashk_res.start), in kexec_file_update_purgatory() 116 crash_size = crashk_res.end - crashk_res.start + 1; in kexec_file_update_purgatory() 136 buf.mem += crashk_res.start; in kexec_file_add_purgatory() 160 buf.mem += crashk_res.start; in kexec_file_add_initrd() 225 buf.mem += crashk_res.start; in kexec_file_add_ipl_report() 255 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components() 256 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
|
D | setup.c | 552 if (crashk_res.end) { in setup_resources() 553 memblock_add_node(crashk_res.start, resource_size(&crashk_res), 0); in setup_resources() 554 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources() 555 insert_resource(&iomem_resource, &crashk_res); in setup_resources() 624 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier() 723 crashk_res.start = crash_base; in reserve_crashkernel() 724 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()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | setup.c | 472 crashk_res.start = crash_base; in mips_parse_crashkernel() 473 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel() 480 if (crashk_res.start == crashk_res.end) in request_crashkernel() 483 ret = request_resource(res, &crashk_res); in request_crashkernel() 486 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel() 487 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel() 666 if (crashk_res.start != crashk_res.end) in arch_mem_init() 667 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in arch_mem_init()
|
/kernel/linux/linux-5.10/kernel/ |
D | kexec_core.c | 58 struct resource crashk_res = { variable 245 if ((mstart < phys_to_boot_phys(crashk_res.start)) || in sanity_check_segment_list() 246 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 447 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages() 997 if (crashk_res.end != crashk_res.start) in crash_get_memory_size() 998 size = resource_size(&crashk_res); in crash_get_memory_size() 1025 start = crashk_res.start; in crash_shrink_memory() 1026 end = crashk_res.end; in crash_shrink_memory() 1042 crash_free_reserved_phys_range(end, crashk_res.end); in crash_shrink_memory() 1044 if ((start == end) && (crashk_res.parent != NULL)) in crash_shrink_memory() [all …]
|
D | kexec.c | 50 if ((entry < phys_to_boot_phys(crashk_res.start)) || in kimage_alloc_init() 51 (entry > phys_to_boot_phys(crashk_res.end))) in kimage_alloc_init() 68 image->control_page = crashk_res.start; in kimage_alloc_init()
|
D | kexec_file.c | 289 image->control_page = crashk_res.start; in kimage_file_alloc_init() 532 return func(&crashk_res, kbuf); in kexec_walk_memblock() 587 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 589 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | machine_kexec_file.c | 84 crashk_res.start, in setup_dtb() 85 crashk_res.end - crashk_res.start + 1); in setup_dtb() 236 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
D | setup.c | 242 if (crashk_res.end && crashk_res.start >= res->start && in request_standard_resources() 243 crashk_res.end <= res->end) in request_standard_resources() 244 request_resource(res, &crashk_res); in request_standard_resources()
|
D | machine_kexec.c | 322 if (!crashk_res.end) in crash_is_nosave() 327 if ((addr < crashk_res.start) || (crashk_res.end < addr)) in crash_is_nosave()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | crash.c | 238 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges() 379 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
|
D | setup.c | 556 crashk_res.start = crash_base; in reserve_crashkernel() 557 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 558 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
D | machine_kexec_64.c | 575 kexec_mark_range(crashk_res.start, control + PAGE_SIZE - 1, protect); in kexec_mark_crashkres() 577 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | init.c | 602 if (start > crashk_res.start && start < crashk_res.end) in register_active_ranges() 603 start = crashk_res.end; in register_active_ranges() 604 if (end > crashk_res.start && end < crashk_res.end) in register_active_ranges() 605 end = crashk_res.start; in register_active_ranges()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | mmu.c | 520 else if (crashk_res.end) in map_mem() 521 memblock_mark_nomap(crashk_res.start, in map_mem() 522 resource_size(&crashk_res)); in map_mem() 561 if (crashk_res.end) { in map_mem() 562 __map_memblock(pgdp, crashk_res.start, in map_mem() 563 crashk_res.end + 1, in map_mem() 566 memblock_clear_nomap(crashk_res.start, in map_mem() 567 resource_size(&crashk_res)); in map_mem()
|
D | init.c | 142 crashk_res.start = crash_base; in reserve_crashkernel() 143 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | prom.c | 433 crashk_res.start = *lprop; in early_init_dt_scan_chosen_ppc() 437 crashk_res.end = crashk_res.start + *lprop - 1; in early_init_dt_scan_chosen_ppc()
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
D | setup.c | 1046 crashk_res.start = crash_base; in reserve_crashkernel() 1047 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 1048 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|