File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2118,7 +2118,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,
2118
2118
}
2119
2119
2120
2120
ch_way = TAD_CH (reg ) + 1 ;
2121
- sck_way = 1 << TAD_SOCK (reg );
2121
+ sck_way = TAD_SOCK (reg );
2122
2122
2123
2123
if (ch_way == 3 )
2124
2124
idx = addr >> 6 ;
@@ -2157,7 +2157,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,
2157
2157
switch (ch_way ) {
2158
2158
case 2 :
2159
2159
case 4 :
2160
- sck_xch = 1 << sck_way * (ch_way >> 1 );
2160
+ sck_xch = ( 1 << sck_way ) * (ch_way >> 1 );
2161
2161
break ;
2162
2162
default :
2163
2163
sprintf (msg , "Invalid mirror set. Can't decode addr" );
@@ -2193,7 +2193,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,
2193
2193
2194
2194
ch_addr = addr - offset ;
2195
2195
ch_addr >>= (6 + shiftup );
2196
- ch_addr /= ch_way * sck_way ;
2196
+ ch_addr /= sck_xch ;
2197
2197
ch_addr <<= (6 + shiftup );
2198
2198
ch_addr |= addr & ((1 << (6 + shiftup )) - 1 );
2199
2199
You can’t perform that action at this time.
0 commit comments