Lines Matching refs:fadump_conf

28 static void rtas_fadump_update_config(struct fw_dump *fadump_conf,  in rtas_fadump_update_config()  argument
31 fadump_conf->boot_mem_dest_addr = in rtas_fadump_update_config()
34 fadump_conf->fadumphdr_addr = (fadump_conf->boot_mem_dest_addr + in rtas_fadump_update_config()
35 fadump_conf->boot_memory_size); in rtas_fadump_update_config()
42 static void rtas_fadump_get_config(struct fw_dump *fadump_conf, in rtas_fadump_get_config() argument
45 fadump_conf->boot_mem_addr[0] = in rtas_fadump_get_config()
47 fadump_conf->boot_mem_sz[0] = be64_to_cpu(fdm->rmr_region.source_len); in rtas_fadump_get_config()
48 fadump_conf->boot_memory_size = fadump_conf->boot_mem_sz[0]; in rtas_fadump_get_config()
50 fadump_conf->boot_mem_top = fadump_conf->boot_memory_size; in rtas_fadump_get_config()
51 fadump_conf->boot_mem_regs_cnt = 1; in rtas_fadump_get_config()
57 fadump_conf->reserve_dump_area_start = in rtas_fadump_get_config()
60 rtas_fadump_update_config(fadump_conf, fdm); in rtas_fadump_get_config()
63 static u64 rtas_fadump_init_mem_struct(struct fw_dump *fadump_conf) in rtas_fadump_init_mem_struct() argument
65 u64 addr = fadump_conf->reserve_dump_area_start; in rtas_fadump_init_mem_struct()
97 cpu_to_be64(fadump_conf->cpu_state_data_size); in rtas_fadump_init_mem_struct()
99 addr += fadump_conf->cpu_state_data_size; in rtas_fadump_init_mem_struct()
107 cpu_to_be64(fadump_conf->hpte_region_size); in rtas_fadump_init_mem_struct()
109 addr += fadump_conf->hpte_region_size; in rtas_fadump_init_mem_struct()
116 fdm.rmr_region.source_len = cpu_to_be64(fadump_conf->boot_memory_size); in rtas_fadump_init_mem_struct()
118 addr += fadump_conf->boot_memory_size; in rtas_fadump_init_mem_struct()
120 rtas_fadump_update_config(fadump_conf, &fdm); in rtas_fadump_init_mem_struct()
130 static int rtas_fadump_register(struct fw_dump *fadump_conf) in rtas_fadump_register() argument
137 rc = rtas_call(fadump_conf->ibm_configure_kernel_dump, 3, 1, in rtas_fadump_register()
150 fadump_conf->dump_registered = 1; in rtas_fadump_register()
167 fadump_conf->dump_registered = 1; in rtas_fadump_register()
178 static int rtas_fadump_unregister(struct fw_dump *fadump_conf) in rtas_fadump_unregister() argument
185 rc = rtas_call(fadump_conf->ibm_configure_kernel_dump, 3, 1, in rtas_fadump_unregister()
199 fadump_conf->dump_registered = 0; in rtas_fadump_unregister()
203 static int rtas_fadump_invalidate(struct fw_dump *fadump_conf) in rtas_fadump_invalidate() argument
210 rc = rtas_call(fadump_conf->ibm_configure_kernel_dump, 3, 1, in rtas_fadump_invalidate()
224 fadump_conf->dump_active = 0; in rtas_fadump_invalidate()
304 static int __init rtas_fadump_build_cpu_notes(struct fw_dump *fadump_conf) in rtas_fadump_build_cpu_notes() argument
339 note_buf = (u32 *)fadump_conf->cpu_notes_buf_vaddr; in rtas_fadump_build_cpu_notes()
341 if (fadump_conf->fadumphdr_addr) in rtas_fadump_build_cpu_notes()
342 fdh = __va(fadump_conf->fadumphdr_addr); in rtas_fadump_build_cpu_notes()
388 static int __init rtas_fadump_process(struct fw_dump *fadump_conf) in rtas_fadump_process() argument
393 if (!fdm_active || !fadump_conf->fadumphdr_addr) in rtas_fadump_process()
412 fdh = __va(fadump_conf->fadumphdr_addr); in rtas_fadump_process()
418 rc = rtas_fadump_build_cpu_notes(fadump_conf); in rtas_fadump_process()
432 static void rtas_fadump_region_show(struct fw_dump *fadump_conf, in rtas_fadump_region_show() argument
468 fadump_conf->reserve_dump_area_start); in rtas_fadump_region_show()
490 void __init rtas_fadump_dt_scan(struct fw_dump *fadump_conf, u64 node) in rtas_fadump_dt_scan() argument
504 fadump_conf->ibm_configure_kernel_dump = be32_to_cpu(*token); in rtas_fadump_dt_scan()
505 fadump_conf->ops = &rtas_fadump_ops; in rtas_fadump_dt_scan()
506 fadump_conf->fadump_supported = 1; in rtas_fadump_dt_scan()
509 fadump_conf->max_copy_size = ALIGN_DOWN(U64_MAX, PAGE_SIZE); in rtas_fadump_dt_scan()
518 fadump_conf->dump_active = 1; in rtas_fadump_dt_scan()
519 rtas_fadump_get_config(fadump_conf, (void *)__pa(fdm_active)); in rtas_fadump_dt_scan()
541 fadump_conf->cpu_state_data_size = in rtas_fadump_dt_scan()
545 fadump_conf->hpte_region_size = in rtas_fadump_dt_scan()