svn commit: r358150 - stable/12/sys/dev/amd_ecc_inject
Konstantin Belousov
kib at FreeBSD.org
Thu Feb 20 01:44:51 UTC 2020
Author: kib
Date: Thu Feb 20 01:44:50 2020
New Revision: 358150
URL: https://svnweb.freebsd.org/changeset/base/358150
Log:
MFC r357870:
ecc_inject: Add Hygon Dhyana support.
Modified:
stable/12/sys/dev/amd_ecc_inject/ecc_inject.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/amd_ecc_inject/ecc_inject.c
==============================================================================
--- stable/12/sys/dev/amd_ecc_inject/ecc_inject.c Thu Feb 20 01:42:11 2020 (r358149)
+++ stable/12/sys/dev/amd_ecc_inject/ecc_inject.c Thu Feb 20 01:44:50 2020 (r358150)
@@ -203,7 +203,8 @@ ecc_ei_load(void)
{
uint32_t val;
- if (cpu_vendor_id != CPU_VENDOR_AMD || CPUID_TO_FAMILY(cpu_id) < 0x10) {
+ if ((cpu_vendor_id != CPU_VENDOR_AMD || CPUID_TO_FAMILY(cpu_id) < 0x10) &&
+ cpu_vendor_id != CPU_VENDOR_HYGON) {
printf("DRAM ECC error injection is not supported\n");
return (ENXIO);
}
More information about the svn-src-stable-12
mailing list