RAS/AMD/ATL: Use system settings for MI300 DRAM to normalized address translation
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 7 Jun 2024 21:33:00 +0000 (16:33 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 16 Jun 2024 09:22:57 +0000 (11:22 +0200)
commitba437905b4fbf0ee1686c175069239a1cc292558
tree731c487f649c9f86aad85f85b8526263fa6e49f8
parentfe8a08973a0dea9757394c5adbdc3c0a03b0b432
RAS/AMD/ATL: Use system settings for MI300 DRAM to normalized address translation

The currently used normalized address format is not applicable to all
MI300 systems. This leads to incorrect results during address
translation.

Drop the fixed layout and construct the normalized address from system
settings.

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-2-2f11547a178c@amd.com
drivers/ras/amd/atl/internal.h
drivers/ras/amd/atl/system.c
drivers/ras/amd/atl/umc.c