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.web10.21400.1605851129727067021 for ; Thu, 19 Nov 2020 21:45:33 -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 ; Fri, 20 Nov 2020 13:45:23 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'jasonlouyun'" , , "'Ray'" , "'Eric Dong'" Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" References: <20201119023658.926-1-yun.lou@intel.com> In-Reply-To: <20201119023658.926-1-yun.lou@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjEgMS8yXSBNZGVQa2cvQ3B1aWQuaDogQWRkIENQVUlEX0hZQlJJRF9JTkZPUk1BVElPTiBMZWFmKDB4MUEpLg==?= Date: Fri, 20 Nov 2020 13:45:25 +0800 Message-ID: <017901d6bf00$58afa6a0$0a0ef3e0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGjVKuVSkdAmz6kVb10ilrm4qH1HKo3VuAA Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Include UefiCpuPkg maintainers Ray and Eric to review.=20 Besides, now, we are in soft feature freeze phase. So, this patch will = be merged after this stable tag 202011.=20 Thanks Liming > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: jasonlouyun > =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA11=D4=C219=C8=D5 10:37 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: jasonlouyun ; Michael D Kinney > ; Zhiguang Liu ; > Liming Gao > =D6=F7=CC=E2: [PATCH v1 1/2] MdePkg/Cpuid.h: Add = CPUID_HYBRID_INFORMATION > Leaf(0x1A). >=20 > Signed-off-by: Jason Lou > Cc: Michael D Kinney > Cc: Zhiguang Liu > Cc: Liming Gao > --- > 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