Re: [edk2-devel] [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the Multiphase FSPS
Patch merged: https://github.com/tianocore/edk2/commit/ac33eee8b83999ba591af04fe22e773cf8fc8193 Thanks, Chasel > -Original Message- > From: Aishwarya, KurugoduMelmatamX > > Sent: Sunday, June 11, 2023 10:24 PM > To: devel@edk2.groups.io > Cc: Aishwarya, KurugoduMelmatamX > ; Chiu, Chasel > ; Desimone, Nathaniel L > ; Duggapu, Chinni B > ; Chen, Gang C ; Zeng, > Star ; Kuo, Ted ; S, Ashraf Ali > ; Mohapatra, Susovan > Subject: [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the > Multiphase FSPS > > REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4480 > > In the FspsWrapperPeim, before calling FspWrapperVariableRequestHandler and > FspWrapperMultiPhaseHandler ,FspHobListPtr should be available so that BL will > be able to get the correct FspHobListPtr value > > Signed-off-by: kurugodx > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Duggapu Chinni B > Cc: Chen Gang C > Cc: Star Zeng > Cc: Ted Kuo > Cc: Ashraf Ali S > Cc: Susovan Mohapatra > --- > .../FspsWrapperPeim/FspsWrapperPeim.c | 15 --- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > index 08fe0fdb7e..1d4dd60577 100644 > --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > @@ -336,6 +336,14 @@ PeiMemoryDiscoveredNotify ( > >DEBUG ((DEBUG_INFO, "FspSiliconInit status: %r\n", Status)); > > + // > + // Get FspHobList > + // > + GuidHob = GetFirstGuidHob (); ASSERT (GuidHob != NULL); > + FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); DEBUG > + ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); > + >if (Status == FSP_STATUS_VARIABLE_REQUEST) { > // > // call to Variable request handler @@ -356,13 +364,6 @@ > PeiMemoryDiscoveredNotify ( > DEBUG ((DEBUG_ERROR, "ERROR - TestFspSiliconInitApiOutput () fail, > Status = > %r\n", Status)); >} > > - // > - // Now FspHobList complete, process it > - // > - GuidHob = GetFirstGuidHob (); > - ASSERT (GuidHob != NULL); > - FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); > - DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); >PostFspsHobProcess (FspHobListPtr); > >// > -- > 2.41.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106336): https://edk2.groups.io/g/devel/message/106336 Mute This Topic: https://groups.io/mt/99477287/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the Multiphase FSPS
Reviewed-by: Chasel Chiu Thanks, Chasel > -Original Message- > From: Aishwarya, KurugoduMelmatamX > > Sent: Sunday, June 11, 2023 10:24 PM > To: devel@edk2.groups.io > Cc: Aishwarya, KurugoduMelmatamX > ; Chiu, Chasel > ; Desimone, Nathaniel L > ; Duggapu, Chinni B > ; Chen, Gang C ; Zeng, > Star ; Kuo, Ted ; S, Ashraf Ali > ; Mohapatra, Susovan > > Subject: [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the > Multiphase FSPS > > REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4480 > > In the FspsWrapperPeim, before calling FspWrapperVariableRequestHandler and > FspWrapperMultiPhaseHandler ,FspHobListPtr should be available so that BL will > be able to get the correct FspHobListPtr value > > Signed-off-by: kurugodx > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Duggapu Chinni B > Cc: Chen Gang C > Cc: Star Zeng > Cc: Ted Kuo > Cc: Ashraf Ali S > Cc: Susovan Mohapatra > --- > .../FspsWrapperPeim/FspsWrapperPeim.c | 15 --- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > index 08fe0fdb7e..1d4dd60577 100644 > --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c > @@ -336,6 +336,14 @@ PeiMemoryDiscoveredNotify ( > >DEBUG ((DEBUG_INFO, "FspSiliconInit status: %r\n", Status)); > > + // > + // Get FspHobList > + // > + GuidHob = GetFirstGuidHob (); ASSERT (GuidHob != NULL); > + FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); DEBUG > + ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); > + >if (Status == FSP_STATUS_VARIABLE_REQUEST) { > // > // call to Variable request handler @@ -356,13 +364,6 @@ > PeiMemoryDiscoveredNotify ( > DEBUG ((DEBUG_ERROR, "ERROR - TestFspSiliconInitApiOutput () fail, Status > = %r\n", Status)); >} > > - // > - // Now FspHobList complete, process it > - // > - GuidHob = GetFirstGuidHob (); > - ASSERT (GuidHob != NULL); > - FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); > - DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); >PostFspsHobProcess (FspHobListPtr); > >// > -- > 2.41.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106023): https://edk2.groups.io/g/devel/message/106023 Mute This Topic: https://groups.io/mt/99477287/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the Multiphase FSPS
REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4480 In the FspsWrapperPeim, before calling FspWrapperVariableRequestHandler and FspWrapperMultiPhaseHandler ,FspHobListPtr should be available so that BL will be able to get the correct FspHobListPtr value Signed-off-by: kurugodx Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Chen Gang C Cc: Star Zeng Cc: Ted Kuo Cc: Ashraf Ali S Cc: Susovan Mohapatra --- .../FspsWrapperPeim/FspsWrapperPeim.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c index 08fe0fdb7e..1d4dd60577 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c @@ -336,6 +336,14 @@ PeiMemoryDiscoveredNotify ( DEBUG ((DEBUG_INFO, "FspSiliconInit status: %r\n", Status)); + // + // Get FspHobList + // + GuidHob = GetFirstGuidHob (); + ASSERT (GuidHob != NULL); + FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); + DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); + if (Status == FSP_STATUS_VARIABLE_REQUEST) { // // call to Variable request handler @@ -356,13 +364,6 @@ PeiMemoryDiscoveredNotify ( DEBUG ((DEBUG_ERROR, "ERROR - TestFspSiliconInitApiOutput () fail, Status = %r\n", Status)); } - // - // Now FspHobList complete, process it - // - GuidHob = GetFirstGuidHob (); - ASSERT (GuidHob != NULL); - FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); - DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); PostFspsHobProcess (FspHobListPtr); // -- 2.41.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#106020): https://edk2.groups.io/g/devel/message/106020 Mute This Topic: https://groups.io/mt/99477287/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the Multiphase FSPS
Reviewed-by: Ashraf Ali S -Original Message- From: Aishwarya, KurugoduMelmatamX Sent: Monday, June 12, 2023 10:54 AM To: devel@edk2.groups.io Cc: Aishwarya, KurugoduMelmatamX ; Chiu, Chasel ; Desimone, Nathaniel L ; Duggapu, Chinni B ; Chen, Gang C ; Zeng, Star ; Kuo, Ted ; S, Ashraf Ali ; Mohapatra, Susovan Subject: [PATCH] IntelFsp2WrapperPkg: Get HobListPtr before calling the Multiphase FSPS REF : https://bugzilla.tianocore.org/show_bug.cgi?id=4480 In the FspsWrapperPeim, before calling FspWrapperVariableRequestHandler and FspWrapperMultiPhaseHandler ,FspHobListPtr should be available so that BL will be able to get the correct FspHobListPtr value Signed-off-by: kurugodx Cc: Chasel Chiu Cc: Nate DeSimone Cc: Duggapu Chinni B Cc: Chen Gang C Cc: Star Zeng Cc: Ted Kuo Cc: Ashraf Ali S Cc: Susovan Mohapatra --- .../FspsWrapperPeim/FspsWrapperPeim.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c index 08fe0fdb7e..1d4dd60577 100644 --- a/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c +++ b/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.c @@ -336,6 +336,14 @@ PeiMemoryDiscoveredNotify ( DEBUG ((DEBUG_INFO, "FspSiliconInit status: %r\n", Status)); + // + // Get FspHobList + // + GuidHob = GetFirstGuidHob (); ASSERT (GuidHob != NULL); + FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); DEBUG + ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); + if (Status == FSP_STATUS_VARIABLE_REQUEST) { // // call to Variable request handler @@ -356,13 +364,6 @@ PeiMemoryDiscoveredNotify ( DEBUG ((DEBUG_ERROR, "ERROR - TestFspSiliconInitApiOutput () fail, Status = %r\n", Status)); } - // - // Now FspHobList complete, process it - // - GuidHob = GetFirstGuidHob (); - ASSERT (GuidHob != NULL); - FspHobListPtr = *(VOID **)GET_GUID_HOB_DATA (GuidHob); - DEBUG ((DEBUG_INFO, "FspHobListPtr - 0x%x\n", FspHobListPtr)); PostFspsHobProcess (FspHobListPtr); // -- 2.41.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#105998): https://edk2.groups.io/g/devel/message/105998 Mute This Topic: https://groups.io/mt/99477287/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-