aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/mce_amd.c
diff options
context:
space:
mode:
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>2013-06-05 16:50:03 -0400
committerBorislav Petkov <bp@suse.de>2013-06-08 04:17:03 -0400
commitaad19e51769d761ffc0608b381313e18f0bd82b3 (patch)
tree17f7b3064b1970073c6223d206778960a74db203 /drivers/edac/mce_amd.c
parentc7f62fc87bb4f3ee7f21fed959795de2bd415ccf (diff)
EDAC, MCE, AMD: Add an MCE signature for new Fam15h models
Add a new error signature for Family 15h, models 30h-3fh. Patch has been tested on Fam15h using mce_amd_inj facility and has been verified to work correctly. Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@amd.com> [ cleanup commit message and error string ] Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/mce_amd.c')
-rw-r--r--drivers/edac/mce_amd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
index f3f0c930d550..30f7309446a6 100644
--- a/drivers/edac/mce_amd.c
+++ b/drivers/edac/mce_amd.c
@@ -134,7 +134,8 @@ static const char * const mc5_mce_desc[] = {
134 "Physical register file AG0 port", 134 "Physical register file AG0 port",
135 "Physical register file AG1 port", 135 "Physical register file AG1 port",
136 "Flag register file", 136 "Flag register file",
137 "DE error occurred" 137 "DE error occurred",
138 "Retire status queue"
138}; 139};
139 140
140static bool f12h_mc0_mce(u16 ec, u8 xec) 141static bool f12h_mc0_mce(u16 ec, u8 xec)
@@ -624,7 +625,7 @@ static void decode_mc5_mce(struct mce *m)
624 625
625 if (xec == 0x0 || xec == 0xc) 626 if (xec == 0x0 || xec == 0xc)
626 pr_cont("%s.\n", mc5_mce_desc[xec]); 627 pr_cont("%s.\n", mc5_mce_desc[xec]);
627 else if (xec < 0xd) 628 else if (xec <= 0xd)
628 pr_cont("%s parity error.\n", mc5_mce_desc[xec]); 629 pr_cont("%s parity error.\n", mc5_mce_desc[xec]);
629 else 630 else
630 goto wrong_mc5_mce; 631 goto wrong_mc5_mce;