]> www.infradead.org Git - linux.git/commit
RAS/AMD/ATL: Implement DF 4.5 NP2 denormalization
authorJohn Allen <john.allen@amd.com>
Thu, 6 Jun 2024 20:33:12 +0000 (20:33 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 9 Jun 2024 21:43:58 +0000 (23:43 +0200)
commite0372d6969bca2bc57e1a24129473694ff65641c
tree2fffb9716f6ece78aadd0d7934ae4c3503d59d89
parentd5811a165caf63a69cd8ae11156b8587cc57d1d1
RAS/AMD/ATL: Implement DF 4.5 NP2 denormalization

Unlike with previous Data Fabric versions, with Data Fabric 4.5
non-power-of-2 denormalization, there are bits of the system physical
address that can't be fully reconstructed from the normalized address.

To determine the proper combination of missing system physical address
bits, iterate through each possible combination of these bits, normalize
the resulting system physical address, and compare to the original
address that is being translated. If the addresses match, then the
correct permutation of bits has been found.

Signed-off-by: John Allen <john.allen@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Link: https://lore.kernel.org/r/20240606203313.51197-6-john.allen@amd.com
drivers/ras/amd/atl/denormalize.c
drivers/ras/amd/atl/internal.h
drivers/ras/amd/atl/map.c