From nobody Sun May 5 20:51:07 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+59191+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+59191+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228693; cv=none; d=zohomail.com; s=zohoarc; b=Qfp7pM9Lqjhu61m5laB/XklXCu9lX0UdXdOr2DdG92au7pdkMFtD4/N0BRaO5arUnHc+s9zExNq3p8cNanTev8jQW+HagQQlL9eSJLClyaZFZB0GLcCtw7d7b0cLHE8n8TaEtVtHDKOeGWncELHHDrFtCYXc/4Ery6861E5Ltg8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228693; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=3BTycZQsfa7DBw/FGahTrvaPl6HgcyekVDdrlRphcRc=; b=hbVat2DKDhWgBjjSl8qFyeEdIkLlU3n9AA+5Rdp+3gKniTqsgxtDgssvnAJ7uaZdRwBGjid+6C7NyKIcSczg7XO0azx5SkEka78KZcCF2eOzG+bwsJe+13L3y+xyg8BKcwGzl/chYcB9zPzQSGQJK8WNv9AvtFIQIq+3p3zikns= 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+59191+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1589228693494303.335835053629; Mon, 11 May 2020 13:24:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id DJbzYY1788612xS0HMZBDodI; Mon, 11 May 2020 13:24:53 -0700 X-Received: from atlmailgw2.ami.com (atlmailgw2.ami.com [63.147.10.42]) by mx.groups.io with SMTP id smtpd.web12.1022.1589228692562159134 for ; Mon, 11 May 2020 13:24:52 -0700 X-AuditID: ac10606f-05fff70000001b62-bb-5eb9b49322c4 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 29.50.07010.394B9BE5; Mon, 11 May 2020 16:24:51 -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; Mon, 11 May 2020 16:24:14 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 1/5] MdePkg: New Status Codes Date: Mon, 11 May 2020 16:24:09 -0400 Message-ID: <20200511202413.18140-2-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWyRiBhgu7kLTvjDCY1qFu0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZty8dZql4Jh8xZGWpcwNjHckuxg5OSQETCTe vvjM1sXIxSEksItJ4vX9F8wQzhZGiXnvl7GDVLEJaEocODaFEcQWEZCSmHJgJhOIzSxQJHH7 6GsWEFtYwEBixpuZbCA2i4CqxPt/H4BsDg5eAVOJxj9ZEMs0JKatuQvWyilgJrF70RtGkBIh oJLlP8JAwrwCghInZz5hgZguIXHwBcg5nEAlshJtx5+zT2Dkn4WkbBaSsgWMTKsYhRJLcnIT M3PSy430EnMz9ZLzczcxQiIrfwfjx4/mhxiZOBgPMUpwMCuJ8LZk7owT4k1JrKxKLcqPLyrN SS0+xOgEdP5EZiluUPgBIyTe2MBAShTGMTQxMzE3Mje0NDE3NlYS5520dk2ckEA6MGKzU1ML UotghjBxcEo1MCYGGk4V27rvfd6b4zp395tYbn/jF7Guwso2kk3sQP7LuT//LbO+1SHjav/m E1MDi/POjPzDiuatZ6xsipUXqe1U+aW72u795oRMY/dyTuXL62b9ELkuIr4lfZ/w7iVritWs z14ra6oV2ZHqM/X1n2dRUx99zdaZ1NxosWHXTveJ70xKNPnPdSuxFGckGmoxFxUnAgCEUjUG wQIAAA== 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: UysVjtej8PYhunz2FfxFxOrgx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228693; bh=YvVq8iBFHZ/qnLfB56gRPXfnop6ZUZfSZqZqYglK+qw=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=Abj0hJVvjnEegbpRuSKrGtr82j0XwzCLWmUI9J28lCq5LZNO665Hg7SYpZkTnZf0FLY g4VduPjjxv79icTMTaIX1Vbn30qYFQ+YUUjQpMwIYtZXcy2eGYigb2nx/quvmzxssBYEt tY+olvwMUlG2d8H8orVvQRiH/+sXQ7AB96w= 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 Reviewed-by: Zhiguang Liu Reviewed-by: Liming Gao for the full patch set. Reviewed-by: Liming Gao for the full patch set.=20 --- 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..9f6c2abaa7 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_S3_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 (#59191): https://edk2.groups.io/g/devel/message/59191 Mute This Topic: https://groups.io/mt/74145020/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 Sun May 5 20:51:07 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+59192+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+59192+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228694; cv=none; d=zohomail.com; s=zohoarc; b=hOjCcE8UUHboxNR3c9cmVArjpb4OfOK8DYUGz07+A2PxziNQcxsc6fvz7z3DMrxmb0jIAqEBoX/CxklzVkpMbIb4z55ZP3ffUwbc4IE35i7q95iAgv7JbcfSBZKx4XxljxnctYqRQ5iCpSU8ep7RJM3xVgEpCnW6W9wtTPf7aj4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228694; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=zeclfu+TgGOK9nZbMaofb/eaXvm9k6ZKhJPZXYi0JBw=; b=I0Flzf16ZCb7KwxiYdTlM72aGTDVcg8uyPr3Cn/ZIKjauECnaP4cNmANb4dW3f9X8MQJo8brMDoPE52+rjpV3sHnoiQV1cyVGd/qUGLTZIBWfd0O4wA/YkIRvLR96pEJo66wiqzNkJzUfakABbqKklEbrnMwwWBtkohJbHs23f8= 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+59192+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1589228694363850.8609489263828; Mon, 11 May 2020 13:24:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id k921YY1788612xh0t5XSeKeI; Mon, 11 May 2020 13:24:54 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web11.990.1589228691539924417 for ; Mon, 11 May 2020 13:24:53 -0700 X-AuditID: ac1060b2-0f7ff700000018d4-91-5eb9b494aa9f 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 17.31.06356.594B9BE5; Mon, 11 May 2020 16:24:53 -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; Mon, 11 May 2020 16:24:16 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 2/5] MdePkg: Updates to PI 1.7 Revision numbers for Date: Mon, 11 May 2020 16:24:10 -0400 Message-ID: <20200511202413.18140-3-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWyRiBhgu7ULTvjDG6u5LNonzCbzWLFvQ3s Fh0d/5gcmD22f7/A6LF4z0umAKaoBkabxLy8/JLEklSFlNTiZFulgKLMssTkSiWFzBRbJUMl hYKcxOTU3NS8ElulxIKC1LwUJTsuBQxgA1SWmaeQmpecn5KZl26r5Bnsr2thYWqpa6hkF5KR qpCZl5ZflJtYkpmfp5Ccn1cCVJ2aAhRVSOjmzFjfcYS9YA1/xd8zn5kbGF/ydDFyckgImEgs 6//M1sXIxSEksItJ4sHyt8wQzhZGifP7V7CCVLEJaEocODaFEcQWEZCSmHJgJhOIzSxQJHH7 6GsWEFtYwE3i8YNzbCA2i4CqxIY57WC9vAKmEpd+v2OB2KYhMW3NXbBeTgEzid2L3gDN5ABa Ziqx/EcYRLmgxMmZT1ggxktIHHzxghnEFhKQlWg7/px9AiP/LCRls5CULWBkWsUolFiSk5uY mZNebqiXmJupl5yfu4kRElubdjC2XDQ/xMjEwXiIUYKDWUmEtyVzZ5wQb0piZVVqUX58UWlO avEhRieg+ycyS3GDAhAYI/HGBgZSojCOoYmZibmRuaGlibmxsZI47+S1a+KEBNKBMZudmlqQ WgQzhImDU6qBcVaFcG22eJD70gmbDOJqnzXH/3/AULHzOXf9eoEkhRf70qQmP7u1Z0q5aWLL PT2VZ7F+22tfPdpuf/1C0s4TsdzFEoUdbOrPt704K/LiZNukbWel+J7GZdbULGnftEuhe62H 1MWL5ZMb5zjv2/OwbeeqK4c2vHXl2ybrPP/Uy3Omdo7+etPa85VYijMSDbWYi4oTAU4Nfb7C AgAA 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: uk70tEOeVqFMS19yewSkp8Qax1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228694; bh=8pMygcLPmxfbqskZ0QJdK+Koj7ovONB8ae+jPow3+U8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=CKtbgF5FWRcDKvaZTQ1rGlVFfwr6nwEbVLJ4FpNYuBTWZcPi6ybWH79Vp3Q/YorcsAO X47XEnkBX+XVrI0IT+IZ1U9RA9mYLWveErCBVRtiq9QcDgHsSLjsoKCImxmHY8YBi0c2F jA/2YIamJ1Cc3qYPdY9LQwKDEf9Kn18ZAn0= 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 Reviewed-by: Zhiguang Liu Reviewed-by: Liming Gao for the full patch set. Reviewed-by: Liming Gao for the full patch set.=20 --- 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 (#59192): https://edk2.groups.io/g/devel/message/59192 Mute This Topic: https://groups.io/mt/74145021/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 Sun May 5 20:51:07 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+59193+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+59193+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228695; cv=none; d=zohomail.com; s=zohoarc; b=Kq7jQjdkPeZ8KEX4kvye5qco5Vo4Cam78C6z8zwOXNxxAEWri4sho860r9sUD11Nzwf7Cja+hEmV4wgOw4k06aLf0GzjKuWBr99O25di2FqHckEgglPyyBfai2eUs9eOsUzUIxT7VZPqtalZK3ZYSAtd1hp0DGKTsppIC4Ry/c8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228695; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=PYkt5qDQX4pFXas+tFtcYEzLHNWml59L3RCLuwmFGOQ=; b=XnQbv/narmZ7THp8ivWu5SQm+98lhHrwRRovhd0EEf3oh6YxtWH1R4Kvj01GuvNddxAuvf8pwVhQK6T+XHmZ4nyhJ51qTieyC6ox2m53nIX6Q/j0mWTBX7OjR1w1QYCdE9SfVY+v+tMkFMy9q1Av6B2rIYRcN62yVKKf4cHF9Kg= 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+59193+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 158922869547422.455263871919556; Mon, 11 May 2020 13:24:55 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id XFHvYY1788612xFxbrKImzRl; Mon, 11 May 2020 13:24:55 -0700 X-Received: from atlmailgw2.ami.com (atlmailgw2.ami.com []) by mx.groups.io with SMTP id smtpd.web12.1022.1589228692562159134 for ; Mon, 11 May 2020 13:24:54 -0700 X-AuditID: ac10606f-05fff70000001b62-bf-5eb9b496f3e1 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 B9.50.07010.694B9BE5; Mon, 11 May 2020 16:24:54 -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; Mon, 11 May 2020 16:24:17 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 3/5] MdePkg: EFI_MM_COMUNICATION2_PROTOCOL Date: Mon, 11 May 2020 16:24:11 -0400 Message-ID: <20200511202413.18140-4-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsWyRiBhgu60LTvjDGb/EbRonzCbzWLFvQ3s Fh0d/5gcmD22f7/A6LF4z0umAKaoBkabxLy8/JLEklSFlNTiZFulgKLMssTkSiWFzBRbJUMl hYKcxOTU3NS8ElulxIKC1LwUJTsuBQxgA1SWmaeQmpecn5KZl26r5Bnsr2thYWqpa6hkF5KR qpCZl5ZflJtYkpmfp5Ccn1cCVJ2aAhRVSOjmzNi00LTgpWrFiaVdrA2Ms2W6GDk5JARMJI79 2sUIYgsJ7GKSWHbFv4uRC8jewigxZcUMsASbgKbEgWNTwGwRASmJKQdmMoHYzAJFErePvmYB sYUFbCW+bPvKCmKzCKhKLLk7DayGV8BU4urqVawQyzQkpq25CxbnFDCT2L3oDdBMDqBlphLL f4RBlAtKnJz5hAVivITEwRcvmCFuk5VoO/6cfQIj/ywkZbOQlC1gZFrFKJRYkpObmJmTXm6k l5ibqZecn7uJERJX+TsYP340P8TIxMF4iFGCg1lJhLclc2ecEG9KYmVValF+fFFpTmrxIUYn oPsnMktxg4IPGB/xxgYGUqIwjqGJmYm5kbmhpYm5sbGSOO+ktWvihATSgfGanZpakFoEM4SJ g1OqgXH9VKfdOYLl7U1saSLd82aZSF9jEt/Qcdxck3G6I3PEQY2Ar1YltVdz151xXmB0dO7k xSy9FlXv1m8XtLx+6//Sp0WfZ3ZOvnNlz2yjBgvbi00/HrrqfHZ5FfRi6VeNMBv7GYq8bbXq bz8VF2cvnfmvymhm3fKNVxpZ2WbI++5nDtQ7NHGCsqcSS3FGoqEWc1FxIgAq2XpAwAIAAA== 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: tEbE3rYYrFjPAHeTQgCKkJcQx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228695; bh=MpJs0f/ZNaXG+TLR2kRPT3ExLootFfxuNVnRm0u+iZI=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=mHBHWEQ1z2qoI6d1aVmlT4zu+NL3qeIyxjEeKW/MqpjcaM594RZozqspfDnDS2slzSk +G46IW19X2hWQbzHAMcb8Ifp1DDAbRezawC03faFyTLBD2hazWRL5jYzumqfqg1ImEJRd kU2scBLGh6vC3Q7PPzzx9Ok73BeX6rhtpzo= 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 Reviewed-by: Zhiguang Liu Reviewed-by: Liming Gao for the full patch set. Reviewed-by: Liming Gao for the full patch set.=20 --- MdePkg/Include/Protocol/MmCommunication2.h | 72 ++++++++++++++++++++++ MdePkg/MdePkg.dec | 7 +++ 2 files changed, 79 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..2d1f44f309 --- /dev/null +++ b/MdePkg/Include/Protocol/MmCommunication2.h @@ -0,0 +1,72 @@ +/** @file + EFI MM Communication Protocol 2 as defined in the PI 1.7 errata A spec= ification. + + Provides a runtime service for communicating between DXE drivers and a= registered MMI handler + +Copyright (c) 2020, American Megatrends International LLC. All rights rese= rved. +SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#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 CommBufferPhysical 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 0b9c4bc40a..2591b8e135 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -1280,6 +1280,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 (#59193): https://edk2.groups.io/g/devel/message/59193 Mute This Topic: https://groups.io/mt/74145024/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 Sun May 5 20:51:07 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+59194+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+59194+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228696; cv=none; d=zohomail.com; s=zohoarc; b=Ri/ZNceCmBLKE1Q14gz/u89AZbhYgmTWQ6O1UsWba/HdUkrsPDcpUbrX68C5ksMpibINpwOCzHHC8GjrFkklonBvR6UsoaZel5/nFqqqm//FA1/8VcsBYaIPYMfBGxXtM8fc6MPhd0ZODPQS4O3pmNUNl+KEspGTSeCBf/iH3x4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228696; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=PYHblxhFfb2qo4FvRHxmtPwF1BZzczxt4YLdtRFaokQ=; b=clVe94BP6Iis4TrDFxVuDRihmjfdTP5+AQVLfCu2SyxhB8yeQ7mryhMF10GjJO4oAhlKtMP1zeu8CVyZZJ6ZcSNwHH0xT0qZmsBRbjwJqAbzyZnjwl/B3TemwqzqoXN2mAIC/oDOFLJkE7o+7iqhsMh13FlX2VCzQq0riZQm6g0= 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+59194+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1589228696772456.19795375962224; Mon, 11 May 2020 13:24:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4MVbYY1788612xQ4i16QLQda; Mon, 11 May 2020 13:24:56 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web11.990.1589228691539924417 for ; Mon, 11 May 2020 13:24:56 -0700 X-AuditID: ac1060b2-0e1ff700000018d4-96-5eb9b4971dc7 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 B7.31.06356.794B9BE5; Mon, 11 May 2020 16:24:55 -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; Mon, 11 May 2020 16:24:18 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 4/5] MdePkg: Added header file for Delayed Dispatch PPI Date: Mon, 11 May 2020 16:24:12 -0400 Message-ID: <20200511202413.18140-5-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWyRiBhgu70LTvjDOb0qlq0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZvye+IqxYLpcxZLpbg2MN8W7GDk5JARMJP49 3cvUxcjFISSwi0nidvtCFghnC6PEj9XLmUCq2AQ0JQ4cm8IIYosISElMOTATLM4sUCRx++hr FhBbWMBL4u/DRawgNouAqsS3811gcV4BU4k3uy4yQmzTkJi25i5YL6eAmcTuRW+A4hxAy0wl lv8IgygXlDg58wkLxHgJiYMvXjCD2EICshJtx5+zT2Dkn4WkbBaSsgWMTKsYhRJLcnITM3PS yw31EnMz9ZLzczcxQiJr0w7GlovmhxiZOBgPMUpwMCuJ8LZk7owT4k1JrKxKLcqPLyrNSS0+ xOgEdP9EZiluUPgBIyTe2MBAShTGMTQxMzE3Mje0NDE3NlYS5528dk2ckEA6MGKzU1MLUotg hjBxcEo1MLJoes3nqprwu3m183LtdDal5Xlpt6qyzBvWz7XYxdT798OuEPetWXP0967qz8z5 IZmV2bxwkf2q1+dPdr9M+al3i+lA0vE5URmLbnErVHKuFbDX+HAwYmGkTddzFql4DZ0T+UE7 63QYGjKm5sy5te5pwLNzXElLp6TwhfeFRs88FC28ZYrnHyWW4oxEQy3mouJEAO08qNLBAgAA 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: Xkenm2y38E6Tm7k4IszeTVKIx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228696; bh=FvfXkk2DZg/Pv1aPzpCITeb5ua8vAZAVyee9ZzX4qJM=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=lJKWXWFJaty+sruOmr3p+DKA2BYotvt27ckkvgIzfAlokfnvCxSydnu1WGcOneN8rk5 rrIMZZcCMbLAb5rbhia++vhloRUpBBk7q5lvKnCKSH7GB8TVr4XmP9tJ1b/EiTusrt+eq xsqfIIvuWrRC2KBfYQA92Lr0G4RWEeGX308= 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 Reviewed-by: Liming Gao for the full patch set. Reviewed-by: Liming Gao for the full patch set.=20 --- MdePkg/Include/Ppi/DelayedDispatch.h | 85 ++++++++++++++++++++++++++++ MdePkg/MdePkg.dec | 3 + 2 files changed, 88 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..195c5a36a4 --- /dev/null +++ b/MdePkg/Include/Ppi/DelayedDispatch.h @@ -0,0 +1,85 @@ +/** @file + EFI Delayed Dispatch PPI as defined in the PI 1.7 Specification + + Provide timed event service in PEI + + Copyright (c) 2020, American Megatrends International LLC. All rights = reserved. + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#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 2591b8e135..4c05a46a3c 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -945,6 +945,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 (#59194): https://edk2.groups.io/g/devel/message/59194 Mute This Topic: https://groups.io/mt/74145025/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 Sun May 5 20:51:07 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+59195+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+59195+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1589228697; cv=none; d=zohomail.com; s=zohoarc; b=NL/eqZc3MDDXlhNYXZ9Hdttn0VpJDBW5av6aCtnr5KxhQAgau4y4U4ok0ziV1C0tmRYF5ZSOzKTDHcN0MoznxGB7nKGcuW/6P2x0h6Loe3TmVeeli0alGTqiwSigL6ZwIu1ujJ/5OcJ+6ua1ZdcUYaev+tvWjjOXrYbRdCsAIj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589228697; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=A7Oe1LNbwGNyo8E+edaBdz+LqUw0FhPLx025XQWEYyI=; b=CtK+df+rffTVLbCHtJg0EeDXHWN6a7VCSetYvUkly7lCMe6O4Xj+x8yUYd1WxFFEyxeQMaIt5ksDY/sM7qOo/vKvXezMlID5tw8gu9PErO6WKDAekhPb73ukEUb4vEAucqGcBybmKW7rtHwrsvKKfuD0Q2YdyZYTUyv315apAN4= 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+59195+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 158922869780128.21140558447587; Mon, 11 May 2020 13:24:57 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2b06YY1788612xcQyUaJrWOR; Mon, 11 May 2020 13:24:57 -0700 X-Received: from atlmailgw2.ami.com (atlmailgw2.ami.com []) by mx.groups.io with SMTP id smtpd.web12.1022.1589228692562159134 for ; Mon, 11 May 2020 13:24:57 -0700 X-AuditID: ac10606f-05fff70000001b62-c1-5eb9b4981d40 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 2A.50.07010.894B9BE5; Mon, 11 May 2020 16:24:56 -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; Mon, 11 May 2020 16:24:19 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , Subject: [edk2-devel] [PATCH v2 5/5] MdePkg: Update structures for MpServices Protocol Date: Mon, 11 May 2020 16:24:13 -0400 Message-ID: <20200511202413.18140-6-oleksiyy@ami.com> In-Reply-To: <20200511202413.18140-1-oleksiyy@ami.com> References: <20200511202413.18140-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWyRiBhgu6MLTvjDC5/ULdonzCbzWLFvQ3s Fh0d/5gcmD22f7/A6LF4z0umAKaoBkabxLy8/JLEklSFlNTiZFulgKLMssTkSiWFzBRbJUMl hYKcxOTU3NS8ElulxIKC1LwUJTsuBQxgA1SWmaeQmpecn5KZl26r5Bnsr2thYWqpa6hkF5KR qpCZl5ZflJtYkpmfp5Ccn1cCVJ2aAhRVSOjmzGhfdpGx4KJYxev9M9kbGBcJdTFyckgImEjc 717M2sXIxSEksItJ4tjhHWwQzhZGiU9/OphBqtgENCUOHJvCCGKLCEhJTDkwkwnEZhYokrh9 9DULiC0s4Cnx5/hXVhCbRUBV4vXhnWA1vAKmEvfXnmOC2KYhMW3NXTCbU8BMYveiN0AzOYCW mUos/xEGUS4ocXLmExaI8RISB1+8ADtBSEBWou34c/YJjPyzkJTNQlK2gJFpFaNQYklObmJm Tnq5kV5ibqZecn7uJkZIbOXvYPz40fwQIxMH4yFGCQ5mJRHelsydcUK8KYmVValF+fFFpTmp xYcYnYDun8gsxQ0KQGCMxBsbGEiJwjiGJmYm5kbmhpYm5sbGSuK8k9auiRMSSAfGbHZqakFq EcwQJg5OqQZGi7P6u4R/zzrntEU5ffM1xYWa97uTbdMTPlyLMJpxvfcdK88V3r/6Ln8U3DWf XIwwuydsGW9ZVu1yZbqz7GPViACRaXlOy+bOZTLJWLhCsFdC807Q91AOkcfdW7KZLdMZeORD f/J7RNf/kpirlDv9UODsrG9tjauswxpXSs48Knf7l8UkOUYlluKMREMt5qLiRAD6Pq+ywgIA AA== 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: Vky4g4vR0XUVdXinP3QStvnNx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1589228697; bh=QoIWazN5fxPl2vwRMljceGH8sqrhMyq9Goo6x7YtRG4=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=YLiAOZsSVEc8ssWxcE8fg8lEoS5Y83X7Jon3lyDf2aMAB83/UF1Bhuxz31WoTiR+9z9 LFuPhyTseoi3MD22nlLBRNYiizrpJpmcj8OgkfaTViwMwdbHTi5ATUr7AAH0SWTo5JL+g O8nFSaX+VzvMlzFD0jSjsrf0Rgv9Z095w60= 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: Ray Ni Reviewed-by: Liming Gao for the full patch set. Reviewed-by: Liming Gao for the full patch set.=20 --- 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..9445c5567f 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; + + +typedef union { + /// 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 mo= dule, + /// the physical die number within the tile, the physical core number wi= thin + /// package, and logical thread number within core. + 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 (#59195): https://edk2.groups.io/g/devel/message/59195 Mute This Topic: https://groups.io/mt/74145026/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-