• Yazen Ghannam's avatar
    RAS/AMD/FMPM: Save SPA values · 838850c5
    Yazen Ghannam authored
    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: default avatarYazen Ghannam <yazen.ghannam@amd.com>
    Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
    Link: https://lore.kernel.org/r/20240301143748.854090-3-yazen.ghannam@amd.com
    838850c5
fmpm.c 20 KB