diff options
author | Hui Wang <jason77.wang@gmail.com> | 2012-02-06 02:11:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-21 14:20:02 -0400 |
commit | ad9c40b7dd749d6429c8b21178c125004c6dc75d (patch) | |
tree | 94c82f64c71618402462cd620fb8db47fd0afd0a /drivers/edac | |
parent | 22a5c27bec0161c70cc2d8d1730f9b14b604757d (diff) |
edac: sb_edac: Fix a INTERLEAVE_MODE() misuse
We can identify dram interleave mode from the Dram Rule register
rather than Dram Interleave list register.
In this context, the reg of INTERLEAVE_MODE(reg) contains the Dram
Interleave list register, we can't get interleave mode from the reg,
while the variable interleave_mode saves the the mode got from the
Dram Rule register, so we use the variable to replace
INTERLEAVE_MDDE(reg) here.
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/sb_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index f256a121fec3..843545beba64 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers/edac/sb_edac.c | |||
@@ -923,7 +923,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci, | |||
923 | addr, | 923 | addr, |
924 | limit, | 924 | limit, |
925 | sad_way + 7, | 925 | sad_way + 7, |
926 | INTERLEAVE_MODE(reg) ? "" : "XOR[18:16]"); | 926 | interleave_mode ? "" : "XOR[18:16]"); |
927 | if (interleave_mode) | 927 | if (interleave_mode) |
928 | idx = ((addr >> 6) ^ (addr >> 16)) & 7; | 928 | idx = ((addr >> 6) ^ (addr >> 16)) & 7; |
929 | else | 929 | else |