[RFC PATCH 6/7] powerpc/book3s: Display more info for MCE error console log.

Mahesh J Salgaonkar mahesh at linux.vnet.ibm.com
Tue Feb 21 12:53:02 AEDT 2017

From: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>

For D-side errors we print data load/store address as 'Effective address'
that caused MC. In addition to that print NIP also at which interrupt was

After this patch the MCE console log would look like:

[1150485.962090] Severe Machine check interrupt [Recovered]
[1150485.962114]   Initiator: CPU
[1150485.962139]   NIP [c000000000018b00]: sched_clock+0x8/0x34
[1150485.962166]   Error type: ERAT [Multihit]
[1150485.962190]     Effective address: 00003fff8f6b0000

Signed-off-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
 arch/powerpc/kernel/mce.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c
index da12992..035ef53 100644
--- a/arch/powerpc/kernel/mce.c
+++ b/arch/powerpc/kernel/mce.c
@@ -320,6 +320,8 @@ void machine_check_print_event_info(struct OpalMachineCheckEvent *evt)
 	       "Recovered" : "[Not recovered");
 	printk("%s  Initiator: %s\n", level,
 	       evt->initiator == MCE_INITIATOR_CPU ? "CPU" : "Unknown");
+	printk("%s  NIP [%016llx]: %pS\n", level, evt->srr0,
+							(void *)evt->srr0);
 	switch (evt->error_type) {
 		subtype = evt->u.ue_error.ue_error_type <

More information about the Linuxppc-dev mailing list