/openbmc/linux/arch/powerpc/kexec/ |
H A D | core.c | 117 crashk_res.start = crash_base; in reserve_crashkernel() 118 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 121 if (crashk_res.end == crashk_res.start) { in reserve_crashkernel() 122 crashk_res.start = crashk_res.end = 0; in reserve_crashkernel() 129 crash_size = resource_size(&crashk_res); in reserve_crashkernel() 132 if (crashk_res.start != KDUMP_KERNELBASE) in reserve_crashkernel() 136 crashk_res.start = KDUMP_KERNELBASE; in reserve_crashkernel() 138 if (!crashk_res.start) { in reserve_crashkernel() 150 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_512M); in reserve_crashkernel() 152 crashk_res.start = min_t(u64, ppc64_rma_size / 2, SZ_128M); in reserve_crashkernel() [all …]
|
H A 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()
|
H A D | file_load_64.c | 118 ret = add_mem_range(mem_ranges, 0, crashk_res.end + 1); in get_usable_memory_ranges() 182 ret = crash_exclude_mem_range(tmem, crashk_res.start, crashk_res.end); in get_crash_memory_ranges() 1008 (2 * (resource_size(&crashk_res) / drmem_lmb_size()))); in kexec_extra_fdt_size_ppc64() 1195 crashk_res.start - BACKUP_SRC_SIZE); in setup_new_fdt_ppc64() 1283 buf_min = (buf_min < crashk_res.start ? in arch_kexec_locate_mem_hole() 1284 crashk_res.start : buf_min); in arch_kexec_locate_mem_hole() 1285 buf_max = (buf_max > crashk_res.end ? in arch_kexec_locate_mem_hole() 1286 crashk_res.end : buf_max); in arch_kexec_locate_mem_hole()
|
/openbmc/linux/arch/sh/kernel/ |
H A 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 …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | machine_kexec.c | 142 size = begin - crashk_res.start; in crash_free_reserved_phys_range() 144 os_info_crashkernel_add(crashk_res.start, size); in crash_free_reserved_phys_range() 153 if (!crashk_res.end) in crash_protect_pages() 155 size = resource_size(&crashk_res); in crash_protect_pages() 157 set_memory_ro(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 159 set_memory_rw(crashk_res.start, size >> PAGE_SHIFT); in crash_protect_pages() 181 diag10_range(PFN_DOWN(crashk_res.start), in machine_kexec_prepare_kdump() 182 PFN_DOWN(crashk_res.end - crashk_res.start + 1)); in machine_kexec_prepare_kdump()
|
H A 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()
|
H A D | setup.c | 565 if (crashk_res.end) { in setup_resources() 566 memblock_add_node(crashk_res.start, resource_size(&crashk_res), in setup_resources() 568 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources() 569 insert_resource(&iomem_resource, &crashk_res); in setup_resources() 595 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier() 676 crashk_res.start = crash_base; in reserve_crashkernel() 677 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
H A D | kexec_image.c | 28 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
|
H A D | kexec_elf.c | 44 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | setup.c | 288 crashk_res.start = crash_base; in arch_parse_crashkernel() 289 crashk_res.end = crash_base + crash_size - 1; in arch_parse_crashkernel() 479 if (crashk_res.start < crashk_res.end) { in resource_init() 480 insert_resource(&iomem_resource, &crashk_res); in resource_init() 482 (unsigned long)((crashk_res.end - crashk_res.start + 1) >> 20), in resource_init() 483 (unsigned long)(crashk_res.start >> 20)); in resource_init()
|
/openbmc/linux/kernel/ |
H A D | kexec_core.c | 57 struct resource crashk_res = { variable 244 if ((mstart < phys_to_boot_phys(crashk_res.start)) || in sanity_check_segment_list() 245 (mend > phys_to_boot_phys(crashk_res.end))) in sanity_check_segment_list() 452 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages() 1109 size += crash_resource_size(&crashk_res); in crash_get_memory_size() 1135 crashk_res.end = ram_res->start - 1; in __crash_shrink_memory() 1158 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory() 1174 ret = __crash_shrink_memory(&crashk_res, 0); in crash_shrink_memory() 1180 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory() 1184 if (!crashk_res.end && crashk_low_res.end) { in crash_shrink_memory() [all …]
|
H A 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()
|
H A D | kexec_file.c | 285 image->control_page = crashk_res.start; in kimage_file_alloc_init() 531 return func(&crashk_res, kbuf); in kexec_walk_memblock() 591 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 593 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
/openbmc/linux/arch/ia64/mm/ |
H A D | init.c | 388 if (start > crashk_res.start && start < crashk_res.end) in register_active_ranges() 389 start = crashk_res.end; in register_active_ranges() 390 if (end > crashk_res.start && end < crashk_res.end) in register_active_ranges() 391 end = crashk_res.start; in register_active_ranges()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | setup.c | 487 crashk_res.start = crash_base; in mips_parse_crashkernel() 488 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel() 495 if (crashk_res.start == crashk_res.end) in request_crashkernel() 498 ret = request_resource(res, &crashk_res); in request_crashkernel() 501 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel() 502 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | crash.c | 178 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in elf_header_exclude_ranges() 324 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
|
H A D | setup.c | 614 crashk_res.start = crash_base; in reserve_crashkernel() 615 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 616 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | setup.c | 171 if (crashk_res.start != crashk_res.end) { in init_resources() 172 ret = add_resource(&iomem_resource, &crashk_res); in init_resources()
|
H A D | elf_kexec.c | 159 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | machine_kexec.c | 308 if (!crashk_res.end) in crash_is_nosave() 313 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
|
H A D | machine_kexec_file.c | 67 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
/openbmc/linux/arch/arm64/mm/ |
H A D | init.c | 234 crashk_res.start = crash_base; in reserve_crashkernel() 235 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel() 236 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel()
|
/openbmc/linux/drivers/of/ |
H A D | kexec.c | 400 "linux,usable-memory-range", crashk_res.start, in of_kexec_alloc_and_setup_fdt() 401 crashk_res.end - crashk_res.start + 1); in of_kexec_alloc_and_setup_fdt()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | prom.c | 478 crashk_res.start = *lprop; in early_init_dt_scan_chosen_ppc() 482 crashk_res.end = crashk_res.start + *lprop - 1; in early_init_dt_scan_chosen_ppc()
|
/openbmc/linux/arch/arm/kernel/ |
H A 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()
|