EDAC/amd64: Set memory type per DIMM
authorYazen Ghannam <yazen.ghannam@amd.com>
Wed, 2 Feb 2022 14:43:06 +0000 (14:43 +0000)
committerBorislav Petkov <bp@suse.de>
Wed, 23 Feb 2022 20:53:45 +0000 (21:53 +0100)
commit75aeaaf23def967853c8d1cfb513a6842dbc232e
treee3dd9e36bf370187cad78e6c14f8322fae3c2d2d
parentcfb92440ee71adcc2105b0890bb01ac3cddb8507
EDAC/amd64: Set memory type per DIMM

Current AMD systems allow mixing of DIMM types within a system. However,
DIMMs within a channel, i.e. managed by a single Unified Memory
Controller (UMC), must be of the same type.

Handle this possible configuration by checking and setting the memory
type for each individual "UMC" structure.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: William Roche <william.roche@oracle.com>
Link: https://lore.kernel.org/r/20220202144307.2678405-2-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h