Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 2020 01:44:50 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r358150 - stable/12/sys/dev/amd_ecc_inject
Message-ID:  <202002200144.01K1ioWk098747@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002200144.01K1ioWk098747>