From: John Wolfe Date: Tue, 19 Apr 2022 21:30:54 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-12.1.0~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1e56311c8f245d6aba2a94d37e5df7220398ed5;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/x86cpuid.h b/open-vm-tools/lib/include/x86cpuid.h index 333297960..21449b4e4 100644 --- a/open-vm-tools/lib/include/x86cpuid.h +++ b/open-vm-tools/lib/include/x86cpuid.h @@ -1692,6 +1692,8 @@ CPUIDCheck(int32 eaxIn, int32 eaxInCheck, #define CPUID_MODEL_TIGERLAKE_8D 0x8d // Tiger Lake H81 #define CPUID_MODEL_KNM_85 0x85 // Knights Mill #define CPUID_MODEL_KABYLAKE_8E 0x8e // Kaby Lake U/Y QS +#define CPUID_MODEL_ALDERLAKE_97 0x97 // Alder Lake-S +#define CPUID_MODEL_ALDERLAKE_9A 0x9a // Alder Lake-P #define CPUID_MODEL_KABYLAKE_9E 0x9e // Kaby Lake S/H QS #define CPUID_MODEL_COMETLAKE_A5 0xa5 // Comet Lake S #define CPUID_MODEL_COMETLAKE_A6 0xa6 // Comet Lake U @@ -2086,6 +2088,15 @@ CPUID_UARCH_IS_ICELAKE(uint32 v) // IN: %eax from CPUID with %eax=1. CPUID_MODEL_IS_ROCKETLAKE(v); } +static INLINE Bool +CPUID_MODEL_IS_ALDERLAKE(uint32 v) // IN: %eax from CPUID with %eax=1. +{ + /* Assumes the CPU manufacturer is Intel. */ + return CPUID_FAMILY_IS_P6(v) && + (CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_ALDERLAKE_97 || + CPUID_EFFECTIVE_MODEL(v) == CPUID_MODEL_ALDERLAKE_9A); +} + static INLINE Bool CPUID_UARCH_IS_HASWELL(uint32 v) // IN: %eax from CPUID with %eax=1.