[edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h

Min Xu posted 14 patches 3 years, 5 months ago
There is a newer version of this series
[edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Min Xu 3 years, 5 months ago
From: Min M Xu <min.m.xu@intel.com>

RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3937

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 EFI_RESOURCE_MEMORY_UNACCEPTED at
MdeModulePkg/Include/Pi/PrePiHob.h.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
---
 MdeModulePkg/Include/Pi/PrePiHob.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 MdeModulePkg/Include/Pi/PrePiHob.h

diff --git a/MdeModulePkg/Include/Pi/PrePiHob.h b/MdeModulePkg/Include/Pi/PrePiHob.h
new file mode 100644
index 000000000000..38a8f1be149d
--- /dev/null
+++ b/MdeModulePkg/Include/Pi/PrePiHob.h
@@ -0,0 +1,20 @@
+/** @file
+  HOB related definitions which has not been officially published in PI.
+
+Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
+SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef MDE_MODULEPKG_PRE_PI_HOB_H_
+#define MDE_MODULEPKG_PRE_PI_HOB_H_
+
+//
+// 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 EFI_RESOURCE_MEMORY_UNACCEPTED at
+// MdeModulePkg/Include/Pi/PrePiHob.h.
+//
+#define EFI_RESOURCE_MEMORY_UNACCEPTED  0x00000007
+
+#endif
-- 
2.29.2.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92880): https://edk2.groups.io/g/devel/message/92880
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Gerd Hoffmann 3 years, 5 months ago
  Hi,

> EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
> But this defitinion has not been officially in the PI spec.

I think this has just changed with uefi spec 2.10 released
in August.

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93054): https://edk2.groups.io/g/devel/message/93054
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Min Xu 3 years, 5 months ago
On September 1, 2022 11:48 PM, Gerd Hoffmann wrote:
>   Hi,
> 
> > EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
> > But this defitinion has not been officially in the PI spec.
> 
> I think this has just changed with uefi spec 2.10 released in August.
> 
I carefully checked the UEFI spec 2.10 but didn't find the unaccepted related changes in version 2.10. The latest one is in version 2.9. " 2134 Introduce unaccepted memory type "

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93118): https://edk2.groups.io/g/devel/message/93118
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Gerd Hoffmann 3 years, 5 months ago
On Sun, Sep 04, 2022 at 11:34:14AM +0000, Xu, Min M wrote:
> On September 1, 2022 11:48 PM, Gerd Hoffmann wrote:
> >   Hi,
> > 
> > > EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
> > > But this defitinion has not been officially in the PI spec.
> > 
> > I think this has just changed with uefi spec 2.10 released in August.
> > 
> I carefully checked the UEFI spec 2.10 but didn't find the unaccepted related changes in version 2.10. The latest one is in version 2.9. " 2134 Introduce unaccepted memory type "

Hmm, seems PI spec has its own memory types instead if just using the
UEFI spec ones so unaccepted memory being in UEFI doesn't help here as
long as we don't have a new PI spec yet.  Is there any ETA for the next
PI spec update?

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93340): https://edk2.groups.io/g/devel/message/93340
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Min Xu 3 years, 5 months ago
On September 7, 2022 1:31 PM, Gerd Hoffmann wrote:
> On Sun, Sep 04, 2022 at 11:34:14AM +0000, Xu, Min M wrote:
> > On September 1, 2022 11:48 PM, Gerd Hoffmann wrote:
> > >   Hi,
> > >
> > > > EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted
> memory.
> > > > But this defitinion has not been officially in the PI spec.
> > >
> > > I think this has just changed with uefi spec 2.10 released in August.
> > >
> > I carefully checked the UEFI spec 2.10 but didn't find the unaccepted
> related changes in version 2.10. The latest one is in version 2.9. " 2134
> Introduce unaccepted memory type "
> 
> Hmm, seems PI spec has its own memory types instead if just using the UEFI
> spec ones so unaccepted memory being in UEFI doesn't help here as long as
> we don't have a new PI spec yet.  Is there any ETA for the next PI spec update?
> 
I have no idea of the ETA.

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93467): https://edk2.groups.io/g/devel/message/93467
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 01/14] MdeModulePkg: Add PrePiHob.h
Posted by Min Xu 3 years, 5 months ago
On September 1, 2022 11:48 PM, Gerd Hoffmann wrote:
> 
> > EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
> > But this defitinion has not been officially in the PI spec.
> 
> I think this has just changed with uefi spec 2.10 released in August.
> 
Thanks for reminder. I will check the spec.

Thanks
Min


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93074): https://edk2.groups.io/g/devel/message/93074
Mute This Topic: https://groups.io/mt/93285598/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-