]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
EDAC, MCE, AMD: Add an MCE signature for new Fam15h models
authorAravind Gopalakrishnan <aravind.gopalakrishnan@amd.com>
Wed, 5 Jun 2013 20:50:03 +0000 (15:50 -0500)
committerBorislav Petkov <bp@suse.de>
Sat, 8 Jun 2013 08:17:03 +0000 (10:17 +0200)
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>
drivers/edac/mce_amd.c

index f3f0c930d550ebb34509eb05dec7faf17c579151..30f7309446a68e8786fa8c26dccc66684880cd43 100644 (file)
@@ -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)
@@ -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;