From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A959921197056 for ; Sun, 9 Dec 2018 19:17:03 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Dec 2018 19:17:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,337,1539673200"; d="scan'208";a="99400783" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 09 Dec 2018 19:17:03 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 19:17:02 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 9 Dec 2018 19:17:02 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.203]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.176]) with mapi id 14.03.0415.000; Mon, 10 Dec 2018 11:17:00 +0800 From: "Ni, Ruiyu" To: "Dong, Eric" , "edk2-devel@lists.01.org" CC: Laszlo Ersek Thread-Topic: [Patch 0/2] Update CPUID related definition. Thread-Index: AQHUitGqp4IKWIhtvUG5OiMx2aaDpaV3V+aA Date: Mon, 10 Dec 2018 03:15:46 +0000 Deferred-Delivery: Mon, 10 Dec 2018 03:17:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5BF4E7F6@SHSMSX104.ccr.corp.intel.com> References: <20181203063005.28296-1-eric.dong@intel.com> In-Reply-To: <20181203063005.28296-1-eric.dong@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch 0/2] Update CPUID related definition. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2018 03:17:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni Thanks/Ray > -----Original Message----- > From: Dong, Eric > Sent: Monday, December 3, 2018 2:30 PM > To: edk2-devel@lists.01.org > Cc: Ni, Ruiyu ; Laszlo Ersek > Subject: [Patch 0/2] Update CPUID related definition. >=20 > Update CPUID definition to follow SDM 2018'11 version, changes Include: > 1. Add new fields to the existed data structure, impact CPUIDs include: > 1. CPUID_THERMAL_POWER_MANAGEMENT 0x06 > CPUID_THERMAL_POWER_MANAGEMENT_EAX > 2. CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS 0x07 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_EBX > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_ECX > 3. CPUID_ARCHITECTURAL_PERFORMANCE_MONITORING 0x0A > CPUID_ARCHITECTURAL_PERFORMANCE_MONITORING_EDX > 4. CPUID_EXTENDED_STATE 0x0D > CPUID_EXTENDED_STATE_MAIN_LEAF_EAX > CPUID_EXTENDED_STATE_SUB_LEAF_ECX > 5. CPUID_INTEL_RDT_ALLOCATION 0x10 > CPUID_INTEL_RDT_ALLOCATION_ENUMERATION_SUB_LEAF_EBX > 6. CPUID_INTEL_SGX 0x12 > CPUID_INTEL_SGX_CAPABILITIES_0_SUB_LEAF_EAX >=20 > 2. Add new data structures which not existed before, impact CPUID include= s: > 1. CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS 0x07 > CPUID_STRUCTURED_EXTENDED_FEATURE_FLAGS_EDX >=20 > 3. Remove fields which defined before, impact CPUID includes: > 1. CPUID_INTEL_RDT_ALLOCATION 0x10 > CPUID_INTEL_RDT_ALLOCATION_L3_CACHE_SUB_LEAF = 0x01 > CPUID_INTEL_RDT_ALLOCATION_L3_CACHE_SUB_LEAF_ECX >=20 > 4. Add new sub leaf which not existed before, impact CPUID includes: > 1. CPUID_INTEL_RDT_ALLOCATION 0x10 > CPUID_INTEL_RDT_ALLOCATION_MEMORY_BANDWIDTH_SUB_LEAF > 0x03 >=20 > 5. Add new CPUIDs which not exist before, new CPUIDs include: > 1. CPUID_DETERMINISTIC_ADDRESS_TRANSLATION_PARAMETERS > 0x18 > 2. CPUID_V2_EXTENDED_TOPOLOGY_ENUMERATION 0x1F >=20 > Also update Cpuid application in UefiCpuPkg/Application folder. >=20 > Cc: Ruiyu Ni > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Eric Dong >=20 > Eric Dong (2): > UefiCpuPkg/Cpuid.h: Sync CPUID definition to latest SDM. > UefiCpuPkg/Cpuid: Add code to support new definition. >=20 > UefiCpuPkg/Application/Cpuid/Cpuid.c | 147 ++++++++- > UefiCpuPkg/Include/Register/Cpuid.h | 620 > +++++++++++++++++++++++++++++++++-- > 2 files changed, 739 insertions(+), 28 deletions(-) >=20 > -- > 2.15.0.windows.1