summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2012-05-14 05:51:26 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-22 11:37:15 -0700
commit9f138fc8bc57beedc154729260f909ff60490296 (patch)
tree42c13c2f0d90d5e9df2482a7c382c3e697378b05 /drivers/edac
parent40ca92aafc8135368625ba3c8825bcd54f3569a8 (diff)
downloadlinux-stable-9f138fc8bc57beedc154729260f909ff60490296.tar.gz
linux-stable-9f138fc8bc57beedc154729260f909ff60490296.tar.bz2
linux-stable-9f138fc8bc57beedc154729260f909ff60490296.zip
edac: fix the error about memory type detection on SandyBridge
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/sb_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index e9858ba26ff7..0f9552d6b564 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -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");