From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.3878.1605753463731954197 for ; Wed, 18 Nov 2020 18:37:44 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: yun.lou@intel.com) IronPort-SDR: jK07h1DY5luOtFKc9XTns0NPST4CW46b1QeQPwInryQZGVe8iixOln06gzXhHGm6oNq1tsdDq8 C7VDlKrMWyiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9809"; a="170439481" X-IronPort-AV: E=Sophos;i="5.77,489,1596524400"; d="scan'208";a="170439481" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2020 18:37:42 -0800 IronPort-SDR: g71DX600/s2cRRW/5xVNIkJMwjc9dgceXPWi+QmIok4N+QjqApM/K99wRAC5qDvVvM8ZbVGiYL rU0jmeJnxkzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,489,1596524400"; d="scan'208";a="359762262" Received: from shwdeopenlab102.ccr.corp.intel.com ([10.239.183.61]) by fmsmga004.fm.intel.com with ESMTP; 18 Nov 2020 18:37:40 -0800 From: "jasonlouyun" To: devel@edk2.groups.io Cc: jasonlouyun , Michael D Kinney , Zhiguang Liu , Liming Gao Subject: [PATCH v1 1/2] MdePkg/Cpuid.h: Add CPUID_HYBRID_INFORMATION Leaf(0x1A). Date: Thu, 19 Nov 2020 10:36:57 +0800 Message-Id: <20201119023658.926-1-yun.lou@intel.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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(-) 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