amd64_edac: read the right F2 maskoffset reg
authorWan Wei <onewayforever@gmail.com>
Mon, 27 Jul 2009 12:34:15 +0000 (14:34 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 27 Jul 2009 12:42:24 +0000 (14:42 +0200)
Signed-off-by: Wan Wei <onewayforever@gmail.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c

index 858fe603722361f4292052952a738f3f9cc4a03e..24964c1d0af9faa2cb3588dae9b09bc1c14bf8ee 100644 (file)
@@ -970,7 +970,7 @@ static void amd64_read_dct_base_mask(struct amd64_pvt *pvt)
        }
 
        for (cs = 0; cs < pvt->num_dcsm; cs++) {
-               reg = K8_DCSB0 + (cs * 4);
+               reg = K8_DCSM0 + (cs * 4);
                err = pci_read_config_dword(pvt->dram_f2_ctl, reg,
                                        &pvt->dcsm0[cs]);
                if (unlikely(err))