Date: Thu, 13 Feb 2020 19:10:51 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357870 - head/sys/dev/amd_ecc_inject Message-ID: <202002131910.01DJAp9m045855@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Feb 13 19:10:51 2020 New Revision: 357870 URL: https://svnweb.freebsd.org/changeset/base/357870 Log: ecc_inject: Add Hygon Dhyana support. Submitted by: Pu Wen <puwen@hygon.cn> MFC after: 1 week Differential revision: https://reviews.freebsd.org/D23561 Modified: head/sys/dev/amd_ecc_inject/ecc_inject.c Modified: head/sys/dev/amd_ecc_inject/ecc_inject.c ============================================================================== --- head/sys/dev/amd_ecc_inject/ecc_inject.c Thu Feb 13 19:09:24 2020 (r357869) +++ head/sys/dev/amd_ecc_inject/ecc_inject.c Thu Feb 13 19:10:51 2020 (r357870) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002131910.01DJAp9m045855>