summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2010-03-08 18:29:35 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 11:09:14 -0700
commit8566b8f5bc2fe3f7f179621512ad4805e45bccc1 (patch)
tree794dbb5cb8e7b2b89a55547c2e36f0ad6830c57a
parent5a8477871f0b45664eedfa352c3942093408a169 (diff)
downloadlwn-8566b8f5bc2fe3f7f179621512ad4805e45bccc1.tar.gz
lwn-8566b8f5bc2fe3f7f179621512ad4805e45bccc1.zip
amd64_edac: Fix DCT base address selector
commit 9975a5f22a4fcc8d08035c65439900a983f891ad upstream. The correct check is to verify whether in high range we're below 4GB and not to extract the DctSelBaseAddr again. See "2.8.5 Routing DRAM Requests" in the F10h BKDG. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Acked-by: Doug Thompson <dougthompson@xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/edac/amd64_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index ac9f7985096d..5d9e03269ea2 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -1430,7 +1430,7 @@ static inline u64 f10_get_base_addr_offset(u64 sys_addr, int hi_range_sel,
u64 chan_off;
if (hi_range_sel) {
- if (!(dct_sel_base_addr & 0xFFFFF800) &&
+ if (!(dct_sel_base_addr & 0xFFFF0000) &&
hole_valid && (sys_addr >= 0x100000000ULL))
chan_off = hole_off << 16;
else