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,
21182118 }
21192119
21202120 ch_way = TAD_CH (reg ) + 1 ;
2121- sck_way = 1 << TAD_SOCK (reg );
2121+ sck_way = TAD_SOCK (reg );
21222122
21232123 if (ch_way == 3 )
21242124 idx = addr >> 6 ;
@@ -2157,7 +2157,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,
21572157 switch (ch_way ) {
21582158 case 2 :
21592159 case 4 :
2160- sck_xch = 1 << sck_way * (ch_way >> 1 );
2160+ sck_xch = ( 1 << sck_way ) * (ch_way >> 1 );
21612161 break ;
21622162 default :
21632163 sprintf (msg , "Invalid mirror set. Can't decode addr" );
@@ -2193,7 +2193,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,
21932193
21942194 ch_addr = addr - offset ;
21952195 ch_addr >>= (6 + shiftup );
2196- ch_addr /= ch_way * sck_way ;
2196+ ch_addr /= sck_xch ;
21972197 ch_addr <<= (6 + shiftup );
21982198 ch_addr |= addr & ((1 << (6 + shiftup )) - 1 );
21992199
You can’t perform that action at this time.
0 commit comments