EDAC, MCE, AMD: Don't emit 'CE' for Deferred error
Subsystems (2)
PATCH 1/1 EDAC, MCE, AMD: Don't emit 'CE' for Deferred error
Currently, we also display 'CE' for a Deferred error.
like so-
[Hardware Error]: CPU:0 (15:2:0) MC4_STATUS[Over|CE|MiscV|-|AddrV|Deferred|-|UECC]: 0xdc04b00095080813
When the 'UC' bit on MCx_STATUS register is clear, the error status is either a Corrected error or Deferred error as determined by the 'Deferred' bit.
Refer AMD Error Scope Hierarchy table in a newer BKDG (example: 49125_15h_Models_30h-3Fh_BKDG.pdf, section "RAS Features") for clarification.
Therefore, fix the output to not disply 'CE'
--- drivers/edac/mce_amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/edac/mce_amd.c +2 -1
@@ -763,7 +763,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data) c->x86, c->x86_model, c->x86_mask, m->bank, ((m->status &MCI_STATUS_OVER ) ?"Over" :"-" ), - ((m->status &MCI_STATUS_UC ) ?"UE" :"CE" ), + ((m->status &MCI_STATUS_UC ) ?"UE" : + (m->status &MCI_STATUS_DEFERRED ) ?"-" :"CE" ), ((m->status &MCI_STATUS_MISCV ) ?"MiscV" :"-" ), ((m->status &MCI_STATUS_PCC ) ?"PCC" :"-" ), ((m->status & MCI_STATUS_ADDRV) ? "AddrV" : "-"));
Signature · 1 line
2.4.0
Quoted 13 lines · Aravind Gopalakrishnan
Currently, we also display 'CE' for a Deferred error.
like so-
[Hardware Error]: CPU:0 (15:2:0) MC4_STATUS[Over|CE|MiscV|-|AddrV|Deferred|-|UECC]:0xdc04b00095080813When the 'UC' bit on
MCx_STATUSregister is clear, the error status is either a Corrected error or Deferred error as determined by the 'Deferred' bit.Refer AMD Error Scope Hierarchy table in a newer BKDG (example: 49125_15h_Models_30h-3Fh_BKDG.pdf, section "RAS Features") for clarification.
Quoted 6 lines
Therefore, fix the output to not disply 'CE'
Signed-off-by Aravind Gopalakrishnan <[email protected]>--- drivers/edac/mce_amd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Signature · 5 lines
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--