> On Oct 21, 2014, at 1:45 AM, Gao, Liming <[email protected]> wrote: > > Andrew: > After memory is ready, you locates this PPI again. Then, you find this PPI > can't be found or this PPI is found, but its pointer is to Zero? If this PPI > could be found, could you check whether the pointer is migrated? >
The PPI is not found. Thanks, Andrew Fish > Thanks > Liming > -----Original Message----- > From: Andrew Fish [mailto:[email protected]] > Sent: Friday, October 17, 2014 11:43 PM > To: [email protected] > Subject: Re: [edk2] PPIs passed into the PEI Core entry point get zero'ed out > when permanent memory is installed? > > >> On Oct 16, 2014, at 7:16 PM, Gao, Liming <[email protected]> wrote: >> >> Andrew: >> If TemporaryRamSupportPpi is installed, it will migrate the full temp memory >> to permanent memory. If it is not ready, PeiCore will migrate the full temp >> memory. After memory is migrated, PeiCore will convert PPI pointers in temp >> memory. You can see ConvertPpiPointers() in MdeModulePkg\Core\Pei\Ppi\Ppi.c >> that covers all temp memory: heap, stack and hole. So, PPI pointers should >> be converted to the permanent memory. But, if PPI data is the temp memory, >> it can't be converted by PeiCore, because PeiCore doesn't understand the >> specific PPI data format. >> > > Liming, > > In my case the only thing in temp memory is the PpiArray that is passed in > the PEI Core entry point. We have a custom PEI Core entry point lib instance > that initializes our debugger. So we are just making a copy off the PpiArray > from SEC and appending a PPI. We are just copying the ROM based > EFI_PEI_PPI_DESCRIPTOR on to the stack to pass it into the PEI Core entry > point. All the internal pointers point to ROM, so they should be OK. The > problem is the PPI disappears from the list (gets zeroed out). > > Thanks, > > Andrew Fish > >> Thanks >> Liming >> -----Original Message----- >> From: Andrew Fish [mailto:[email protected]] >> Sent: Monday, September 29, 2014 10:06 AM >> To: [email protected] >> Subject: [edk2] PPIs passed into the PEI Core entry point get zero'ed out >> when permanent memory is installed? >> >> I don't see any place in the PI specs that state the PPIs passed from SEC to >> the PEI core don't make it past memory getting discovered. >> >> The PPI lists getting passed up are on the stack and were allocated >> prior to calling the PEI Core Main. Just like: >> https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmulatorPkg/Sec/Sec.c >> >> I see this failure in the EmulatorPkg and on real hardware too. >> >> Thanks, >> >> Andrew Fish >> ---------------------------------------------------------------------- >> -------- Slashdot TV. Videos for Nerds. Stuff that Matters. >> http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg. >> clktrk _______________________________________________ >> edk2-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/edk2-devel >> >> ---------------------------------------------------------------------- >> -------- Comprehensive Server Monitoring with Site24x7. >> Monitor 10 servers for $9/Month. >> Get alerted through email, SMS, voice calls or mobile push notifications. >> Take corrective actions from your mobile device. >> http://p.sf.net/sfu/Zoho >> _______________________________________________ >> edk2-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/edk2-devel > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/edk2-devel > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
