Home
last modified time | relevance | path

Searched refs:crashk_res (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v6.1/arch/powerpc/kexec/
Dcore.c114 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 …]
Delf_64.c52 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()
Dfile_load_64.c114 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-v6.1/arch/sh/kernel/
Dmachine_kexec.c159 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-v6.1/arch/s390/kernel/
Dmachine_kexec.c154 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()
Dmachine_kexec_file.c112 &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()
191 buf.mem += crashk_res.start; in kexec_file_add_ipl_report()
271 data.parm->oldmem_base = crashk_res.start; in kexec_file_add_components()
272 data.parm->oldmem_size = crashk_res.end - crashk_res.start + 1; in kexec_file_add_components()
Dsetup.c608 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()
Dkexec_image.c28 buf.mem += crashk_res.start; in kexec_file_add_kernel_image()
Dkexec_elf.c44 buf.mem += crashk_res.start; in kexec_file_add_kernel_elf()
/Linux-v6.1/arch/loongarch/kernel/
Dsetup.c244 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-v6.1/kernel/
Dkexec_core.c59 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 …]
Dkexec.c33 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()
Dkexec_file.c285 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-v6.1/arch/ia64/mm/
Dinit.c374 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-v6.1/arch/mips/kernel/
Dsetup.c484 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-v6.1/arch/x86/kernel/
Dcrash.c225 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()
Dsetup.c623 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()
Dmachine_kexec_64.c555 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-v6.1/arch/riscv/kernel/
Dsetup.c174 if (crashk_res.start != crashk_res.end) { in init_resources()
175 ret = add_resource(&iomem_resource, &crashk_res); in init_resources()
/Linux-v6.1/arch/arm64/kernel/
Dmachine_kexec.c327 if (!crashk_res.end) in crash_is_nosave()
332 if ((addr < crashk_res.start) || (crashk_res.end < addr)) { in crash_is_nosave()
Dmachine_kexec_file.c67 ret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end); in prepare_elf_headers()
/Linux-v6.1/arch/arm64/mm/
Dinit.c190 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()
Dmmu.c557 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-v6.1/drivers/of/
Dkexec.c399 "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-v6.1/arch/powerpc/kernel/
Dprom.c453 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()

12