From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.4575.1607405359454595654 for ; Mon, 07 Dec 2020 21:29:22 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 08 Dec 2020 13:26:41 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Jason'" , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Ni, Ray'" , References: <20201208045104.1234-1-yun.lou@intel.com> In-Reply-To: <20201208045104.1234-1-yun.lou@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjIgMS8yXSBNZGVQa2cvQ3B1aWQuaDogQWRkIENQVUlEX0hZQlJJRF9JTkZPUk1BVElPTiBMZWFmKDFBaCku?= Date: Tue, 8 Dec 2020 13:26:42 +0800 Message-ID: <007e01d6cd22$b66590e0$2330b2a0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQK1HfU3mv8hhPjA6Au8semSNykpn6gwCVVQ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Include CPU maintainers Ray and Eric. Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Jason > =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA12=D4=C28=C8=D5 12:51 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Jason ; Michael D Kinney > ; Liming Gao ; > Zhiguang Liu > =D6=F7=CC=E2: [PATCH v2 1/2] MdePkg/Cpuid.h: Add = CPUID_HYBRID_INFORMATION > Leaf(1Ah). >=20 > https://bugzilla.tianocore.org/show_bug.cgi?id=3D3105 >=20 > The UefiCpuPkg/CpuCacheInfoLib will reference new definition > about CPUID_HYBRID_INFORMATION Leaf(1Ah). >=20 > Signed-off-by: Jason Lou > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > --- > MdePkg/Include/Register/Intel/Cpuid.h | 63 +++++++++++++++++++- > 1 file changed, 62 insertions(+), 1 deletion(-) >=20 > diff --git a/MdePkg/Include/Register/Intel/Cpuid.h > b/MdePkg/Include/Register/Intel/Cpuid.h > index d4496079570d..dd1b64a1e50b 100644 > --- a/MdePkg/Include/Register/Intel/Cpuid.h > +++ b/MdePkg/Include/Register/Intel/Cpuid.h > @@ -1278,7 +1278,7 @@ typedef union { > @retval EAX The maximum input value for ECX to retrieve sub-leaf > information. >=20 > @retval EBX Structured Extended Feature Flags described by the = type >=20 >=20 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_EBX. >=20 > - @retval EBX Structured Extended Feature Flags described by the = type >=20 > + @retval ECX Structured Extended Feature Flags described by the = type >=20 >=20 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_ECX. >=20 > @retval EDX Reserved. >=20 >=20 >=20 > @@ -3597,6 +3597,67 @@ typedef union { > /// >=20 >=20 >=20 >=20 >=20 > +/** >=20 > + CPUID Hybrid Information Enumeration Leaf >=20 > + >=20 > + @param EAX CPUID_HYBRID_INFORMATION (0x1A) >=20 > + @param ECX CPUID_HYBRID_INFORMATION_SUB_LEAF (0x00). >=20 > + >=20 > + @retval EAX Enumerates the native model ID and core type = described >=20 > + by the type > CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX >=20 > + @retval EBX Reserved. >=20 > + @retval ECX Reserved. >=20 > + @retval EDX Reserved. >=20 > + >=20 > + Example usage >=20 > + @code >=20 > + CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX Eax; >=20 > + >=20 > + AsmCpuidEx ( >=20 > + CPUID_HYBRID_INFORMATION, >=20 > + CPUID_HYBRID_INFORMATION_SUB_LEAF, >=20 > + &Eax, NULL, NULL, NULL >=20 > + ); >=20 > + @endcode >=20 > + >=20 > +**/ >=20 > +#define CPUID_HYBRID_INFORMATION > 0x1A >=20 > + >=20 > +/// >=20 > +/// CPUID Hybrid Information Enumeration sub-leaf >=20 > +/// >=20 > +#define CPUID_HYBRID_INFORMATION_SUB_LEAF > 0x00 >=20 > + >=20 > +/** >=20 > + CPUID Hybrid Information EAX for CPUID leaf > #CPUID_HYBRID_INFORMATION, >=20 > + sub-leaf #CPUID_HYBRID_INFORMATION_SUB_LEAF. >=20 > +**/ >=20 > +typedef union { >=20 > + /// >=20 > + /// Individual bit fields >=20 > + /// >=20 > + struct { >=20 > + /// >=20 > + /// [Bit 23:0] Native model ID of the core. >=20 > + /// >=20 > + /// The core-type and native mode ID can be used to uniquely = identify >=20 > + /// the microarchitecture of the core.This native model ID is not unique >=20 > + /// across core types, and not related to the model ID reported = in > CPUID >=20 > + /// leaf 01H, and does not identify the SOC. >=20 > + /// >=20 > + UINT32 NativeModelId:24; >=20 > + /// >=20 > + /// [Bit 31:24] Core type >=20 > + /// >=20 > + UINT32 CoreType:8; >=20 > + } Bits; >=20 > + /// >=20 > + /// All bit fields as a 32-bit value >=20 > + /// >=20 > + UINT32 Uint32; >=20 > +} CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX; >=20 > + >=20 > + >=20 > /** >=20 > CPUID V2 Extended Topology Enumeration Leaf >=20 >=20 >=20 > -- > 2.28.0.windows.1