* [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
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 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-09 3:26 ` Nate DeSimone 2 siblings, 1 reply; 7+ messages in thread From: Chiu, Chasel @ 2022-02-07 9:09 UTC (permalink / raw) To: Zhang, Xiaoqiang, devel@edk2.groups.io Cc: Desimone, Nathaniel L, Oram, Isaac W Thanks Xiaoqiang! Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> > -----Original Message----- > From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com> > Sent: Monday, February 7, 2022 4:11 PM > To: devel@edk2.groups.io > Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; Chiu, Chasel > <chasel.chiu@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Oram, Isaac W <isaac.w.oram@intel.com> > Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs > > 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/PlatformInitPreMe > m.c | 5 ++++- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMe > m.inf | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.c > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.c > index 6519fdd042..d8c96b52f4 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.c > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.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/PlatformInitPre > Mem.inf > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.inf > index fb997838ef..86d8246f02 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.inf > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.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 [flat|nested] 7+ messages in thread
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 2022-02-07 9:09 ` Chiu, Chasel @ 2022-02-08 1:32 ` Oram, Isaac W 2022-02-08 2:38 ` Nate DeSimone 0 siblings, 1 reply; 7+ messages in thread From: Oram, Isaac W @ 2022-02-08 1:32 UTC (permalink / raw) To: Chiu, Chasel, Zhang, Xiaoqiang, devel@edk2.groups.io Cc: Desimone, Nathaniel L This has uncovered another issue that we should fix so that this isn't necessary. Since UEFI native code is all about binary interoperability, there should be no difference between native mode and FSP dispatch mode. FV are FV, PPI are PPI, etc. These two PCD should mean the exact same thing and this shouldn't be necessary. We will look at moving all the board logic use out of edk2 and into MinPlatformPkg and board packages. Regards, Isaac -----Original Message----- From: Chiu, Chasel <chasel.chiu@intel.com> Sent: Monday, February 7, 2022 1:09 AM To: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; devel@edk2.groups.io Cc: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com>; Oram, Isaac W <isaac.w.oram@intel.com> Subject: RE: [PATCH v1] MinPlatformPkg: Install memory relating PPIs Thanks Xiaoqiang! Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> > -----Original Message----- > From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com> > Sent: Monday, February 7, 2022 4:11 PM > To: devel@edk2.groups.io > Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; Chiu, Chasel > <chasel.chiu@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Oram, Isaac W > <isaac.w.oram@intel.com> > Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs > > 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/PlatformInitPreMe > m.c | 5 ++++- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformIni > tPreMe > m.inf | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > index 6519fdd042..d8c96b52f4 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.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/PlatformI > nitPre > Mem.inf > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.inf > index fb997838ef..86d8246f02 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.inf > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.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 [flat|nested] 7+ messages in thread
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 2022-02-08 1:32 ` Oram, Isaac W @ 2022-02-08 2:38 ` Nate DeSimone 0 siblings, 0 replies; 7+ messages in thread From: Nate DeSimone @ 2022-02-08 2:38 UTC (permalink / raw) To: Oram, Isaac W, Chiu, Chasel, Zhang, Xiaoqiang, devel@edk2.groups.io [-- Attachment #1: Type: text/plain, Size: 5685 bytes --] Hi Isaac, I think you might be a little confused about how these PCDs operate. Here is the truth table: Mode PcdFspWrapperBootMode PcdFspModeSelection EDK II Native Mode FALSE N/A FSP Dispatch Mode TRUE 0 FSP API Mode TRUE 1 So, this change modifies the if statement to read: If (NOT FSP API Mode) Instead of: If (Native Mode) This results in the behavior for native mode and FSP dispatch mode being identical, which as you point out is the desired end state. The only reason we have a conditional statement here is to support FSP API mode, which is a known issue and expected. Thanks, Nate -----Original Message----- From: Oram, Isaac W <isaac.w.oram@intel.com> Sent: Monday, February 7, 2022 5:33 PM To: Chiu, Chasel <chasel.chiu@intel.com>; Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; devel@edk2.groups.io Cc: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com> Subject: RE: [PATCH v1] MinPlatformPkg: Install memory relating PPIs This has uncovered another issue that we should fix so that this isn't necessary. Since UEFI native code is all about binary interoperability, there should be no difference between native mode and FSP dispatch mode. FV are FV, PPI are PPI, etc. These two PCD should mean the exact same thing and this shouldn't be necessary. We will look at moving all the board logic use out of edk2 and into MinPlatformPkg and board packages. Regards, Isaac -----Original Message----- From: Chiu, Chasel <chasel.chiu@intel.com<mailto:chasel.chiu@intel.com>> Sent: Monday, February 7, 2022 1:09 AM To: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com<mailto:xiaoqiang.zhang@intel.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io> Cc: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com<mailto:nathaniel.l.desimone@intel.com>>; Oram, Isaac W <isaac.w.oram@intel.com<mailto:isaac.w.oram@intel.com>> Subject: RE: [PATCH v1] MinPlatformPkg: Install memory relating PPIs Thanks Xiaoqiang! Reviewed-by: Chasel Chiu <chasel.chiu@intel.com<mailto:chasel.chiu@intel.com>> > -----Original Message----- > From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com<mailto:xiaoqiang.zhang@intel.com>> > Sent: Monday, February 7, 2022 4:11 PM > To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> > Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com<mailto:xiaoqiang.zhang@intel.com>>; Chiu, Chasel > <chasel.chiu@intel.com<mailto:chasel.chiu@intel.com>>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com<mailto:nathaniel.l.desimone@intel.com>>; Oram, Isaac W > <isaac.w.oram@intel.com<mailto:isaac.w.oram@intel.com>> > Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs > > 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<mailto:xiaoqiang.zhang@intel.com>> > Cc: Chasel Chiu <chasel.chiu@intel.com<mailto:chasel.chiu@intel.com>> > Cc: Nate DeSimone <nathaniel.l.desimone@intel.com<mailto:nathaniel.l.desimone@intel.com>> > Cc: Isaac Oram <isaac.w.oram@intel.com<mailto:isaac.w.oram@intel.com>> > --- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPreMe > m.c | 5 ++++- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformIni > tPreMe > m.inf | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > index 6519fdd042..d8c96b52f4 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.c > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.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/PlatformI > nitPre > Mem.inf > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.inf > index fb997838ef..86d8246f02 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.inf > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitPre > Mem.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 [-- Attachment #2: Type: text/html, Size: 17915 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 2022-02-07 8:11 [PATCH v1] MinPlatformPkg: Install memory relating PPIs Xiaoqiang Zhang 2022-02-07 9:09 ` Chiu, Chasel @ 2022-02-08 2:38 ` Nate DeSimone 2022-02-09 3:26 ` Nate DeSimone 2 siblings, 0 replies; 7+ messages in thread From: Nate DeSimone @ 2022-02-08 2:38 UTC (permalink / raw) To: Zhang, Xiaoqiang, devel@edk2.groups.io; +Cc: Chiu, Chasel, Oram, Isaac W Good catch Xiaoqiang! Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> -----Original Message----- From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com> Sent: Monday, February 7, 2022 12:11 AM To: devel@edk2.groups.io Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; Chiu, Chasel <chasel.chiu@intel.com>; Desimone, Nathaniel L <nathaniel.l.desimone@intel.com>; Oram, Isaac W <isaac.w.oram@intel.com> Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 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
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 2022-02-07 8:11 [PATCH v1] MinPlatformPkg: Install memory relating PPIs Xiaoqiang Zhang 2022-02-07 9:09 ` Chiu, Chasel 2022-02-08 2:38 ` Nate DeSimone @ 2022-02-09 3:26 ` Nate DeSimone 2022-02-09 5:04 ` Zhang, Xiaoqiang 2 siblings, 1 reply; 7+ messages in thread From: Nate DeSimone @ 2022-02-09 3:26 UTC (permalink / raw) To: Zhang, Xiaoqiang, devel@edk2.groups.io; +Cc: Chiu, Chasel, Oram, Isaac W Pushed: https://github.com/tianocore/edk2-platforms/commit/b6f9674 > -----Original Message----- > From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com> > Sent: Monday, February 7, 2022 12:11 AM > To: devel@edk2.groups.io > Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; Chiu, Chasel > <chasel.chiu@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Oram, Isaac W > <isaac.w.oram@intel.com> > Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs > > 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/PlatformInitPre > Mem.c | 5 ++++- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitPre > Mem.inf | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.c > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.c > index 6519fdd042..d8c96b52f4 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.c > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.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/PlatformInitP > reMem.inf > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.inf > index fb997838ef..86d8246f02 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.inf > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformInitP > reMem.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 [flat|nested] 7+ messages in thread
* Re: [PATCH v1] MinPlatformPkg: Install memory relating PPIs 2022-02-09 3:26 ` Nate DeSimone @ 2022-02-09 5:04 ` Zhang, Xiaoqiang 0 siblings, 0 replies; 7+ messages in thread From: Zhang, Xiaoqiang @ 2022-02-09 5:04 UTC (permalink / raw) To: Desimone, Nathaniel L, devel@edk2.groups.io; +Cc: Chiu, Chasel, Oram, Isaac W Thanks Nate! Best Regards, Xiaoqiang Zhang -----Original Message----- From: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com> Sent: Wednesday, February 9, 2022 11:27 AM To: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; devel@edk2.groups.io Cc: Chiu, Chasel <chasel.chiu@intel.com>; Oram, Isaac W <isaac.w.oram@intel.com> Subject: RE: [PATCH v1] MinPlatformPkg: Install memory relating PPIs Pushed: https://github.com/tianocore/edk2-platforms/commit/b6f9674 > -----Original Message----- > From: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com> > Sent: Monday, February 7, 2022 12:11 AM > To: devel@edk2.groups.io > Cc: Zhang, Xiaoqiang <xiaoqiang.zhang@intel.com>; Chiu, Chasel > <chasel.chiu@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Oram, Isaac W > <isaac.w.oram@intel.com> > Subject: [PATCH v1] MinPlatformPkg: Install memory relating PPIs > > 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/PlatformInitPre > Mem.c | 5 ++++- > > Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformIni > tPre > Mem.inf | 2 ++ > 2 files changed, 6 insertions(+), 1 deletion(-) > > diff --git > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.c > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.c > index 6519fdd042..d8c96b52f4 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.c > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.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/PlatformI > nitP > reMem.inf > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.inf > index fb997838ef..86d8246f02 100644 > --- > a/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.inf > +++ > b/Platform/Intel/MinPlatformPkg/PlatformInit/PlatformInitPei/PlatformI > nitP > reMem.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 [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