EDAC/amd64: Drop dbam_to_cs() for Family 17h and later
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 27 Jan 2023 17:04:05 +0000 (17:04 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 24 Mar 2023 12:03:19 +0000 (13:03 +0100)
commita2e59ab8e93301466cb3ff3f2b7b65eb1a4e8786
treee1b74b222f50a3611f4a77671736f336e0b9427b
parentc0984666fde9cf7da4c1123443b469f44e94dd84
EDAC/amd64: Drop dbam_to_cs() for Family 17h and later

The same function is used to calculate chip select size for all Zen-based
family/models. Therefore, a family/model function pointer is not necessary.

Drop the dbam_to_cs() function pointer for Family 17h and later systems.
Also, move the Family 17h function to avoid a forward declaration. Rename
it to indicate that the UMC Address Mask is used rather than the legacy
DBAM value.

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