OSDN Git Service

powerpc/powernv: Show checkstop reason for NPU2 HMIs
authorFrederic Barrat <fbarrat@linux.ibm.com>
Thu, 23 May 2019 12:28:04 +0000 (14:28 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 2 Jun 2019 09:39:36 +0000 (19:39 +1000)
commit89d87bcba2874d824affb7842bb3960cb6f5be05
tree84892e8ebd7b46fce9f251778f1da073bb881ab3
parent1549c42deff5f3ffff326ae295ae58165e5c5830
powerpc/powernv: Show checkstop reason for NPU2 HMIs

If the kernel is notified of an HMI caused by the NPU2, it's currently
not being recognized and it logs the default message:

    Unknown Malfunction Alert of type 3

The NPU on Power 9 has 3 Fault Isolation Registers, so that's a lot of
possible causes, but we should at least log that it's an NPU problem
and report which FIR and which bit were raised if opal gave us the
information.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal-api.h
arch/powerpc/platforms/powernv/opal-hmi.c