Skip to content

Commit

Permalink
Update EnterMPIPL to collect architected dumps and
Browse files Browse the repository at this point in the history
stopClocks for BMC based system


Change-Id: Iac0b82e12f048e593acb54c82815d890c2ae93a6
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/90183
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
  • Loading branch information
nmuruli authored and RAJA DAS committed Feb 7, 2020
1 parent 7c74dda commit 98d8d61
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions src/sbefw/app/power/sbecmdmpipl.C
Expand Up @@ -195,6 +195,34 @@ uint32_t sbeEnterMpipl(uint8_t *i_pArg)
PLAT_ATTR_INIT(ATTR_IS_MPIPL, Target<TARGET_TYPE_SYSTEM>(), isMpipl);
break;
}

//If system is FSP less system then collect the SPRs/GPRs and stop the
//clocks.
if(false == SbeRegAccess::theSbeRegAccess().isFspSystem())
{
// Collect Architected Register Dump
fapiRc = sbeDumpArchRegs();
if( fapiRc != FAPI2_RC_SUCCESS )
{
SBE_ERROR(SBE_FUNC "Failed in sbeDumpArchRegs()");
respHdr.setStatus( SBE_PRI_GENERIC_EXECUTION_FAILURE,
SBE_SEC_GENERIC_FAILURE_IN_EXECUTION);
ffdc.setRc(fapiRc);
break;
}

//Core and Cache stop Clock
SBE_INFO(SBE_FUNC "Attempt Stop clocks for all Core and cache ");
fapiRc = stopClockS0();
if(fapiRc != FAPI2_RC_SUCCESS)
{
rc = SBE_SEC_S0_STOP_CLOCK_FAILED;
SBE_ERROR(SBE_FUNC "Failed in Core/Cache StopClock");
break;
}

}

}while(0);

// Create the Response to caller
Expand Down Expand Up @@ -311,12 +339,11 @@ uint32_t sbeCollectDumpMpipl(uint8_t *i_pArg)
respHdr.setStatus( SBE_PRI_GENERIC_EXECUTION_FAILURE,
SBE_SEC_GENERIC_FAILURE_IN_EXECUTION);
ffdc.setRc(fapiRc);
rc = fapiRc;
break;
}

//Core and Cache stop Clock
SBE_ERROR(SBE_FUNC "Stop clocks for all Core and cache ");
SBE_INFO(SBE_FUNC "Stop clocks for all Core and cache ");
fapiRc = stopClockS0();
if(fapiRc != FAPI2_RC_SUCCESS)
{
Expand Down

0 comments on commit 98d8d61

Please sign in to comment.