File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -189,16 +189,11 @@ static unsigned long convert_dram_to_norm_addr_mi300(unsigned long addr)
189189
190190 /* Calculate hash for PC bit. */
191191 if (addr_hash .pc .xor_enable ) {
192- /* Bits SID[1:0] act as Bank[6:5] for PC hash, so apply them here. */
193- bank |= sid << 5 ;
194-
195192 temp = bitwise_xor_bits (col & addr_hash .pc .col_xor );
196193 temp ^= bitwise_xor_bits (row & addr_hash .pc .row_xor );
197- temp ^= bitwise_xor_bits (bank & addr_hash .bank_xor );
194+ /* Bits SID[1:0] act as Bank[5:4] for PC hash, so apply them here. */
195+ temp ^= bitwise_xor_bits ((bank | sid << NUM_BANK_BITS ) & addr_hash .bank_xor );
198196 pc ^= temp ;
199-
200- /* Drop SID bits for the sake of debug printing later. */
201- bank &= 0x1F ;
202197 }
203198
204199 /* Reconstruct the normalized address starting with NA[4:0] = 0 */
You can’t perform that action at this time.
0 commit comments