summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2017-02-28 03:00:47 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2017-03-10 06:32:07 +0100
commitc1bbf387d6191e6e18f3adc4db45b922822c2ba4 (patch)
tree701f4206a2c1b082dd31d7ce32ecb92643621de8 /arch/powerpc/include
parentpowerpc/64s: fix handling of non-synchronous machine checks (diff)
downloadlinux-c1bbf387d6191e6e18f3adc4db45b922822c2ba4.tar.xz
linux-c1bbf387d6191e6e18f3adc4db45b922822c2ba4.zip
powerpc/64s: allow machine check handler to set severity and initiator
Currently severity and initiator are always set to MCE_SEV_ERROR_SYNC and MCE_INITIATOR_CPU in the core mce code. Allow them to be set by the machine specific mce handlers. No functional change for existing handlers. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/mce.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mce.h b/arch/powerpc/include/asm/mce.h
index f97d8cb6bdf6..b2a5865ccd87 100644
--- a/arch/powerpc/include/asm/mce.h
+++ b/arch/powerpc/include/asm/mce.h
@@ -177,7 +177,8 @@ struct mce_error_info {
enum MCE_EratErrorType erat_error_type:8;
enum MCE_TlbErrorType tlb_error_type:8;
} u;
- uint8_t reserved[2];
+ enum MCE_Severity severity:8;
+ enum MCE_Initiator initiator:8;
};
#define MAX_MC_EVT 100