Commit 751b4a27 authored by Yazen Ghannam's avatar Yazen Ghannam Committed by PvsNarasimha
Browse files

EDAC/amd64: Don't set up EDAC PCI control on Family 17h+

mainline inclusion
from mainline-v6.3-rc1
commit fdce765a
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IAU6ZD

Reference: https://github.com/torvalds/linux/commit/fdce765a13384cf411d456472d396d8db2b3114f



--------------------------------

commit fdce765a upstream

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: default avatarYazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230127170419.1824692-2-yazen.ghannam@amd.com


Signed-off-by: default avatarHemanth Selam <Hemanth.Selam@amd.com>
Signed-off-by: default avatarPvsNarasimha <PVS.NarasimhaRao@amd.com>
parent 1f75e2ff
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -4182,12 +4182,12 @@ static int __init amd64_edac_init(void)
	}

	/* register stuff with EDAC MCE */
	if (boot_cpu_data.x86 >= 0x17)
	if (boot_cpu_data.x86 >= 0x17) {
		amd_register_ecc_decoder(decode_umc_error);
	else
	} else {
		amd_register_ecc_decoder(decode_bus_error);

		setup_pci_device();
	}

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