Skip to content

Commit

Permalink
MPIPL:Fix the condition for copyArchitectedRegs()
Browse files Browse the repository at this point in the history
SBE collects architected register data for below combination
of systems.Hence Copy architected register data from Reserved
Memory to hypervisor memory.

1) FSP - OPAL
2) BMC - OPAL
3) BMC - PHYP

Change-Id: If5bd1fc0e541fd4722742aa24c25fdb8c3c10554
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/92049
Reviewed-by: VASANT HEGDE <hegdevasant@linux.vnet.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
nmuruli authored and wghoffa committed Feb 21, 2020
1 parent 1559c89 commit 2ba85f0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/usr/isteps/istep14/call_host_mpipl_service.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2019 */
/* Contributors Listed Below - COPYRIGHT 2015,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -157,10 +157,18 @@ void* call_host_mpipl_service (void *io_pArgs)

do
{
// In OPAL based system SBE collects architected register
// data. Copy architected register data from Reserved Memory
// to hypervisor memory.
if( TARGETING::is_sapphire_load() )
//SBE collects architected register data for below combination
//of systems.Hence Copy architected register data from Reserved
//Memory to hypervisor memory.
//
//1) FSP - OPAL
//2) BMC - OPAL
//3) BMC - PHYP


//Copy Architected register data if sys is **NOT** (FSP + PHYP)
//combination.
if( !(is_phyp_load() && INITSERVICE::spBaseServicesEnabled()) )
{
l_err = DUMP::copyArchitectedRegs();
if (l_err)
Expand Down

0 comments on commit 2ba85f0

Please sign in to comment.