powerpc/64s: Machine check print NIP
authorNicholas Piggin <npiggin@gmail.com>
Tue, 14 Mar 2017 12:36:43 +0000 (22:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Mar 2017 11:09:28 +0000 (22:09 +1100)
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>
arch/powerpc/kernel/mce.c

index a1475e6aef3a519c70824d4dd432748097a7965e..399aeafb7dd4395ee5f599c8c3de134809017aae 100644 (file)
@@ -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) {