From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 10C42940EFA for ; Sat, 20 Apr 2024 02:31:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=QBeM5aiMYHGDvjEgddrKk1HCyrt1Rbaneriqh9rxl7A=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1713580317; v=1; b=wdKjddoP02GrPPU+RvL5mT6OnG1BZMzUhr9YpAapUV9j1evHsqph9Jkf5cQ6x1NKDZJOyAds JPj101sb6HxPJg/A4HqU2uncUOGelK8F3t2NSt+2puG0cKaNMtKTfpg97mIqt9+AbL75v8wDQHs yKcWBba0J4xAMjLviJDq9QceSlnjQ+t83cd3oyW5IkBrBkn8ii0u6DaxVS8o4i4j0BtR/9ol+15 Rgm/07+V8z5FQi2GTx98hqnpwxNWPiPiCyPgQ9F82sxJDIJ1b3DgAT8JfZKEwVnCtJ0p8yA8OQg zK4G6astsXjJu8ukuWjT6yHVa2jcrfifWJUaGrdbrImZA== X-Received: by 127.0.0.2 with SMTP id e9D9YY7687511xiB6HhTRG9z; Fri, 19 Apr 2024 19:31:57 -0700 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.121]) by mx.groups.io with SMTP id smtpd.web10.203.1713563181901778573 for ; Fri, 19 Apr 2024 14:46:22 -0700 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com (2603:10b6:208:3bc::16) by SJ1PR10MB5977.namprd10.prod.outlook.com (2603:10b6:a03:488::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.43; Fri, 19 Apr 2024 21:46:19 +0000 X-Received: from BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::78e5:e1a1:9770:f20a]) by BL3PR10MB6161.namprd10.prod.outlook.com ([fe80::78e5:e1a1:9770:f20a%5]) with mapi id 15.20.7472.042; Fri, 19 Apr 2024 21:46:19 +0000 From: "Sachin Ganesh via groups.io" To: "devel@edk2.groups.io" CC: "gaoliming@byosoft.com.cn" , "zhiguang.liu@intel.com" , "michael.d.kinney@intel.com" , "ardb+tianocore@kernel.org" , "kraxel@redhat.com" , "jiewen.yao@intel.com" , "erdemaktas@google.com" , "min.m.xu@intel.com" , "thomas.lendacky@amd.com" , Felix Polyudov , Dhanaraj V , Sachin Ganesh Subject: [edk2-devel] [PATCH 3/7] MdePkg: Define Unaccepted Memory Type Thread-Topic: [PATCH 3/7] MdePkg: Define Unaccepted Memory Type Thread-Index: AQHakqMD1mhpNCY4UEa3n5aNaYDFJA== Date: Fri, 19 Apr 2024 21:46:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL3PR10MB6161:EE_|SJ1PR10MB5977:EE_ x-ms-office365-filtering-correlation-id: b2bc97c6-71d3-476c-a633-08dc60ba25fc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: +fRIO1m2EHkfoXg4rcdRN9uHOirKURZKfTVtYHVuvGiwK5qcZ0PMDKGWsVncS5s90lAwbgnWeU2d3xmdyoyHFG5iyCGBgpv9q0Y0viX4cuR1mXZQUiVbbPzZtU3MjP6QGlE1N5r1OIKjzz9sP3060OyAV/JrxNM2VOavJ9o7VI86T3g/fq3ZVH9o7ODIeHj2UZpVcEthqNMffJ5YMjeEhwjgbNlVNTC8oZXlZdWzR5KtOxXCTvAkW90euL5iczoSzFMMR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-8859-1?Q?9O/fEw2mE5da87WT7j5XpaTmMJmxLkdydTj1pbGZ6HHzD5nqWPitPqN2RJ?= =?iso-8859-1?Q?HlxpLvPgF26zLwTYa1CXqVYqdsFXyOSvXBDqK+a1hheoaMS5xV8HLVW+ow?= =?iso-8859-1?Q?G3oD1AwdnM7ff12NH8nJ35H/fLd02jiRsqby5ZkuLP7OiyT6KqUO3PuT85?= =?iso-8859-1?Q?K6ufGrS0OUDRi8UPFMA8FtdtLs8CQhs8m98kSgc/Odu2swujYQqS9Qd7dg?= =?iso-8859-1?Q?Dnhl6xydqfFK9Dww/2gnhdq7tkwe1ljELAgB0MN3J98LTzM5Acj3JjSVH7?= =?iso-8859-1?Q?jOU4gBw2Oi4rIYTbkbRq5NcoP6K/nep3/m?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL3PR10MB6161.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2bc97c6-71d3-476c-a633-08dc60ba25fc X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Apr 2024 21:46:19.7178 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bE6w9VPIFKuUseu1RGSscVMwA5o8U4vdJhKW3Mv6kV6ORxk0CIucZnv31+bu5NorP9BcKJFZ4iPpCJsR8M9oNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR10MB5977 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Fri, 19 Apr 2024 19:31:56 -0700 Resent-From: sachinganesh@ami.com Reply-To: devel@edk2.groups.io,sachinganesh@ami.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: fg1qmamxuma7MsPeOKirZVwrx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=wdKjddoP; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io EFI_RESOURCE_MEMORY_UNACCEPTED has been officially defined in the PI 1.8 specification. So all temporary solutions have been replaced with the actual definition. Cc: Felix Polyudov Cc: Dhanaraj V Cc: Liming Gao Signed-off-by: Sachin Ganesh --- MdePkg/Include/Pi/PiDxeCis.h | 13 +++++-------- MdePkg/Include/Pi/PiHob.h | 12 ++---------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/MdePkg/Include/Pi/PiDxeCis.h b/MdePkg/Include/Pi/PiDxeCis.h index bb7fb2c38a..04410c5a1a 100644 --- a/MdePkg/Include/Pi/PiDxeCis.h +++ b/MdePkg/Include/Pi/PiDxeCis.h @@ -56,14 +56,11 @@ typedef enum { /// system. If all memory has the same reliability, then this bit is not= used. /// EfiGcdMemoryTypeMoreReliable, - // /// - // /// A memory region that describes system memory that has not been ac= cepted - // /// by a corresponding call to the underlying isolation architecture. - // /// - // /// Please be noted: - // /// EfiGcdMemoryTypeUnaccepted is defined in PrePiDxeCis.h because it= has not been - // /// defined in PI spec. - // EfiGcdMemoryTypeUnaccepted, + /// + /// A memory region that describes system memory that has not been accep= ted + /// by a corresponding call to the underlying isolation architecture. + /// + EfiGcdMemoryTypeUnaccepted, EfiGcdMemoryTypeMaximum =3D 7 } EFI_GCD_MEMORY_TYPE; diff --git a/MdePkg/Include/Pi/PiHob.h b/MdePkg/Include/Pi/PiHob.h index f730520e8c..9e49421afa 100644 --- a/MdePkg/Include/Pi/PiHob.h +++ b/MdePkg/Include/Pi/PiHob.h @@ -232,16 +232,8 @@ typedef UINT32 EFI_RESOURCE_TYPE; #define EFI_RESOURCE_MEMORY_MAPPED_IO_PORT 0x00000004 #define EFI_RESOURCE_MEMORY_RESERVED 0x00000005 #define EFI_RESOURCE_IO_RESERVED 0x00000006 -// -// BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory. -// But this defitinion has not been officially in the PI spec. Base -// on the code-first we define BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED at -// MdeModulePkg/Include/Pi/PrePiHob.h and update EFI_RESOURCE_MAX_MEMORY_T= YPE -// to 8. After BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is officially publish= ed -// in PI spec, we will re-visit here. -// -// #define BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED 0x00000007 -#define EFI_RESOURCE_MAX_MEMORY_TYPE 0x00000008 +#define EFI_RESOURCE_MEMORY_UNACCEPTED 0x00000007 +#define EFI_RESOURCE_MAX_MEMORY_TYPE 0x00000008 /// /// A type of recount attribute type. -- 2.24.1.windows.2 -The information contained in this message may be confidential and propriet= ary 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 telephone= at 770-246-8600, and then delete or destroy all copies of the transmission= . -=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 (#118043): https://edk2.groups.io/g/devel/message/118043 Mute This Topic: https://groups.io/mt/105630622/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-