Skip to content

Commit fdce765

Browse files
yghannambp3tk0v
authored andcommitted
EDAC/amd64: Don't set up EDAC PCI control on Family 17h+
EDAC PCI control is used to detect/report legacy PCI errors like "Parity" and "SERROR". Modern AMD systems use PCIe Advanced Error Reporting (AER), and legacy PCI errors should not be reported. Remove EDAC PCI control setup on AMD Family 17h and later systems. Signed-off-by: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 221aa03 commit fdce765

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/edac/amd64_edac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4370,12 +4370,12 @@ static int __init amd64_edac_init(void)
43704370
}
43714371

43724372
/* register stuff with EDAC MCE */
4373-
if (boot_cpu_data.x86 >= 0x17)
4373+
if (boot_cpu_data.x86 >= 0x17) {
43744374
amd_register_ecc_decoder(decode_umc_error);
4375-
else
4375+
} else {
43764376
amd_register_ecc_decoder(decode_bus_error);
4377-
4378-
setup_pci_device();
4377+
setup_pci_device();
4378+
}
43794379

43804380
#ifdef CONFIG_X86_32
43814381
amd64_err("%s on 32-bit is unsupported. USE AT YOUR OWN RISK!\n", EDAC_MOD_STR);

0 commit comments

Comments
 (0)