EDAC/amd64: Limit error injection functionality to supported hw
authorBorislav Petkov <bp@suse.de>
Tue, 22 Dec 2020 17:55:06 +0000 (18:55 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 28 Dec 2020 18:36:37 +0000 (19:36 +0100)
commit1865bc71a869ede69098b1f3e65857b4330f0607
treefbcd5f256402d9ee6490577e48490a446473c2ed
parent61810096de3c3ec977c71dbb7e00447d70045163
EDAC/amd64: Limit error injection functionality to supported hw

Families up to and including 0x16 allow access to the injection
hardware. Starting with family 0x17, access to those registers is
blocked by security policy.

Limit that only on the families which support it.

Suggested-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201222180013.GD13463@zn.tnic
drivers/edac/Kconfig
drivers/edac/amd64_edac.c