Lines Matching +full:cpu +full:- +full:nr
1 // SPDX-License-Identifier: GPL-2.0
14 #include "ip27-common.h"
35 if (nmi_addr->call_addr) in install_cpu_nmi_handler()
37 nmi_addr->magic = NMI_MAGIC; in install_cpu_nmi_handler()
38 nmi_addr->call_addr = (void *)nmi_dump; in install_cpu_nmi_handler()
39 nmi_addr->call_addr_c = in install_cpu_nmi_handler()
40 (void *)(~((unsigned long)(nmi_addr->call_addr))); in install_cpu_nmi_handler()
41 nmi_addr->call_parm = 0; in install_cpu_nmi_handler()
45 * Copy the cpu registers which have been saved in the IP27prom format
51 struct reg_struct *nr; in nmi_cpu_eframe_save() local
54 /* Get the pointer to the current cpu's register set. */ in nmi_cpu_eframe_save()
55 nr = (struct reg_struct *) in nmi_cpu_eframe_save()
67 pr_cont(" %016lx", nr->gpr[i]); in nmi_cpu_eframe_save()
80 pr_emerg("epc : %016lx %pS\n", nr->epc, (void *)nr->epc); in nmi_cpu_eframe_save()
82 pr_emerg("ErrEPC: %016lx %pS\n", nr->error_epc, (void *)nr->error_epc); in nmi_cpu_eframe_save()
83 pr_emerg("ra : %016lx %pS\n", nr->gpr[31], (void *)nr->gpr[31]); in nmi_cpu_eframe_save()
84 pr_emerg("Status: %08lx ", nr->sr); in nmi_cpu_eframe_save()
86 if (nr->sr & ST0_KX) in nmi_cpu_eframe_save()
88 if (nr->sr & ST0_SX) in nmi_cpu_eframe_save()
90 if (nr->sr & ST0_UX) in nmi_cpu_eframe_save()
93 switch (nr->sr & ST0_KSU) { in nmi_cpu_eframe_save()
108 if (nr->sr & ST0_ERL) in nmi_cpu_eframe_save()
110 if (nr->sr & ST0_EXL) in nmi_cpu_eframe_save()
112 if (nr->sr & ST0_IE) in nmi_cpu_eframe_save()
116 pr_emerg("Cause : %08lx\n", nr->cause); in nmi_cpu_eframe_save()
118 pr_emerg("BadVA : %016lx\n", nr->badva); in nmi_cpu_eframe_save()
119 pr_emerg("CErr : %016lx\n", nr->cache_err); in nmi_cpu_eframe_save()
120 pr_emerg("NMI_SR: %016lx\n", nr->nmi_sr); in nmi_cpu_eframe_save()
146 * Copy the cpu registers which have been saved in the IP27prom format
156 /* Save the registers into eframe for each cpu */ in nmi_node_eframe_save()
164 * Save the nmi cpu registers for all cpus in the system.
182 * Only allow 1 cpu to proceed in nmi_dump()
189 * If a cpu has not responded after 10 sec, send it 1 additional NMI. in nmi_dump()
191 * - sometimes a MMSC fail to NMI all cpus. in nmi_dump()
192 * - on 512p SN0 system, the MMSC will only send NMIs to in nmi_dump()
194 * NMIed - it depends on how the site chooses to configure. in nmi_dump()
201 if (NODEPDA(node)->dump_count == 0) in nmi_dump()
207 if (NODEPDA(node)->dump_count == 0) { in nmi_dump()
208 cpu = cpumask_first(cpumask_of_node(node)); in nmi_dump()
209 for (n=0; n < CNODE_NUM_CPUS(node); cpu++, n++) { in nmi_dump()
210 CPUMASK_SETB(nmied_cpus, cpu); in nmi_dump()
215 SEND_NMI((cputonasid(cpu)), (cputoslice(cpu))); in nmi_dump()
227 * Save the nmi cpu registers for all cpu in the eframe format. in nmi_dump()