From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.3535.1610675675929496473 for ; Thu, 14 Jan 2021 17:54:35 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: yun.lou@intel.com) IronPort-SDR: wKtWveR3Tljv8gC8oGDmsjiq6KNANg+j/CjdZqXsJs+SH9qi5OePWEfId3bWBermECyO4pWo5y Uq66hmX7swgA== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="174973691" X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="174973691" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2021 17:54:34 -0800 IronPort-SDR: 07NeXXBFUZ6qxoh/DMRzE4m8QGvVdr3FTgq4/F+uB1Oat1mk6tcBZEz6eKReBB9ymmRVWEZsZ/ 3M2LdtZ1JXEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="401127958" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.183.61]) by fmsmga002.fm.intel.com with ESMTP; 14 Jan 2021 17:54:33 -0800 From: "Jason Lou" To: devel@edk2.groups.io Cc: Jason , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v6 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(1Ah). Date: Fri, 15 Jan 2021 09:54:15 +0800 Message-Id: <20210115015416.3567-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