]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff7f7c0100ecdeaad3efa3d17706253ec937b1fd
tree84892e8ebd7b46fce9f251778f1da073bb881ab3
parent3ba9c49168c083ab21c42aad85ab69160b431593
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