]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3s: Print task info if we take a machine check in user mode
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Apr 2017 05:29:34 +0000 (15:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Apr 2017 06:12:00 +0000 (16:12 +1000)
commit8f9e575dc52790dee4e6d4a0726b6eb58ebd2485
tree4edd63ac044b7aea15ba21450814f5fa87db03ac
parentffb349b6b0ba1aab4a4de294caebc76a7f3a251b
powerpc/book3s: Print task info if we take a machine check in user mode

For an MCE (Machine Check Exception) that hits while in user mode
MSR(PR=1), print the task info to the console MCE error log. This may
help to identify an application that triggered the MCE.

After this patch the MCE console looks like:

  Severe Machine check interrupt [Recovered]
    NIP: [0000000010039778] PID: 762 Comm: ebizzy
    Initiator: CPU
    Error type: SLB [Multihit]
      Effective address: 0000000010039778

  Severe Machine check interrupt [Not recovered]
    NIP: [0000000010039778] PID: 763 Comm: ebizzy
    Initiator: CPU
    Error type: UE [Page table walk ifetch]
      Effective address: 0000000010039778
  ebizzy[763]: unhandled signal 7 at 0000000010039778 nip 0000000010039778 lr 0000000010001b44 code 30004

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mce.h
arch/powerpc/kernel/mce.c
arch/powerpc/platforms/powernv/opal.c