From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web08.18711.1610892973828975780 for ; Sun, 17 Jan 2021 06:16:14 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: yun.lou@intel.com) IronPort-SDR: c7/Nc3kVTko0MdB57BkuJmlG5xr3Ak7zVTHrSjLPqyEm+80Iqcqi42oq59yQcEhBC0DkdyV+/+ uBni9nbuPuAw== X-IronPort-AV: E=McAfee;i="6000,8403,9866"; a="240262002" X-IronPort-AV: E=Sophos;i="5.79,354,1602572400"; d="scan'208";a="240262002" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2021 06:16:11 -0800 IronPort-SDR: lWF+odEA6+Nn2OExmNOq7hf9CmGN0UXZpD6aQnjnpdj8VH/xmWDGWcw1MERwT3dXb+wPfReUGr hoJ40ENEKXWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,354,1602572400"; d="scan'208";a="466091468" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.183.61]) by fmsmga001.fm.intel.com with ESMTP; 17 Jan 2021 06:16:09 -0800 From: "Jason Lou" To: devel@edk2.groups.io Cc: Jason , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v7 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(1Ah). Date: Sun, 17 Jan 2021 22:15:40 +0800 Message-Id: <20210117141541.3627-1-yun.lou@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3105 The UefiCpuPkg/CpuCacheInfoLib will reference new definition about CPUID_HYBRID_INFORMATION Leaf(1Ah). 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(-) diff --git a/MdePkg/Include/Register/Intel/Cpuid.h b/MdePkg/Include/Registe= r/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 infor= mation.=0D @retval EBX Structured Extended Feature Flags described by the type=0D CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_EBX.=0D - @retval EBX Structured Extended Feature Flags described by the type=0D + @retval ECX Structured Extended Feature Flags described by the type=0D CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_ECX.=0D @retval EDX Reserved.=0D =0D @@ -3597,6 +3597,67 @@ typedef union { ///=0D =0D =0D +/**=0D + CPUID Hybrid Information Enumeration Leaf=0D +=0D + @param EAX CPUID_HYBRID_INFORMATION (0x1A)=0D + @param ECX CPUID_HYBRID_INFORMATION_SUB_LEAF (0x00).=0D +=0D + @retval EAX Enumerates the native model ID and core type described=0D + by the type CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX=0D + @retval EBX Reserved.=0D + @retval ECX Reserved.=0D + @retval EDX Reserved.=0D +=0D + Example usage=0D + @code=0D + CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX Eax;=0D +=0D + AsmCpuidEx (=0D + CPUID_HYBRID_INFORMATION,=0D + CPUID_HYBRID_INFORMATION_SUB_LEAF,=0D + &Eax, NULL, NULL, NULL=0D + );=0D + @endcode=0D +=0D +**/=0D +#define CPUID_HYBRID_INFORMATION 0x1= A=0D +=0D +///=0D +/// CPUID Hybrid Information Enumeration sub-leaf=0D +///=0D +#define CPUID_HYBRID_INFORMATION_SUB_LEAF 0x= 00=0D +=0D +/**=0D + CPUID Hybrid Information EAX for CPUID leaf #CPUID_HYBRID_INFORMATION,=0D + sub-leaf #CPUID_HYBRID_INFORMATION_SUB_LEAF.=0D +**/=0D +typedef union {=0D + ///=0D + /// Individual bit fields=0D + ///=0D + struct {=0D + ///=0D + /// [Bit 23:0] Native model ID of the core.=0D + ///=0D + /// The core-type and native mode ID can be used to uniquely identify= =0D + /// the microarchitecture of the core.This native model ID is not uniq= ue=0D + /// across core types, and not related to the model ID reported in CPU= ID=0D + /// leaf 01H, and does not identify the SOC.=0D + ///=0D + UINT32 NativeModelId:24;=0D + ///=0D + /// [Bit 31:24] Core type=0D + ///=0D + UINT32 CoreType:8;=0D + } Bits;=0D + ///=0D + /// All bit fields as a 32-bit value=0D + ///=0D + UINT32 Uint32;=0D +} CPUID_NATIVE_MODEL_ID_AND_CORE_TYPE_EAX;=0D +=0D +=0D /**=0D CPUID V2 Extended Topology Enumeration Leaf=0D =0D --=20 2.28.0.windows.1