Lines Matching +full:cpu +full:- +full:nr
1 // SPDX-License-Identifier: GPL-2.0
20 #define CNODEID_NONE (cnodeid_t)-1
41 if (nmi_addr->call_addr) in install_cpu_nmi_handler()
43 nmi_addr->magic = NMI_MAGIC; in install_cpu_nmi_handler()
44 nmi_addr->call_addr = (void *)nmi_dump; in install_cpu_nmi_handler()
45 nmi_addr->call_addr_c = in install_cpu_nmi_handler()
46 (void *)(~((unsigned long)(nmi_addr->call_addr))); in install_cpu_nmi_handler()
47 nmi_addr->call_parm = 0; in install_cpu_nmi_handler()
51 * Copy the cpu registers which have been saved in the IP27prom format
57 struct reg_struct *nr; in nmi_cpu_eframe_save() local
60 /* Get the pointer to the current cpu's register set. */ in nmi_cpu_eframe_save()
61 nr = (struct reg_struct *) in nmi_cpu_eframe_save()
73 printk(" %016lx", nr->gpr[i]); in nmi_cpu_eframe_save()
86 printk("epc : %016lx %pS\n", nr->epc, (void *) nr->epc); in nmi_cpu_eframe_save()
88 printk("ErrEPC: %016lx %pS\n", nr->error_epc, (void *) nr->error_epc); in nmi_cpu_eframe_save()
89 printk("ra : %016lx %pS\n", nr->gpr[31], (void *) nr->gpr[31]); in nmi_cpu_eframe_save()
90 printk("Status: %08lx ", nr->sr); in nmi_cpu_eframe_save()
92 if (nr->sr & ST0_KX) in nmi_cpu_eframe_save()
94 if (nr->sr & ST0_SX) in nmi_cpu_eframe_save()
96 if (nr->sr & ST0_UX) in nmi_cpu_eframe_save()
99 switch (nr->sr & ST0_KSU) { in nmi_cpu_eframe_save()
114 if (nr->sr & ST0_ERL) in nmi_cpu_eframe_save()
116 if (nr->sr & ST0_EXL) in nmi_cpu_eframe_save()
118 if (nr->sr & ST0_IE) in nmi_cpu_eframe_save()
122 printk("Cause : %08lx\n", nr->cause); in nmi_cpu_eframe_save()
124 printk("BadVA : %016lx\n", nr->badva); in nmi_cpu_eframe_save()
125 printk("CErr : %016lx\n", nr->cache_err); in nmi_cpu_eframe_save()
126 printk("NMI_SR: %016lx\n", nr->nmi_sr); in nmi_cpu_eframe_save()
152 * Copy the cpu registers which have been saved in the IP27prom format
168 /* Save the registers into eframe for each cpu */ in nmi_node_eframe_save()
176 * Save the nmi cpu registers for all cpus in the system.
196 * Only allow 1 cpu to proceed in cont_nmi_dump()
203 * If a cpu has not responded after 10 sec, send it 1 additional NMI. in cont_nmi_dump()
205 * - sometimes a MMSC fail to NMI all cpus. in cont_nmi_dump()
206 * - on 512p SN0 system, the MMSC will only send NMIs to in cont_nmi_dump()
208 * NMIed - it depends on how the site chooses to configure. in cont_nmi_dump()
215 if (NODEPDA(node)->dump_count == 0) in cont_nmi_dump()
221 if (NODEPDA(node)->dump_count == 0) { in cont_nmi_dump()
222 cpu = cpumask_first(cpumask_of_node(node)); in cont_nmi_dump()
223 for (n=0; n < CNODE_NUM_CPUS(node); cpu++, n++) { in cont_nmi_dump()
224 CPUMASK_SETB(nmied_cpus, cpu); in cont_nmi_dump()
229 SEND_NMI((cputonasid(cpu)), (cputoslice(cpu))); in cont_nmi_dump()
241 * Save the nmi cpu registers for all cpu in the eframe format. in cont_nmi_dump()