public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1] MinPlatformPkg: Install memory relating PPIs
@ 2022-02-07  8:11 Xiaoqiang Zhang
  2022-02-07  9:09 ` Chiu, Chasel
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Xiaoqiang Zhang @ 2022-02-07  8:11 UTC (permalink / raw)
  To: devel; +Cc: Xiaoqiang Zhang, Chasel Chiu, Nate DeSimone, Isaac Oram

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3824

Install memory relating PPIs for EDKII native build and FSP dispatch mode

Signed-off-by: Xiaoqiang Zhang <xiaoqiang.zhang@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Isaac Oram <isaac.w.oram@intel.com>
---
 Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c   | 5 ++++-
 Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c
index 6519fdd042..d8c96b52f4 100644
--- a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c
+++ b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.c
@@ -481,7 +481,10 @@ PlatformInitPreMem (
 
   BuildMemoryTypeInformation ();
 
-  if (!PcdGetBool(PcdFspWrapperBootMode)) {
+  if ((!PcdGetBool (PcdFspWrapperBootMode)) || (PcdGet8 (PcdFspModeSelection) == 0)) {
+    //
+    // Install memory relating PPIs for EDKII native build and FSP dispatch mode
+    //
     Status = PeiServicesInstallPpi (mMemPpiList);
     ASSERT_EFI_ERROR (Status);
   }
diff --git a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf
index fb997838ef..86d8246f02 100644
--- a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf
+++ b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMem.inf
@@ -34,11 +34,13 @@
   MdeModulePkg/MdeModulePkg.dec
   MdePkg/MdePkg.dec
   IntelSiliconPkg/IntelSiliconPkg.dec
+  IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
 
 [Pcd]
   gMinPlatformPkgTokenSpaceGuid.PcdFspWrapperBootMode          ## CONSUMES
   gMinPlatformPkgTokenSpaceGuid.PcdStopAfterDebugInit          ## CONSUMES
   gMinPlatformPkgTokenSpaceGuid.PcdStopAfterMemInit            ## CONSUMES
+  gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection          ## CONSUMES
 
 [FixedPcd]
   gMinPlatformPkgTokenSpaceGuid.PcdPlatformEfiAcpiReclaimMemorySize  ## CONSUMES
-- 
2.32.0.windows.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-09  5:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-07  8:11 [PATCH v1] MinPlatformPkg: Install memory relating PPIs Xiaoqiang Zhang
2022-02-07  9:09 ` Chiu, Chasel
2022-02-08  1:32   ` Oram, Isaac W
2022-02-08  2:38     ` Nate DeSimone
2022-02-08  2:38 ` Nate DeSimone
2022-02-09  3:26 ` Nate DeSimone
2022-02-09  5:04   ` Zhang, Xiaoqiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox