EDAC/amd64: Remove scrub rate control for Family 17h and later
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 27 Jan 2023 17:03:59 +0000 (17:03 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 9 Feb 2023 10:25:21 +0000 (11:25 +0100)
commit6e241bc93c9f0ae6f76ed65b44132948ca70fd76
tree0a7d64334baadef52d3545e066d0b7556bb78e63
parentfdce765a13384cf411d456472d396d8db2b3114f
EDAC/amd64: Remove scrub rate control for Family 17h and later

The scrub registers on AMD Family 17h and later may be inaccessible to
the OS. Furthermore, hardware designers recommend that the scrubbing
feature is managed by the firmware.

Remove support for the sdram_scrub_rate interface for AMD Family 17h
systems and later by not setting the scrub function pointers. The EDAC MC
core will then not expose the scrub files in sysfs.

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-3-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h