Commit 28c2ce7c authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

i7300_edac: Fix MTR x4/x8 detection logic

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3b330f67
...@@ -583,14 +583,14 @@ static int decode_mtr(struct i7300_pvt *pvt, ...@@ -583,14 +583,14 @@ static int decode_mtr(struct i7300_pvt *pvt,
debugf2("\t\tECC code is 8-byte-over-32-byte SECDED+ code\n"); debugf2("\t\tECC code is 8-byte-over-32-byte SECDED+ code\n");
} else { } else {
debugf2("\t\tECC code is on Lockstep mode\n"); debugf2("\t\tECC code is on Lockstep mode\n");
if (MTR_DRAM_WIDTH(mtr)) if (MTR_DRAM_WIDTH(mtr) == 8)
p_csrow->edac_mode = EDAC_S8ECD8ED; p_csrow->edac_mode = EDAC_S8ECD8ED;
else else
p_csrow->edac_mode = EDAC_S4ECD4ED; p_csrow->edac_mode = EDAC_S4ECD4ED;
} }
/* ask what device type on this row */ /* ask what device type on this row */
if (MTR_DRAM_WIDTH(mtr)) { if (MTR_DRAM_WIDTH(mtr) == 8) {
debugf2("\t\tScrub algorithm for x8 is on %s mode\n", debugf2("\t\tScrub algorithm for x8 is on %s mode\n",
IS_SCRBALGO_ENHANCED(pvt->mc_settings) ? IS_SCRBALGO_ENHANCED(pvt->mc_settings) ?
"enhanced" : "normal"); "enhanced" : "normal");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment