From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web10.1746.1588878279589921480 for ; Thu, 07 May 2020 12:04:42 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: ami.com, ip: , mailfrom: oleksiyy@ami.com) X-AuditID: ac1060b2-0e1ff700000018d4-a1-5eb45bc96864 Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id 11.DB.06356.9CB54BE5; Thu, 7 May 2020 15:04:42 -0400 (EDT) Received: from Oleksiy77.us.megatrends.com (172.16.97.158) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.468.0; Thu, 7 May 2020 15:03:17 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [PATCH 5/5] MdePkg: Update structures for MpServices Protocol Date: Thu, 7 May 2020 15:03:10 -0400 Message-ID: <20200507190310.38968-6-oleksiyy@ami.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 Return-Path: oleksiyy@ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsWyRiBhgu6p6C1xBq0n2S3aJ8xms1hxbwO7 RUfHPyYHZo/t3y8weize85IpgCmqgdEmMS8vvySxJFUhJbU42VYpoCizLDG5UkkhM8VWyVBJ oSAnMTk1NzWvxFYpsaAgNS9FyY5LAQPYAJVl5imk5iXnp2TmpdsqeQb761pYmFrqGirZhWSk KmTmpeUX5SaWZObnKSTn55UAVaemAEUVEro5Mx6tncZWsE+sYs7076wNjB1CXYycHBICJhJX p+5k7mLk4hAS2MUksXLNaShnM6NEy49tLCBVbAKaEgeOTWEEsUUEpCSmHJjJBGIzCxRJ3D76 GqxGWMBNYv2t+WwgNouAisSGxUtYQWxeAVOJ5febmCC2aUhMW3MXzOYUMJM4/ecUM4gtBFRz 8uwvqHpBiZMzn7BAzJeQOPjiBVSNrETb8efsExj5ZyEpm4WkbAEj0ypGocSSnNzEzJz0ckO9 xNxMveT83E2MkOjatIOx5aL5IUYmDsZDjBIczEoivDw/NsYJ8aYkVlalFuXHF5XmpBYfYnQC emAisxQ3KASBURJvbGAgJQrjGJqYmZgbmRtampgbGyuJ805euyZOSCAdGLXZqakFqUUwQ5g4 OKUaGHeJH4juUT177a+D36mbLL5yu9Z+KXbKlvT+pVradGleyXH5nqfv1xRe4A1axJGeO//N im2nxbwerXm16qjq6w8re0q5phxr3u995OWLvxuy/rHsEA1tv/ZYTGulOLtWzetLKx68eLR/ 4+cZhpYeNsfk74lHP/Ze3cOuubawxMA5QNL/y4sCkb9KLMUZiYZazEXFiQDvH/KcwwIAAA== Content-Type: text/plain From: Robert Phelps Added EXTENDED_PROCESSOR_INFORMATION structure and supporting structures and definitions. The intent is to support updated topology layout for CPUs. (PI 1.7a Mantis 2071) Signed-off-by: Robert Phelps --- MdePkg/Include/Protocol/MpService.h | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/MdePkg/Include/Protocol/MpService.h b/MdePkg/Include/Protocol/MpService.h index 10e2405daf..d7d0a115f3 100644 --- a/MdePkg/Include/Protocol/MpService.h +++ b/MdePkg/Include/Protocol/MpService.h @@ -47,6 +47,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent 0x3fdda605, 0xa76e, 0x4f46, {0xad, 0x29, 0x12, 0xf4, 0x53, 0x1b, 0x3d, 0x08} \ } +/// +/// Value used in the NumberProcessors parameter of the GetProcessorInfo function +/// +#define CPU_V2_EXTENDED_TOPOLOGY BIT24 + /// /// Forward declaration for the EFI_MP_SERVICES_PROTOCOL. /// @@ -96,6 +101,47 @@ typedef struct { UINT32 Thread; } EFI_CPU_PHYSICAL_LOCATION; +/// +/// Structure that defines the 6-level physical location of the processor +/// +typedef struct { +/// +/// Package Zero-based physical package number that identifies the cartridge of the processor. +/// +UINT32 Package; +/// +/// Module Zero-based physical module number within package of the processor. +/// +UINT32 Module; +/// +/// Tile Zero-based physical tile number within module of the processor. +/// +UINT32 Tile; +/// +/// Die Zero-based physical die number within tile of the processor. +/// +UINT32 Die; +/// +/// Core Zero-based physical core number within die of the processor. +/// +UINT32 Core; +/// +/// Thread Zero-based logical thread number within core of the processor. +/// +UINT32 Thread; +} EFI_CPU_PHYSICAL_LOCATION2; + + +/// Location2 The 6-level physical location of the processor, including the +/// physical package number that identifies the cartridge, the physical +/// module number within package, the physical tile number within the module, +/// the physical die number within the tile, the physical core number within +/// package, and logical thread number within core. +typedef union { + EFI_CPU_PHYSICAL_LOCATION2 Location2; +} EXTENDED_PROCESSOR_INFORMATION; + + /// /// Structure that describes information about a logical CPU. /// @@ -132,6 +178,10 @@ typedef struct { /// logical thread number within core. /// EFI_CPU_PHYSICAL_LOCATION Location; + /// + /// The extended information of the processor. This field is filled only when + /// CPU_V2_EXTENDED_TOPOLOGY is set in parameter ProcessorNumber. + EXTENDED_PROCESSOR_INFORMATION ExtendedInformation; } EFI_PROCESSOR_INFORMATION; /** -- 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.