RAS/AMD/ATL: Fix MI300 bank hash
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 7 Jun 2024 21:32:59 +0000 (16:32 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 10 Jun 2024 05:56:33 +0000 (07:56 +0200)
commitfe8a08973a0dea9757394c5adbdc3c0a03b0b432
treecd0c81e804e42c4fd8971ef405444850d3022ae1
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
RAS/AMD/ATL: Fix MI300 bank hash

Apply the SID bits to the correct offset in the Bank value. Do this in
the temporary value so they don't need to be masked off later.

Fixes: 87a612375307 ("RAS/AMD/ATL: Add MI300 DRAM to normalized address translation support")
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20240607-mi300-dram-xl-fix-v1-1-2f11547a178c@amd.com
drivers/ras/amd/atl/umc.c