amd64_edac: simple fix to allow reporting of CECC errors
authorKeith Mannthey <kmannth@us.ibm.com>
Fri, 18 Sep 2009 12:35:23 +0000 (14:35 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 7 Oct 2009 14:49:58 +0000 (16:49 +0200)
This allows the errors to be further decoded and mapped to csrows.
Tested with ECC debug dimms and an Rev F cpu based system.

Signed-off-by: Keith Mannthey <kmannth@us.ibm.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c

index 2c869d1fe33486ff6be3bbf6a7f42ad4b34e0569..ecc86c300e2b2cc4cbe0cec77afbb98c5af385f8 100644 (file)
@@ -1190,7 +1190,7 @@ static void k8_map_sysaddr_to_csrow(struct mem_ctl_info *mci,
         * different from the node that detected the error.
         */
        src_mci = find_mc_by_sys_addr(mci, SystemAddress);
-       if (src_mci) {
+       if (!src_mci) {
                amd64_mc_printk(mci, KERN_ERR,
                             "failed to map error address 0x%lx to a node\n",
                             (unsigned long)SystemAddress);