public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Sachin Ganesh via groups.io" <sachinganesh=ami.com@groups.io>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "gaoliming@byosoft.com.cn" <gaoliming@byosoft.com.cn>,
	"zhiguang.liu@intel.com" <zhiguang.liu@intel.com>,
	"michael.d.kinney@intel.com" <michael.d.kinney@intel.com>,
	"ardb+tianocore@kernel.org" <ardb+tianocore@kernel.org>,
	"kraxel@redhat.com" <kraxel@redhat.com>,
	"jiewen.yao@intel.com" <jiewen.yao@intel.com>,
	"erdemaktas@google.com" <erdemaktas@google.com>,
	"min.m.xu@intel.com" <min.m.xu@intel.com>,
	"thomas.lendacky@amd.com" <thomas.lendacky@amd.com>,
	Felix Polyudov <Felixp@ami.com>, Dhanaraj V <vdhanaraj@ami.com>,
	Sachin Ganesh <sachinganesh@ami.com>
Subject: [edk2-devel] [PATCH 3/7] MdePkg: Define Unaccepted Memory Type
Date: Fri, 19 Apr 2024 21:46:19 +0000	[thread overview]
Message-ID: <bcd7e9446b73658009164de36ed011a81e782c95.1713559868.git.sachinganesh@ami.com> (raw)
In-Reply-To: <cover.1713559868.git.sachinganesh@ami.com>

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 <felixp@ami.com>
Cc: Dhanaraj V <vdhanaraj@ami.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Sachin Ganesh <sachinganesh@ami.com>
---
 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 accepted

-  // /// 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 accepted

+  /// by a corresponding call to the underlying isolation architecture.

+  ///

+  EfiGcdMemoryTypeUnaccepted,

   EfiGcdMemoryTypeMaximum = 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_TYPE

-// to 8. After BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is officially published

-// 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 proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.


-=-=-=-=-=-=-=-=-=-=-=-
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]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2024-04-20  2:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19 21:46 [edk2-devel] [PATCH 0/7] General Updates based on UEFI 2.10 and PI 1.8 Specification Sachin Ganesh via groups.io
2024-04-19 21:46 ` [edk2-devel] [PATCH 1/7] MdePkg: Add definition for NVMe Over Fabric Device Path Sachin Ganesh via groups.io
2024-04-19 21:46 ` [edk2-devel] [PATCH 2/7] MdePkg: Add new Resource Attributes defined in PI 1.8 Spec Sachin Ganesh via groups.io
2024-04-19 21:46 ` Sachin Ganesh via groups.io [this message]
2024-04-19 21:46 ` [edk2-devel] [PATCH 4/7] MdeModulePkg: Use newly defined Unaccepted Memory Type Sachin Ganesh via groups.io
2024-04-19 21:46 ` [edk2-devel] [PATCH 5/7] MdePkg: Update Delayed Dispatch PPI as per PI 1.8 Spec Sachin Ganesh via groups.io
2024-04-19 21:46 ` [edk2-devel] [PATCH 6/7] MdePkg: Update to PI 1.8 Revision Sachin Ganesh via groups.io
2024-04-19 21:46 ` [edk2-devel] [PATCH 7/7] OvmfPkg: Use newly defined Unaccepted Memory Type Sachin Ganesh via groups.io
2024-04-22 19:54   ` Lendacky, Thomas via groups.io
2024-04-21  2:28 ` [edk2-devel] [PATCH 0/7] General Updates based on UEFI 2.10 and PI 1.8 Specification Yao, Jiewen
2024-04-23 14:49 ` [edk2-devel] 回复: " gaoliming via groups.io
2024-04-23 17:27   ` Felix Polyudov via groups.io
2024-04-25  9:56     ` Sachin Ganesh via groups.io
2024-04-26  9:22       ` [edk2-devel] 回复: [EXTERNAL] " gaoliming via groups.io
2024-04-30 22:35         ` [edk2-devel] " Felix Polyudov via groups.io
2024-05-06  2:43           ` [edk2-devel] 回复: [EXTERNAL] " gaoliming via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bcd7e9446b73658009164de36ed011a81e782c95.1713559868.git.sachinganesh@ami.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox