Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/x86/mca.c
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | |||||
static struct amd_et_state **amd_et_state; /* Indexed by cpuid, bank. */ | static struct amd_et_state **amd_et_state; /* Indexed by cpuid, bank. */ | ||||
static int cmc_throttle = 60; /* Time in seconds to throttle CMCI. */ | static int cmc_throttle = 60; /* Time in seconds to throttle CMCI. */ | ||||
static int amd_elvt = -1; | static int amd_elvt = -1; | ||||
static inline bool | static inline bool | ||||
amd_thresholding_supported(void) | amd_thresholding_supported(void) | ||||
{ | { | ||||
if (cpu_vendor_id != CPU_VENDOR_AMD) | if (cpu_vendor_id != CPU_VENDOR_AMD && | ||||
cpu_vendor_id != CPU_VENDOR_HYGON) | |||||
return (false); | return (false); | ||||
/* | /* | ||||
* The RASCap register is wholly reserved in families 0x10-0x15 (through model 1F). | * The RASCap register is wholly reserved in families 0x10-0x15 (through model 1F). | ||||
* | * | ||||
* It begins to be documented in family 0x15 model 30 and family 0x16, | * It begins to be documented in family 0x15 model 30 and family 0x16, | ||||
* but neither of these families documents the ScalableMca bit, which | * but neither of these families documents the ScalableMca bit, which | ||||
* supposedly defines the presence of this feature on family 0x17. | * supposedly defines the presence of this feature on family 0x17. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,221 Lines • Show Last 20 Lines |