From nobody Mon May 6 10:53:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58803+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58803+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588878280; cv=none; d=zohomail.com; s=zohoarc; b=Mdl8+zstCRdOD4iRDbQdDHc6OHYZMt9iwVgwmBmqNHp7TMuiJAIWhwt0bWjoGC56QYEnPDjNQFxp5dFi3Bp2dAnYSOYzjsIB8fP1RKv0TXMZfEJNqj0EjFUYll4xXprmfUn3/Ef6Z5wKdgl/SaSS5RRrsl2UvguMXc+QxTaLf4E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588878280; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=2vdtzxg27g2qid+U9USjnM8D6SuqD6hz+u5iRRe/408=; b=eAazplP2dZo7jo0syLXRH929SqM1A7jEhFhbNqv7kuVwp/JeBeIUOBQ/9pfVfuzr19GJ2S0d7neVYVu1BLnhT19+TA/avMtuZtJSU8f3oMubLqQIQDjPAiotftOIhSFthm7IAeCxqRXuu36ZL0+xUNyjy2JKSzjSiAzFzGFiZ9A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58803+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588878280816283.56801544029497; Thu, 7 May 2020 12:04:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lZ0gYY1788612xLibKUzMIh3; Thu, 07 May 2020 12:04:40 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com [63.147.10.40]) by mx.groups.io with SMTP id smtpd.web10.1746.1588878279589921480 for ; Thu, 07 May 2020 12:04:39 -0700 X-AuditID: ac1060b2-0f7ff700000018d4-9d-5eb45bc5cba6 X-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 80.DB.06356.5CB54BE5; Thu, 7 May 2020 15:04:37 -0400 (EDT) X-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:13 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH 1/5] MdePkg: New Status Codes Date: Thu, 7 May 2020 15:03:06 -0400 Message-ID: <20200507190310.38968-2-oleksiyy@ami.com> In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWyRiBhgu7R6C1xBm2TbSzaJ8xms1hxbwO7 RUfHPyYHZo/t3y8weize85IpgCmqgdEmMS8vvySxJFUhJbU42VYpoCizLDG5UkkhM8VWyVBJ oSAnMTk1NzWvxFYpsaAgNS9FyY5LAQPYAJVl5imk5iXnp2TmpdsqeQb761pYmFrqGirZhWSk KmTmpeUX5SaWZObnKSTn55UAVaemAEUVEro5M7bP7WIvmCRfsbd/M2sD4yrJLkZODgkBE4np 3dtYQGwhgV1MEouOO3QxcgHZmxkl+s9dZQdJsAloShw4NoURxBYRkJKYcmAmE4jNLFAkcfvo a7BmYQFdiY5VD1lBbBYBFYmfZyaygdi8AqYSDRcgFkgIaEhMW3MXrJdTwEzi9J9TzBCLTSVO nv3FClEvKHFy5hMWiPkSEgdfvICqkZVoO/6cfQIj/ywkZbOQlC1gZFrFKJRYkpObmJmTXm6o l5ibqZecn7uJERJbm3Ywtlw0P8TIxMF4iFGCg1lJhJfnx8Y4Id6UxMqq1KL8+KLSnNTiQ4xO QA9MZJbiBgUgMEbijQ0MpERhHEMTMxNzI3NDSxNzY2Mlcd7Ja9fECQmkA2M2OzW1ILUIZggT B6dUA6PeZjvh4Ie3PRz+ez6+ZlzX9T2Jt9D3R/HZt9O4+1ba8ffs37W9IvRY88/Vcg2Rey14 g3v1lEpk/33Xdnm8r/vR5QmrdZkenInUP31pU6+vkRSHTaPuPrdP0RYLC6UX3OG5oy/5Zvml Z+EZf9s2Kz/9/vbyGettOyv3XoxdwFt0cEPt5/tpt1WUWIozEg21mIuKEwE8aW7TwgIAAA== Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: B8JSBqLVh3Qg5u8lcfJoB4NGx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588878280; bh=p8m4FRfUvxdVpsCUjJ9LnduJj84OmGx8qKsnFeAh3vg=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=wFfxl9sKRBeONBhvAFhX7D/oHNs43v4+sZqQiVULkBXDICzJsNPEte7g5zdt1p7e9zl hgUIQcHKJWQ++S7P6sv89amwmOEUTzM1H8zvWkYNUqnzdud8uMiDSyseurTMR62Azm1zN K05MtZFDwCRiFLGpH4agLsi9JkpdH4wnLJE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Robert Phelps Updated PiStatusCodes to reflect changes to PI 1.7 Specification (PI 1.7 Mantis 1889) Signed-off-by: Robert Phelps --- MdePkg/Include/Pi/PiStatusCode.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/MdePkg/Include/Pi/PiStatusCode.h b/MdePkg/Include/Pi/PiStatusC= ode.h index 0ffd29a714..81fd24c9ea 100644 --- a/MdePkg/Include/Pi/PiStatusCode.h +++ b/MdePkg/Include/Pi/PiStatusCode.h @@ -340,6 +340,7 @@ typedef struct { #define EFI_CHIPSET_EC_BAD_BATTERY (EFI_SUBCLASS_SPECIFIC | 0x0000000= 0) #define EFI_CHIPSET_EC_DXE_NB_ERROR (EFI_SUBCLASS_SPECIFIC | 0x0000000= 1) #define EFI_CHIPSET_EC_DXE_SB_ERROR (EFI_SUBCLASS_SPECIFIC | 0x0000000= 2) +#define EFI_CHIPSET_EC_INTRUDER_DETECT (EFI_SUBCLASS_SPECIFIC | 0x0000000= 3) ///@} =20 /// @@ -361,6 +362,7 @@ typedef struct { #define EFI_PERIPHERAL_AUDIO_OUTPUT (EFI_PERIPHERAL | 0x000A0000) #define EFI_PERIPHERAL_LCD_DEVICE (EFI_PERIPHERAL | 0x000B0000) #define EFI_PERIPHERAL_NETWORK (EFI_PERIPHERAL | 0x000C0000) +#define EFI_PERIPHERAL_DOCKING (EFI_PERIPHERAL | 0x000D0000) ///@} =20 /// @@ -375,6 +377,7 @@ typedef struct { #define EFI_P_PC_ENABLE 0x00000004 #define EFI_P_PC_RECONFIG 0x00000005 #define EFI_P_PC_DETECTED 0x00000006 +#define EFI_P_PC_REMOVED 0x00000007 ///@} =20 // @@ -464,8 +467,9 @@ typedef struct { /// Peripheral Class Keyboard Subclass Error Code definitions. /// ///@{ -#define EFI_P_KEYBOARD_EC_LOCKED (EFI_SUBCLASS_SPECIFIC | 0x00000000) -#define EFI_P_KEYBOARD_EC_STUCK_KEY (EFI_SUBCLASS_SPECIFIC | 0x00000001) +#define EFI_P_KEYBOARD_EC_LOCKED (EFI_SUBCLASS_SPECIFIC | 0x00000000) +#define EFI_P_KEYBOARD_EC_STUCK_KEY (EFI_SUBCLASS_SPECIFIC | 0x00000001) +#define EFI_P_KEYBOARD_EC_BUFFER_FULL (EFI_SUBCLASS_SPECIFIC | 0x00000002) ///@} =20 /// @@ -762,6 +766,7 @@ typedef struct { #define EFI_SW_PEI_PC_RECOVERY_AUTO (EFI_SUBCLASS_SPECIFIC | 0x00000004) #define EFI_SW_PEI_PC_S3_BOOT_SCRIPT (EFI_SUBCLASS_SPECIFIC | 0x00000005) #define EFI_SW_PEI_PC_OS_WAKE (EFI_SUBCLASS_SPECIFIC | 0x00000006) +#define EFI_SW_PEI_PC_S3_STARTED (EFI_SUBCLASS_SPECIFIC | 0x00000007) ///@} =20 /// @@ -784,7 +789,11 @@ typedef struct { #define EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT (EFI_SUBCLASS_SPECIF= IC | 0x00000002) #define EFI_SW_DXE_BS_PC_EXIT_BOOT_SERVICES_EVENT (EFI_SUBCLASS_SPECIF= IC | 0x00000003) #define EFI_SW_DXE_BS_PC_VIRTUAL_ADDRESS_CHANGE_EVENT (EFI_SUBCLASS_SPECIF= IC | 0x00000004) +#define EFI_SW_DXE_BS_PC_VARIABLE_SERVICES_INIT (EFI_SUBCLASS_SPECIF= IC | 0x00000005) +#define EFI_SW_DXE_BS_PC_VARIABLE_RECLAIM (EFI_SUBCLASS_SPECIF= IC | 0x00000006) #define EFI_SW_DXE_BS_PC_ATTEMPT_BOOT_ORDER_EVENT (EFI_SUBCLASS_SPECIF= IC | 0x00000007) +#define EFI_SW_DXE_BS_PC_CONFIG_RESET (EFI_SUBCLASS_SPECIF= IC | 0x00000008) +#define EFI_SW_DXE_BS_PC_CSM_INIT (EFI_SUBCLASS_SPECIF= IC | 0x00000009) ///@} =20 // @@ -974,6 +983,8 @@ typedef struct { #define EFI_SW_EC_PWD_CLR_REQUEST 0x0000000F #define EFI_SW_EC_PWD_CLEARED 0x00000010 #define EFI_SW_EC_EVENT_LOG_FULL 0x00000011 +#define EFI_SW_EC_WRITE_PROTECTED 0x00000012 +#define EFI_SW_EC_FV_CORRUPTED 0x00000013 ///@} =20 // @@ -1005,6 +1016,8 @@ typedef struct { #define EFI_SW_PEI_EC_S3_RESUME_FAILED (EFI_SUBCLASS_SPECIFIC = | 0x00000005) #define EFI_SW_PEI_EC_RECOVERY_PPI_NOT_FOUND (EFI_SUBCLASS_SPECIFIC = | 0x00000006) #define EFI_SW_PEI_EC_RECOVERY_FAILED (EFI_SUBCLASS_SPECIFIC = | 0x00000007) +#define EFI_SW_PEI_EC_RESUME_ERROR (EFI_SUBCLASS_SPECIFIC = | 0x00000008) +#define EFI_SW_PEI_EC_INVALID_CAPSULE (EFI_SUBCLASS_SPECIFIC = | 0x00000009) ///@} =20 /// --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#58803): https://edk2.groups.io/g/devel/message/58803 Mute This Topic: https://groups.io/mt/74057698/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- From nobody Mon May 6 10:53:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58802+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58802+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588878280; cv=none; d=zohomail.com; s=zohoarc; b=UN5KX0rhInaAHs/Wb1A5cOLsUzk0FB/BWOzBBlSWOp3HmqE1Wi76QBErF1Tm9fu7sty1zP8Yp5UjNVIUGZJP2Myrxlx0KVJvBcFgByiZdwV5iWiEltD9dazHg9rfzzBTXagt7cN5YfU2y87UEgihnjhbwPNTGXOU7p3vSL7rLxM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588878280; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=qoj8r4XONFVTsNmawYQxXRqCQEX4uLK4TgUw/CugLJg=; b=WeNiBJl8BmMnc2owHrhy2ORqFIxoHoBiVGSjBE1reR1cpOqlf7W/jlpDoywG9PZFAskapQ+Q45JnP8g6QSNOtfXjOBEDrwD9/fmIgyIZri0kYD594SrJMdJ502EGxu89R5a/7EJ2aRiK1/ZqSEV0UtcmB1VWRwJLvO5mhHJK5+4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58802+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588878280317346.8571273725812; Thu, 7 May 2020 12:04:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id OKnpYY1788612xyCieNBSSuz; Thu, 07 May 2020 12:04:39 -0700 X-Received: from atlmailgw2.ami.com (atlmailgw2.ami.com []) by mx.groups.io with SMTP id smtpd.web12.1670.1588878277926233898 for ; Thu, 07 May 2020 12:04:39 -0700 X-AuditID: ac10606f-05fff70000001b62-2f-5eb45bc5d0af X-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 atlmailgw2.ami.com (Symantec Messaging Gateway) with SMTP id BA.0B.07010.5CB54BE5; Thu, 7 May 2020 15:04:38 -0400 (EDT) X-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:14 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH 2/5] MdePkg: Updates to PI 1.7 Revision numbers for Date: Thu, 7 May 2020 15:03:07 -0400 Message-ID: <20200507190310.38968-3-oleksiyy@ami.com> In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsWyRiBhgu6x6C1xBqc+8li0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZrStW8VY8IOv4uOag4wNjLt4uhg5OSQETCSO 7l7C1sXIxSEksItJYsuS36wQzmZGiXPr3zOBVLEJaEocODaFEcQWEZCSmHJgJlicWaBI4vbR 1ywgtrCAs8SPRevBbBYBFYmNd86ygdi8AqYSFw5tZoTYpiExbc1dsF5OATOJ039OMYPYQkA1 J8/+YoWoF5Q4OfMJC8R8CYmDL15A1chKtB1/zj6BkX8WkrJZSMoWMDKtYhRKLMnJTczMSS83 0kvMzdRLzs/dxAiJrvwdjB8/mh9iZOJgPMQowcGsJMLL82NjnBBvSmJlVWpRfnxRaU5q8SFG J6AHJjJLcYNCEBgl8cYGBlKiMI6hiZmJuZG5oaWJubGxkjjvpLVr4oQE0oFRm52aWpBaBDOE iYNTqoHR1Pdt2Rv2qyd/zfh4p/f8U6Wdk3fLV0w+/UFVzPbk43yR/JOKVsG25X3S1+5abV1s 3RetovfOeoNvqPKXQ5cbTsc/2LJA+Vrlk/rHyb4P/ywv0hW5lCo8/9rS2gjDuzPzeGSu7p2z a+euNDc3lacX6h1OntJV18oL23/o/XyNI6bW2554sHCdVWIpzkg01GIuKk4EAOGy/cHDAgAA Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: NaMup6vrLmjmJmfMEDeN02rHx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588878279; bh=EXQ0Q3JpNlt5yEw7AE38UzNp5bEeVVIGt95w5KFvf1o=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Zsl891tkbVL9YN/U9A/tIBQdwMj/9riqSZcUItQiQKR0W99isKvgJ0N5lcG+jmP85du ZFnWePZOw3QAYxbcNK7llgAoXmfm6zwCH/ZcF3bHZGGsGlDU+DQTRD7JX6C1mjlMjVrzI IUzEanR2NzWE8JnkAGkCZDID1WZElyWYt90= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Robert Phelps Revision number defines and MACROs were incorrect for the current version of the Specification (PI 1.7 Mantis 1892) Signed-off-by: Robert Phelps --- MdePkg/Include/Pi/PiDxeCis.h | 4 ++-- MdePkg/Include/Pi/PiPeiCis.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/Pi/PiDxeCis.h b/MdePkg/Include/Pi/PiDxeCis.h index e44744654f..1682211d92 100644 --- a/MdePkg/Include/Pi/PiDxeCis.h +++ b/MdePkg/Include/Pi/PiDxeCis.h @@ -5,7 +5,7 @@ Copyright (c) 2006 - 2018, Intel Corporation. All rights re= served.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 @par Revision Reference: - PI Version 1.6 + PI Version 1.7 =20 **/ =20 @@ -690,7 +690,7 @@ EFI_STATUS // #define DXE_SERVICES_SIGNATURE 0x565245535f455844ULL #define DXE_SPECIFICATION_MAJOR_REVISION 1 -#define DXE_SPECIFICATION_MINOR_REVISION 60 +#define DXE_SPECIFICATION_MINOR_REVISION 70 #define DXE_SERVICES_REVISION ((DXE_SPECIFICATION_MAJOR_REVISI= ON<<16) | (DXE_SPECIFICATION_MINOR_REVISION)) =20 typedef struct { diff --git a/MdePkg/Include/Pi/PiPeiCis.h b/MdePkg/Include/Pi/PiPeiCis.h index d9d4ed7d41..ebfe598172 100644 --- a/MdePkg/Include/Pi/PiPeiCis.h +++ b/MdePkg/Include/Pi/PiPeiCis.h @@ -5,7 +5,7 @@ Copyright (c) 2006 - 2019, Intel Corporation. All rights re= served.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 @par Revision Reference: - PI Version 1.6. + PI Version 1.7. =20 **/ =20 @@ -850,7 +850,7 @@ EFI_STATUS // PEI Specification Revision information // #define PEI_SPECIFICATION_MAJOR_REVISION 1 -#define PEI_SPECIFICATION_MINOR_REVISION 60 +#define PEI_SPECIFICATION_MINOR_REVISION 70 /// /// Specification inconsistency here: /// In the PI1.0 spec, PEI_SERVICES_SIGNATURE is defined as 0x565245532049= 4550. But --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#58802): https://edk2.groups.io/g/devel/message/58802 Mute This Topic: https://groups.io/mt/74057696/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- From nobody Mon May 6 10:53:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58804+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58804+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588878281; cv=none; d=zohomail.com; s=zohoarc; b=Prc7Env8bslQIoCFwJ/C0Xvs/bBMs0AmH1SHalRjddBsvTkQS6n+wQfHwvOg+vNQ3HzfXghm+15kEEHgwmCRfV51nLqIOcWbtn2MxIYxqIumpSuFOJbTx8e0Ha59ZzUHwyGD29z9wabeBTNb8vPD8a5L1rPp5ojSIKluAuk+n/A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588878281; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=FmO4CM4twfbrvXoomJCT+TRGQkPOAc/Rsf8ksJiCURs=; b=O1Zp5k5D7ENMKO9qvx1+UlHuxcx/UhEXxaKZxolelXPYbxVeMF1h/VRGxGsDc93xejbSTP1AlMUlyZ1Q6OcqGiwtMqSWhAVygqoyvK0hPQ+IZm5Hzjd/dQh6dzwOEGGshNH9Jdbb6jerUD/ZIQvyccZ7zw8bv/x4p76jF2hc75Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58804+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588878281286133.09111182275365; Thu, 7 May 2020 12:04:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NccbYY1788612x5wkmZ0sTWq; Thu, 07 May 2020 12:04:40 -0700 X-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:40 -0700 X-AuditID: ac1060b2-0f7ff700000018d4-a0-5eb45bc7a92b X-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 D0.DB.06356.7CB54BE5; Thu, 7 May 2020 15:04:40 -0400 (EDT) X-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:15 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH 3/5] MdePkg: EFI_MM_COMUNICATION2_PROTOCOL Date: Thu, 7 May 2020 15:03:08 -0400 Message-ID: <20200507190310.38968-4-oleksiyy@ami.com> In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsWyRiBhgu6J6C1xBotfsFm0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZizZqF6wVrmib/9vpgbG9VJdjJwcEgImEq// 3GUCsYUEdjFJvOipgLA3M0osXFwAYrMJaEocODaFEcQWEZCSmHJgJlg9s0CRxO2jr1lAbGEB K4n5T5+wgdgsAioSW/Y/BavnFTCVWLJ9CxPELg2JaWsgdnEKmEmc/nOKGWKXqcTJs79YIeoF JU7OfMICMV9C4uCLF1A1shJtx5+zT2Dkn4WkbBaSsgWMTKsYhRJLcnITM3PSyw31EnMz9ZLz czcxQuJq0w7GlovmhxiZOBgPMUpwMCuJ8PL82BgnxJuSWFmVWpQfX1Sak1p8iNEJ6IGJzFLc oOADxke8sYGBlCiMY2hiZmJuZG5oaWJubKwkzjt57Zo4IYF0YLxmp6YWpBbBDGHi4JRqYNyo 5Sr1zHxucWfT2uf/e1J9E1W3FGb9TS18YHSgVXpxL2txReP5tBkXorPUWu6tV484VTMz1lAl 9/51tqg+D6kVHq92zbO1nlHM2uR4wuXzmVup7E+PlcUvP1ZwZ/vBmPpV7DY6hxP3G6+d/v/P HBbVDRtPN6x6H5yp4fDkm+4tI4eZpQv+mSmxFGckGmoxFxUnAgBbmbGWwAIAAA== Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: y3npr6D69Ru5ESC9F64u55jRx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588878280; bh=52rqtsaWax/RI272S+mHSc7VGtghVp0rvqXcgyiZYv4=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=uE96ANyl6weRInEA08gkg211QmrLrCK6Ice6qbBgXSvRp7KAEaRmfRw4Ve0Sz+McALu PPsJyVAyEUTsiJ7lVH71ITdxP2y1ljU/y66Z6A0SPcq5NUCqHXfGZzcw3aj5iDnO1HTbF RVRagdFjSPX9Ej+vuMLd5b690xNNEzt1jDM= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Robert Phelps Created a new header to support the new EFI_MM_COMMUNICATION2_PROTOCOL Protocol as defined in the PI 1.7a Specification (PI 1.7a Mantis 1993) Signed-off-by: Robert Phelps --- MdePkg/Include/Protocol/MmCommunication2.h | 66 ++++++++++++++++++++++ MdePkg/MdePkg.dec | 7 +++ 2 files changed, 73 insertions(+) create mode 100644 MdePkg/Include/Protocol/MmCommunication2.h diff --git a/MdePkg/Include/Protocol/MmCommunication2.h b/MdePkg/Include/Pr= otocol/MmCommunication2.h new file mode 100644 index 0000000000..b6fe5069e1 --- /dev/null +++ b/MdePkg/Include/Protocol/MmCommunication2.h @@ -0,0 +1,66 @@ +/** @file + Provides a runtime service for communicating between DXE drivers and a= registered MMI handler +**/ +#ifndef _MM_COMMUNICATION2_H_ +#define _MM_COMMUNICATION2_H_ + +/// +/// Global ID for EFI_MM_COMUNICATION@_PROTOCOL_GUID +/// +#define EFI_MM_COMMUNICATION2_PROTOCOL_GUID \ + { 0x378daedc, 0xf06b, 0x4446, { 0x83, 0x14, 0x40, 0xab, 0x93, 0x3c= , 0x87, 0xa3 }} + + +/// +/// The forward declaration for EFI_MM_COMMUNICATION2_PROTOCOL_GUID +/// +typedef struct _EFI_MM_COMMUNICATION2_PROTOCOL EFI_MM_COMMUNICATION2_PROTO= COL; + + +/** + Communicates with a registered handler. + + Usage is identical to EFI_MM_COMMUNICATION_PROTOCOL.Communicate() exce= pt for the notes below: + - Instead of passing just the physical address via the CommBuffer para= meter, the caller must pass both the physical and the virtual addresses of = the communication buffer. + - If no virtual remapping has taken place, the physical address will b= e equal to the virtual address, and so the caller is required to pass the s= ame value for both parameters. + + @param This The EFI_MM_COMMUNICATION2_PROTOCOL instanc= e. + @param mBufferPhysical Physical address of the buffer to convey i= nto MMRAM. + @param CommBufferVirtual Virtual address of the buffer to convey in= to MMRAM. + @param CommSize The size of the data buffer being passed i= n. On exit, the + size of data being returned. Zero if the h= andler does not + wish to reply with any data. This paramete= r is optional and may be NULL. + + + @retval EFI_SUCCESS The message was successfully posted. + @retval EFI_INVALID_PARAMETER The CommBuffer** parameters do not ref= er to the same location in memory. + @retval EFI_BAD_BUFFER_SIZE The buffer is too large for the MM imp= lementation. + If this error is returned, the Message= Length field + in the CommBuffer header or the intege= r pointed by + CommSize, are updated to reflect the m= aximum payload + size the implementation can accommodat= e. + @retval EFI_ACCESS_DENIED The CommunicateBuffer parameter or Com= mSize parameter, + if not omitted, are in address range t= hat cannot be + accessed by the MM environment. +**/ + +typedef +EFI_STATUS +(EFIAPI *EFI_MM_COMMUNICATE2)( +IN CONST EFI_MM_COMMUNICATION2_PROTOCOL *This, +IN OUT VOID *CommBufferPhysical, +IN OUT VOID *CommBufferVirtual, +IN OUT UINTN *CommSize OPTIONAL +); + + +/// This protocol provides a means of communicating between drivers outside +/// of MM and MMI handlers inside of MM, in a way that hides the implement= ation +/// details regarding whether traditional or standalone MM is being used. + +typedef struct _EFI_MM_COMMUNICATION2_PROTOCOL { +EFI_MM_COMMUNICATE2 Communicate; +} EFI_MM_COMMUNICATION2_PROTOCOL; + + +#endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 6c37c2181c..c64cad75dd 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -1277,6 +1277,13 @@ ## Include/Protocol/SpiSmmNorFlash.h gEfiSpiSmmNorFlashProtocolGuid =3D { 0xaab18f19, 0xfe14, 0x4666,= { 0x86, 0x04, 0x87, 0xff, 0x6d, 0x66, 0x2c, 0x9a }} =20 + # + # Protocols defined in PI 1.7 + # + + ## Include/Protocol/MmComunication2.h + gEfiMmCommunication2ProtocolGuid =3D { 0x378daedc, 0xf06b, 0x4446,= { 0x83, 0x14, 0x40, 0xab, 0x93, 0x3c, 0x87, 0xa3 }} + # # Protocols defined in UEFI2.1/UEFI2.0/EFI1.1 # --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#58804): https://edk2.groups.io/g/devel/message/58804 Mute This Topic: https://groups.io/mt/74057699/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- From nobody Mon May 6 10:53:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58805+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58805+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588878282; cv=none; d=zohomail.com; s=zohoarc; b=I+j2qDXY3/D9AdROP30JnJsjUsDnZrFrHtSKjxi5qGAyrWqZFbTSv31LggifjIMTbY7S+bFibZqhsgImaGsYtDgfrQwRMT5wVjXty4bbxcDkTrHxMe9G+RvKQ5DVim7L0yAgeksG1bbVaZm7cUZOtjZihuJoDAzhsine9HHJvqI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588878282; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=k6cpEAgPCMpSZrDHFmAmA2O/CsSaPLMIuKm66NT7OwU=; b=cSDxWSeXmlyti8fZSIzel5JIRywC4fYOqafuvMXyZp6gtNZaft2A/JkekVaW1/Ab74fnfWeHDVsc45K5y5zsqPRHuzXT5Uj16myjXoeV/faMdFZSfsdj/sEez40yBsWVoOrSh4bcri5/FyTqgdBQ/rpanUzPMu3jAlPs4tr2ljs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58805+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588878282442652.7051749233044; Thu, 7 May 2020 12:04:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id izfQYY1788612xYO7WJRr9Aw; Thu, 07 May 2020 12:04:42 -0700 X-Received: from atlmailgw2.ami.com (atlmailgw2.ami.com []) by mx.groups.io with SMTP id smtpd.web12.1670.1588878277926233898 for ; Thu, 07 May 2020 12:04:41 -0700 X-AuditID: ac10606f-05fff70000001b62-31-5eb45bc8d566 X-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 atlmailgw2.ami.com (Symantec Messaging Gateway) with SMTP id 0B.0B.07010.8CB54BE5; Thu, 7 May 2020 15:04:40 -0400 (EDT) X-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:16 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH 4/5] MdePkg: Added header file for Delayed Dispatch PPI Date: Thu, 7 May 2020 15:03:09 -0400 Message-ID: <20200507190310.38968-5-oleksiyy@ami.com> In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsWyRiBhgu6J6C1xBs++S1u0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZrzeNYm5oEemYu2UbtYGxv+iXYycHBICJhJt +2azdjFycQgJ7GKSOPmylRnC2cwocXTWPSaQKjYBTYkDx6YwgtgiAlISUw7MBIszCxRJ3D76 mgXEFhZwl3i15TgbiM0ioCJx/+xsZhCbV8BUYtfnTSwQ2zQkpq25C9bLKWAmcfrPKbAaIaCa k2d/sULUC0qcnPmEBWK+hMTBFy+gamQl2o4/Z5/AyD8LSdksJGULGJlWMQolluTkJmbmpJcb 6SXmZuol5+duYoREV/4Oxo8fzQ8xMnEwHmKU4GBWEuHl+bExTog3JbGyKrUoP76oNCe1+BCj E9ADE5mluEEhCIySeGMDAylRGMfQxMzE3Mjc0NLE3NhYSZx30to1cUIC6cCozU5NLUgtghnC xMEp1cDIrvc4KEEm5HzG9Ie5vz+wWInP7Y+tdfklwu2nria+9Vo6/7nHVQbi8WqCl/Pu/wm5 Ltth96rtcyXzu7Vv/1jL2PL7bmfgXWlzjUlH+3rYnZLnGdH9hjYJR2tSpM9ea6k7Yptn0v0h qL/ea01M69HrukqFZb09y1baK/RteRPDyuJduWl2qBJLcUaioRZzUXEiACGiaKnDAgAA Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: EPGndSBudrFErdsGAPesRxihx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588878282; bh=Krx2cMyrKHHPat5WxnwmwoxHD2keIB6jZ1N8rsSGewk=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=gmq6qL4NkwhKESxIpsEhcv/Y6nhp3ezACuIjC79k8Rht0USROhjaHQXWnvQfg6zEeUx QJbBeV8vgdMDqyHVtXUqSYKfBaz8SBKvJnJaSy6VxgadSJr6hbDqRB4eQ5CubLdMo3puD CdXdvkI4SbqE2sDHwnZ+RZBtBJA1Vm2mro0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Robert Phelps Created new header file for the new EFI_DELAYED_DISPATCH_PPI PPI (PI 1.7 Mantis 1891) Signed-off-by: Robert Phelps Reviewed-by: Zhiguang Liu --- MdePkg/Include/Ppi/DelayedDispatch.h | 79 ++++++++++++++++++++++++++++ MdePkg/MdePkg.dec | 3 ++ 2 files changed, 82 insertions(+) create mode 100644 MdePkg/Include/Ppi/DelayedDispatch.h diff --git a/MdePkg/Include/Ppi/DelayedDispatch.h b/MdePkg/Include/Ppi/Dela= yedDispatch.h new file mode 100644 index 0000000000..4f8b11bcf6 --- /dev/null +++ b/MdePkg/Include/Ppi/DelayedDispatch.h @@ -0,0 +1,79 @@ +/** @file + Provide timed event service in PEI +**/ +#ifndef __DELAYED_DISPATCH_PPI_H__ +#define __DELAYED_DISPATCH_PPI_H__ + +/// +/// Global ID for EFI_DELAYED_DISPATCH_PPI_GUID +/// +#define EFI_DELAYED_DISPATCH_PPI_GUID \ + { \ + 0x869c711d, 0x649c, 0x44fe, { 0x8b, 0x9e, 0x2c, 0xbb, 0x29, 0x11, 0xc3= , 0xe6} } \ + } + + +/** + Delayed Dispatch function. This routine is called sometime after the re= quired + delay. Upon return, if NewDelay is 0, the function is unregistered. If= NewDelay + is not zero, this routine will be called again after the new delay perio= d. + + @param[in,out] Context Pointer to Context. Can be updated by rou= tine. + @param[out] NewDelay The new delay in us. Leave at 0 to unreg= ister callback. + +**/ + +typedef +VOID +(EFIAPI *EFI_DELAYED_DISPATCH_FUNCTION) ( + IN OUT UINT64 *Context, + OUT UINT32 *NewDelay + ); + + +/// +/// The forward declaration for EFI_DELAYED_DISPATCH_PPI +/// + +typedef struct _EFI_DELAYED_DISPATCH_PPI EFI_DELAYED_DISPATCH_PPI; + + +/** +Register a callback to be called after a minimum delay has occurred. + +This service is the single member function of the EFI_DELAYED_DISPATCH_PPI + + @param This Pointer to the EFI_DELAYED_DISPATCH_PPI instance + @param Function Function to call back + @param Context Context data + @param Delay Delay interval + + @retval EFI_SUCCESS Function successfully loaded + @retval EFI_INVALID_PARAMETER One of the Arguments is not supported + @retval EFI_OUT_OF_RESOURCES No more entries + +**/ +typedef +EFI_STATUS +(EFIAPI *EFI_DELAYED_DISPATCH_REGISTER)( + IN EFI_DELAYED_DISPATCH_PPI *This, + IN EFI_DELAYED_DISPATCH_FUNCTION Function, + IN UINT64 Context, + OUT UINT32 Delay + ); + + +/// +/// This PPI is a pointer to the Delayed Dispatch Service. +/// This service will be published by the Pei Foundation. The PEI Foundati= on +/// will use this service to relaunch a known function that requests a del= ayed +/// execution. +/// +struct _EFI_DELAYED_DISPATCH_PPI { + EFI_DELAYED_DISPATCH_REGISTER Register; +}; + + +extern EFI_GUID gEfiPeiDelayedDispatchPpiGuid; + +#endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index c64cad75dd..6ab42b4bb5 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -942,6 +942,9 @@ ## Include/Ppi/PeiCoreFvLocation.h gEfiPeiCoreFvLocationPpiGuid =3D { 0x52888eae, 0x5b10, 0x47d0, { 0xa8,= 0x7f, 0xb8, 0x22, 0xab, 0xa0, 0xca, 0xf4 }} =20 + ## Include/Ppi/DelayedDispatch.h + gEfiPeiDelayedDispatchPpiGuid =3D { 0x869c711d, 0x649c, 0x44fe, { 0x8b,= 0x9e, 0x2c, 0xbb, 0x29, 0x11, 0xc3, 0xe6 }} + [Protocols] ## Include/Protocol/Pcd.h gPcdProtocolGuid =3D { 0x11B34006, 0xD85B, 0x4D0A, { 0xA2,= 0x90, 0xD5, 0xA5, 0x71, 0x31, 0x0E, 0xF7 }} --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#58805): https://edk2.groups.io/g/devel/message/58805 Mute This Topic: https://groups.io/mt/74057700/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- From nobody Mon May 6 10:53:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58806+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58806+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588878283; cv=none; d=zohomail.com; s=zohoarc; b=Eh8Ylj+DKbAQxffel7J3k+1HYOeWiej4KySvr8PQSX1/MxnyjBL65KywdboYTkW4VqY8WDk6iUhd3jJy9wDHP0YmW4CktW65C/fjF2ccLPTp93EHn0V+OUzdR1NAb6kxHIoza0c6KTIdMKm1eJRq+Wz9Hx6YUBaATs5cTeiZbio= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588878283; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=5VPmz8AkJ1QSOu7h6QmBhUtZwHiIUeLgjOgS0y79lqY=; b=O8VnSmox8U4UbTr07wI0Rg5SWnxe6Dxx/zjtYXZNHZQ04IxP34uPSLZ7MRoVXU7CCJMJQnqEVk0MGVjkTuO+jQaEhObXksVwbtSq2p9BWkq3mwpin6efWkrtfGWopWhHo17twIV6eFF4whVpfSyyEFRmKm9TWySUkQlCPidOcCE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58806+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588878283782746.7018923834039; Thu, 7 May 2020 12:04:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id rGtCYY1788612xzNbzKIakUH; Thu, 07 May 2020 12:04:43 -0700 X-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 X-AuditID: ac1060b2-0e1ff700000018d4-a1-5eb45bc96864 X-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) X-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: [edk2-devel] [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> In-Reply-To: <20200507190310.38968-1-oleksiyy@ami.com> References: <20200507190310.38968-1-oleksiyy@ami.com> MIME-Version: 1.0 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== Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: rQXMSOUDnV9t7pNWCqYijjyox1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588878283; bh=IZjbkvr+LKplDtN8+cZXGufWQrm+dSM68aK29GuN+sg=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Unp3oTs4EkJD+oP4dt0MRdvB4aZCDIeHo1HvRfaicsRpr6duk34ubE6FPda17fMIOo0 zRTYIYKSYLK9GQ2EY5PyBxCzAD7kzErVrkZWHI0U3wqods9ABF0wkTNbwAQtLcYUvI+xo B3OFtwZufcTXsfFTLJh8fA2ecCDHTBeU8Oc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Zhiguang Liu --- 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} \ } =20 +/// +/// Value used in the NumberProcessors parameter of the GetProcessorInfo f= unction +/// +#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; =20 +/// +/// 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 pr= ocessor. +/// +UINT32 Tile; +/// +/// Die Zero-based physical die number within tile of the proce= ssor. +/// +UINT32 Die; +/// +/// Core Zero-based physical core number within die of the proc= essor. +/// +UINT32 Core; +/// +/// Thread Zero-based logical thread number within core of the pr= ocessor. +/// +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; =20 /** --=20 2.24.1.windows.2 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry 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 desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#58806): https://edk2.groups.io/g/devel/message/58806 Mute This Topic: https://groups.io/mt/74057701/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-