From nobody Tue May 21 12:39:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+100307+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100307+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1676622271; cv=none; d=zohomail.com; s=zohoarc; b=ZZeFLhMBKdQQsQ3CNHbPBLldC6TlLeiriq794wKYFOQ5mxYpJT7fDk+R7U/u+cTbxvViQnY0fwxAA9n22K/Ksk8uk7dMZiLgOYktW6hxxOmw/fUB4B+K4kajIe0b5RspjMBsGWLJNUVh18wuBIGK2ZrDJyl8sNOj8pldaf3NZmE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676622271; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=7qGOFG0z95tzBNu2+b8ReibGjR0zJtGS9EkrchBVOxw=; b=KHgdxwyK6mzf/zC6r5hBzbVm70u0EnCxliOoR3X732HAsKUBLa06aPrSCXMXDmHjdXBWUjZrpq/HRJbELnOgqyLt3RIjL/9YlqUKdw9imicQQfqjQ6dK6cGIotNXFRS2tG5FnbtABa9D343t1iIeRWGExexOJ8ap3Vzvgc7d83k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+100307+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1676622271306858.3723524663445; Fri, 17 Feb 2023 00:24:31 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id aeGfYY1788612xysPwz9SGFV; Fri, 17 Feb 2023 00:24:31 -0800 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web10.2496.1676622270105587880 for ; Fri, 17 Feb 2023 00:24:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="394415552" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="394415552" X-Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2023 00:24:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="813296361" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="813296361" X-Received: from william4-desk.gar.corp.intel.com ([10.5.215.176]) by fmsmga001.fm.intel.com with ESMTP; 17 Feb 2023 00:24:21 -0800 From: "Wang, William2" To: devel@edk2.groups.io Cc: William2 Wang , Michael D Kinney , Liming Gao , Ray Ni , Donald Kuo , Chandana C Kumar Subject: [edk2-devel] [PATCH v6] Update CPUID Leaf 06H to follow latest SDM. Date: Fri, 17 Feb 2023 16:24:17 +0800 Message-Id: <20230217082417.732-1-william2.wang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,william2.wang@intel.com X-Gm-Message-State: IcB6sRfGbAegs7369Ami8l5ux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1676622271; bh=Fr5uB2Xid5Hn3/PmGiUbnn2ImH8mEkIQ21P8Y4+j3fY=; h=Cc:Date:From:Reply-To:Subject:To; b=MlDc8nOLJgwFXBrpx9VomqZGCUUALsBW+GzDu0j6VEcyzxXTHiSZQO887GaTwNgxYGc bqS01gyqR6j/M0kHObtd4e9lyXrgQkpwVAScBDc8mvrgNPYPwCc5rceXs0OhxPukE93vQ CvD6GjFkhZe2sGw7x/M18No9h+eUjrxeFEo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1676622272517100001 Content-Type: text/plain; charset="utf-8" From: William2 Wang REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4262 Update CPUID Leaf 06H to follow latest SDM. Cc: Michael D Kinney Cc: Liming Gao Cc: Ray Ni Cc: Donald Kuo Cc: Chandana C Kumar Reviewed-by: Ray Ni --- MdePkg/Include/Register/Intel/Cpuid.h | 65 ++++++++++++++++++-- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/MdePkg/Include/Register/Intel/Cpuid.h b/MdePkg/Include/Registe= r/Intel/Cpuid.h index 350bf60252..a8d25671bd 100644 --- a/MdePkg/Include/Register/Intel/Cpuid.h +++ b/MdePkg/Include/Register/Intel/Cpuid.h @@ -1195,12 +1195,24 @@ typedef union { /// [Bit 18] Fast access mode for the IA32_HWP_REQUEST MSR is supporte= d if set. /// UINT32 FastAccessMode : 1; - UINT32 Reserved4 : 1; + /// + /// [Bit 19] IA32_HW_FEEDBACK_PTR MSR, IA32_HW_FEEDBACK_CONFIG MSR, + /// IA32_PACKAGE_THERM_STATUS MSR bit 26, and IA32_PACKAGE_THERM_INTER= RUPT MSR bit 25 are supported if set. + UINT32 HW_FEEDBACK : 1; /// /// [Bit 20] Ignoring Idle Logical Processor HWP request is supported = if set. /// UINT32 IgnoringIdleLogicalProcessorHWPRequest : 1; - UINT32 Reserved5 : 11; + UINT32 Reserved6 : 2; + /// + /// [Bit 23] Intel Thread Director supported if set. IA32_HW_FEEDBACK_= CHAR and + /// IA32_HW_FEEDBACK_THREAD_CONFIG MSRs are supported if set. + UINT32 ThreadDirector : 1; + /// + /// [Bit 24] IA32_THERM_INTERRUPT MSR bit 25 is supported if set. + /// + UINT32 IA32_THERM_INTERRUPT : 1; + UINT32 Reserved7 : 7; } Bits; /// /// All bit fields as a 32-bit value @@ -1244,15 +1256,21 @@ typedef union { /// processor performance (since last reset of the counters), as a per= centage /// of the expected processor performance when running at the TSC freq= uency. /// - UINT32 HardwareCoordinationFeedback : 1; - UINT32 Reserved1 : 2; + UINT32 HardwareCoordinationFeedback : 1; + UINT32 Reserved1 : 2; /// /// [Bit 3] If this bit is set, then the processor supports performanc= e-energy /// bias preference and the architectural MSR called IA32_ENERGY_PERF_= BIAS /// (1B0H). /// - UINT32 PerformanceEnergyBias : 1; - UINT32 Reserved2 : 28; + UINT32 PerformanceEnergyBias : 1; + UINT32 Reserved3 : 4; + /// + /// {Bit 15:8] Number of Intel Thread Director classes supported by th= e processor. Information for that + /// many classes is written into the Intel Thread Director Table by th= e hardware. + /// + UINT32 NumberOfThreadDirectorClasses : 8; + UINT32 Reserved4 : 16; } Bits; /// /// All bit fields as a 32-bit value @@ -1260,6 +1278,41 @@ typedef union { UINT32 Uint32; } CPUID_THERMAL_POWER_MANAGEMENT_ECX; =20 +/** + CPUID Thermal and Power Management Information returned in EDX for CPUID= leaf + #CPUID_THERMAL_POWER_MANAGEMENT. +**/ +typedef union { + /// + /// Individual bit fields + /// + struct { + /// + /// {Bits 7:0] Bitmap of supported hardware feedback interface capabil= ities. + /// 0 =3D When set to 1, indicates support for performance capabilit= y reporting. + /// 1 =3D When set to 1, indicates support for energy efficiency cap= ability reporting. + /// 2-7 =3D Reserved + /// + UINT32 InterfaceCapability : 8; + /// + /// {Bits 11:8] Enumerates the size of the hardware feedback interface= structure in number of 4 KB pages; + /// add one to the return value to get the result. + /// + UINT32 InterfaceStructureSize4K : 4; + UINT32 Reserved : 4; + /// + /// {Bits 31:16] : Index (starting at 0) of this logical processor's r= ow in the hardware feedback interface structure. + /// Note that on some parts the index may be same for multiple logical= processors. On some parts the + /// indices may not be contiguous, i.e., there may be unused rows in t= he hardware feedback interface structure. + /// + UINT32 LogicalProcessorRowIndex : 16; + } Bits; + /// + /// All bit fields as a 32-bit value + /// + UINT32 Uint32; +} CPUID_THERMAL_POWER_MANAGEMENT_EDX; + /** CPUID Structured Extended Feature Flags Enumeration =20 --=20 2.34.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100307): https://edk2.groups.io/g/devel/message/100307 Mute This Topic: https://groups.io/mt/97024466/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-