| /linux-6.15/arch/sh/kernel/ |
| H A 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() 189 (unsigned long)(crashk_res.start), in reserve_crashkernel() [all …]
|
| H A D | setup.c | 224 request_resource(res, &crashk_res); in __add_active_range()
|
| /linux-6.15/arch/s390/kernel/ |
| H A D | machine_kexec.c | 145 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 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()
|
| H A D | setup.c | 544 if (crashk_res.end) { in setup_resources() 545 memblock_add_node(crashk_res.start, resource_size(&crashk_res), in setup_resources() 547 memblock_reserve(crashk_res.start, resource_size(&crashk_res)); in setup_resources() 548 insert_resource(&iomem_resource, &crashk_res); in setup_resources() 574 if (arg->start_pfn < PFN_DOWN(resource_size(&crashk_res))) in kdump_mem_notifier() 655 crashk_res.start = crash_base; in reserve_crashkernel() 656 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel()
|
| H A D | kexec_image.c | 29 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
|
| H A D | kexec_elf.c | 45 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
|
| /linux-6.15/arch/powerpc/kexec/ |
| H A D | core.c | 135 return (start + size) > crashk_res.start && start <= crashk_res.end; in overlaps_crashkernel() 179 if (crashk_res.start != 0) { in export_crashk_values() 180 crashk_base = cpu_to_be_ulong(crashk_res.start), in export_crashk_values() 182 crashk_size = cpu_to_be_ulong(resource_size(&crashk_res)); in export_crashk_values()
|
| H A 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()
|
| H A 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.15/kernel/ |
| H A D | crash_reserve.c | 27 struct resource crashk_res = { variable 453 crashk_res.start = crash_base; in reserve_crashkernel_generic() 454 crashk_res.end = crash_base + crash_size - 1; in reserve_crashkernel_generic() 456 insert_resource(&iomem_resource, &crashk_res); in reserve_crashkernel_generic() 463 if (crashk_res.start < crashk_res.end) in insert_crashkernel_resources() 464 insert_resource(&iomem_resource, &crashk_res); in insert_crashkernel_resources()
|
| H A 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()
|
| H A 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()
|
| H A D | kexec_file.c | 291 image->control_page = crashk_res.start; in kimage_file_alloc_init() 562 return func(&crashk_res, kbuf); in kexec_walk_memblock() 624 return walk_iomem_res_desc(crashk_res.desc, in kexec_walk_resources() 626 crashk_res.start, crashk_res.end, in kexec_walk_resources()
|
| H A 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() 426 while (hole_end <= crashk_res.end) { in kimage_alloc_crash_control_pages()
|
| /linux-6.15/arch/mips/kernel/ |
| H A 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.15/arch/arm64/kernel/ |
| H A D | machine_kexec.c | 263 if (!crashk_res.end) in crash_is_nosave() 268 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
|
| H A D | machine_kexec_file.c | 68 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
| /linux-6.15/arch/x86/kernel/ |
| H A 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()
|
| H A D | machine_kexec_64.c | 596 kexec_mark_range(crashk_res.start, control - 1, protect); in kexec_mark_crashkres() 598 kexec_mark_range(control, crashk_res.end, protect); in kexec_mark_crashkres()
|
| /linux-6.15/drivers/of/ |
| H A 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.15/include/linux/ |
| H A D | crash_reserve.h | 14 extern struct resource crashk_res;
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A 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.15/arch/riscv/kernel/ |
| H A D | elf_kexec.c | 161 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
|
| /linux-6.15/arch/arm/kernel/ |
| H A D | setup.c | 1042 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()
|