diff options
author | Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> | 2014-01-21 16:03:36 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-02-07 09:01:19 -0500 |
commit | 9d0e8d8348d54d60005c6c938b87b94648005d1c (patch) | |
tree | 39d2915d2874c3ea9494909288943b193d4c209b /drivers/edac/amd64_edac.c | |
parent | e245e3b25f9ef33b166f0f01d19d6418f52ae726 (diff) |
amd64_edac: Fix logic to determine channel for F15 M30h processors
Update current channel selection logic to include F15h, M30h memory
controllers.
Refer F15 M30h BKDG D18F2x110[7:6] (DRAM Controller Select Low)
(Link:http://support.amd.com/TechDocs/49125_15h_Models_30h-3Fh_BKDG.pdf)
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Link: http://lkml.kernel.org/r/1390338216-3873-1-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/amd64_edac.c')
-rw-r--r-- | drivers/edac/amd64_edac.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 98e14ee4833c..34380ccc3dd9 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -1239,9 +1239,17 @@ static u8 f15_m30h_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, | |||
1239 | if (num_dcts_intlv == 2) { | 1239 | if (num_dcts_intlv == 2) { |
1240 | select = (sys_addr >> 8) & 0x3; | 1240 | select = (sys_addr >> 8) & 0x3; |
1241 | channel = select ? 0x3 : 0; | 1241 | channel = select ? 0x3 : 0; |
1242 | } else if (num_dcts_intlv == 4) | 1242 | } else if (num_dcts_intlv == 4) { |
1243 | channel = (sys_addr >> 8) & 0x7; | 1243 | u8 intlv_addr = dct_sel_interleave_addr(pvt); |
1244 | 1244 | switch (intlv_addr) { | |
1245 | case 0x4: | ||
1246 | channel = (sys_addr >> 8) & 0x3; | ||
1247 | break; | ||
1248 | case 0x5: | ||
1249 | channel = (sys_addr >> 9) & 0x3; | ||
1250 | break; | ||
1251 | } | ||
1252 | } | ||
1245 | return channel; | 1253 | return channel; |
1246 | } | 1254 | } |
1247 | 1255 | ||