powerpc/pseries: Display machine check error details.
Extract the MCE error details from RTAS extended log and display it to console. With this patch you should now see mce logs like below: [ 142.371818] Severe Machine check interrupt [Recovered] [ 142.371822] NIP [d00000000ca301b8]: init_module+0x1b8/0x338 [bork_kernel] [ 142.371822] Initiator: CPU [ 142.371823] Error type: SLB [Multihit] [ 142.371824] Effective address: d00000000ca70000 Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
a43c159042
commit
8f0b80561f
@@ -197,6 +197,11 @@ static inline uint8_t rtas_error_extended(const struct rtas_error_log *elog)
|
||||
return (elog->byte1 & 0x04) >> 2;
|
||||
}
|
||||
|
||||
static inline uint8_t rtas_error_initiator(const struct rtas_error_log *elog)
|
||||
{
|
||||
return (elog->byte2 & 0xf0) >> 4;
|
||||
}
|
||||
|
||||
#define rtas_error_type(x) ((x)->byte3)
|
||||
|
||||
static inline
|
||||
|
Reference in New Issue
Block a user