RAS/AMD/FMPM: Save SPA values
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 1 Mar 2024 14:37:47 +0000 (08:37 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 1 Mar 2024 15:55:18 +0000 (16:55 +0100)
commit838850c50884cdd1c96fce1063ef918c394d4bdc
tree615c1a89ac4d77597347aa2ccec18fc32ddca410
parent9d2b6fa09d15d021fb83ec6f1336176ebaebbeec
RAS/AMD/FMPM: Save SPA values

The system physical address (SPA) of an error is not a stable value. It
will change depending on the location of the memory: parts can be
swapped. And it will change depending on memory topology: NUMA nodes
and/or interleaving can be adjusted.

Therefore, the SPA value is not part of the "FRU Memory Poison" record
format. And it will not be saved to persistent storage.

However, the SPA values can be helpful during debug and for system
admins during run time.

Save the SPA values in a separate structure. This is updated when
records are restored and when new errors are saved.

  [ bp: Make error messages more user friendly and add and correct
    comments. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240301143748.854090-3-yazen.ghannam@amd.com
drivers/ras/amd/fmpm.c