Skip to content

Commit

Permalink
EDAC, MCE, AMD: Add an MCE signature for new Fam15h models
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aravind Gopalakrishnan authored and Borislav Petkov committed Jun 8, 2013
1 parent c7f62fc commit aad19e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ static const char * const mc5_mce_desc[] = {
"Physical register file AG0 port",
"Physical register file AG1 port",
"Flag register file",
"DE error occurred"
"DE error occurred",
"Retire status queue"
};

static bool f12h_mc0_mce(u16 ec, u8 xec)
Expand Down Expand Up @@ -624,7 +625,7 @@ static void decode_mc5_mce(struct mce *m)

if (xec == 0x0 || xec == 0xc)
pr_cont("%s.\n", mc5_mce_desc[xec]);
else if (xec < 0xd)
else if (xec <= 0xd)
pr_cont("%s parity error.\n", mc5_mce_desc[xec]);
else
goto wrong_mc5_mce;
Expand Down

0 comments on commit aad19e5

Please sign in to comment.