Skip to content

Commit

Permalink
EDAC, MCE: Fix FR MCEs decoding
Browse files Browse the repository at this point in the history
Those are N/A on K8, so don't decode them there.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent 5ce88f6 commit fe4ea26
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,17 @@ EXPORT_SYMBOL_GPL(amd_decode_nb_mce);

static void amd_decode_fr_mce(struct mce *m)
{
if (boot_cpu_data.x86 == 0xf)
goto wrong_fr_mce;

/* we have only one error signature so match all fields at once. */
if ((m->status & 0xffff) == 0x0f0f)
pr_emerg(HW_ERR " FR Error: CPU Watchdog timer expire.\n");
else
pr_emerg(HW_ERR "Corrupted FR MCE info?\n");
if ((m->status & 0xffff) == 0x0f0f) {
pr_emerg(HW_ERR "FR Error: CPU Watchdog timer expire.\n");
return;
}

wrong_fr_mce:
pr_emerg(HW_ERR "Corrupted FR MCE info?\n");
}

static inline void amd_decode_err_code(u16 ec)
Expand Down

0 comments on commit fe4ea26

Please sign in to comment.