summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-03-14 15:36:43 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-03-21 14:09:28 +0300
commitfc84427b7e1471b0a1220c56072f574618335edc (patch)
treec0658555e17a0a2e40392bf91ad88398fcf916be /arch/powerpc/kernel
parent6c8343e82bec46ece4fe773304a84c7fd57fdd8d (diff)
downloadlinux-fc84427b7e1471b0a1220c56072f574618335edc.tar.xz
powerpc/64s: Machine check print NIP
Print the faulting address of the machine check that may help with debugging. The effective address reported can be a target memory address rather than the faulting instruction address. Fix up a dangling bracket while here. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/mce.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/mce.c b/arch/powerpc/kernel/mce.c
index a1475e6aef3a..399aeafb7dd4 100644
--- a/arch/powerpc/kernel/mce.c
+++ b/arch/powerpc/kernel/mce.c
@@ -310,7 +310,8 @@ void machine_check_print_event_info(struct machine_check_event *evt)
printk("%s%s Machine check interrupt [%s]\n", level, sevstr,
evt->disposition == MCE_DISPOSITION_RECOVERED ?
- "Recovered" : "[Not recovered");
+ "Recovered" : "Not recovered");
+ printk("%s NIP: %016llx\n", level, evt->srr0);
printk("%s Initiator: %s\n", level,
evt->initiator == MCE_INITIATOR_CPU ? "CPU" : "Unknown");
switch (evt->error_type) {