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.3430.1610416675754554879 for ; Mon, 11 Jan 2021 17:57:56 -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, 12 Jan 2021 09:57:51 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Michael D Kinney'" , "'Zhiguang Liu'" References: <20210107032246.3101-1-yun.lou@intel.com> In-Reply-To: <20210107032246.3101-1-yun.lou@intel.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHY1IDEvMl0gTWRlUGtnL0NwdWlkLmg6IEFkZCBDUFVJRF9IWUJSSURfSU5GT1JNQVRJT04gTGVhZigxQWgpLg==?= Date: Tue, 12 Jan 2021 09:57:52 +0800 Message-ID: <008d01d6e886$5654d470$02fe7d50$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQNWlAY65ddXgCNhmlnEZ9rXlSOJ/qcj5JrQ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: bounce+27952+69890+4905953+8761045@groups.io > =B4=FA=B1=ED Jason Lou > =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA1=D4=C27=C8=D5 11:23 > =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: [edk2-devel] [PATCH v5 1/2] MdePkg/Cpuid.h: Add > CPUID_HYBRID_INFORMATION Leaf(1Ah). >=20 > REF: 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 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#69890): = https://edk2.groups.io/g/devel/message/69890 > Mute This Topic: https://groups.io/mt/79491810/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20