]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
edac: fix the error about memory type detection on SandyBridge
authorChen Gong <gong.chen@linux.intel.com>
Mon, 14 May 2012 08:51:26 +0000 (05:51 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Jun 2012 18:37:15 +0000 (11:37 -0700)
commit 2cbb587d3bc41a305168e91b4f3c5b6944a12566 upstream.

On SandyBridge, DDRIOA(Dev: 17 Func: 0 Offset: 328) is used
to detect whether DIMM is RDIMM/LRDIMM, not TA(Dev: 15 Func: 0).

Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/sb_edac.c

index e9858ba26ff70912c883e0738ff8ffda5973d79e..0f9552d6b56484f8975bd4c20eabfea758a253c1 100644 (file)
@@ -599,7 +599,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci)
                pvt->is_close_pg = false;
        }
 
-       pci_read_config_dword(pvt->pci_ta, RANK_CFG_A, &reg);
+       pci_read_config_dword(pvt->pci_ddrio, RANK_CFG_A, &reg);
        if (IS_RDIMM_ENABLED(reg)) {
                /* FIXME: Can also be LRDIMM */
                debugf0("Memory is registered\n");