Skip to content

Commit

Permalink
Set wakeup mode in istep 15 based on SMF setttings
Browse files Browse the repository at this point in the history
Change-Id: I979d20fb8f38e2aa4e8fc29aebc38a7752aed5ce
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64939
Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Ilya Smirnov <ismirno@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
crgeddes authored and dcrowell77 committed Sep 21, 2018
1 parent 165bb46 commit 7398078
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/usr/isteps/istep15/host_build_stop_image.C
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
//Import directory (from EKB repository)
#include <p9_hcode_image_build.H>
#include <p9_stop_api.H>
#include <p9_setup_runtime_wakeup_mode.H>
#include <p9_xip_image.h>
#include <p9_infrastruct_help.H>
#include <p9_hcode_image_defines.H>
Expand Down Expand Up @@ -500,7 +501,7 @@ void* host_build_stop_image (void *io_pArgs)

//Cast OUR type of target to a FAPI2 type of target.
const fapi2::Target<TARGET_TYPE_PROC_CHIP>
l_fapiCpuTarget( const_cast<TARGETING::Target*>(l_procChip));
l_fapiProcTarget( const_cast<TARGETING::Target*>(l_procChip));

//Default constructor sets the appropriate settings
ImageType_t img_type;
Expand All @@ -520,7 +521,7 @@ void* host_build_stop_image (void *io_pArgs)
//Call p9_hcode_image_build.C HWP
FAPI_INVOKE_HWP( l_errl,
p9_hcode_image_build,
l_fapiCpuTarget,
l_fapiProcTarget,
reinterpret_cast<void*>(l_pHcodeImage),
l_pImageOut, //homer image buffer
l_ringOverrides,
Expand All @@ -538,7 +539,7 @@ void* host_build_stop_image (void *io_pArgs)
if ( l_errl )
{
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
"host_build_stop_image ERROR : errorlog PLID=0x%x",
"host_build_stop_image ERROR occured during p9_hcode_image_build : errorlog PLID=0x%x",
l_errl->plid() );

// drop out of block with errorlog.
Expand All @@ -563,6 +564,21 @@ void* host_build_stop_image (void *io_pArgs)
"applyHcodeGenCpuRegs SUCCESS " );
}

// Set wakeup mode for processor based on SMF enablement
FAPI_INVOKE_HWP(l_errl,
p9_setup_runtime_wakeup_mode,
l_fapiProcTarget);

if ( l_errl )
{
TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
"host_build_stop_image ERROR occured during p9_setup_runtime_wakeup_mode : errorlog PLID=0x%x",
l_errl->plid() );

// drop out of block with errorlog.
break;
}

} while (0) ;

// broke out due to an error, store all the details away, store
Expand Down
1 change: 1 addition & 0 deletions src/usr/isteps/pm/pm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ include ${HWP_PM_PATH}/p9_pm_recovery_ffdc_qppm.mk
include ${HWP_PM_PATH}/p9_pm_recovery_ffdc_occ.mk
include ${HWP_PM_PATH}/p9_cme_sram_access.mk
include ${HWP_PM_PATH}/p9_pm_callout.mk
include ${HWP_PM_PATH}/p9_setup_runtime_wakeup_mode.mk
include ${ROOTPATH}/src/import/chips/p9/procedures/hwp/perv/p9_core_checkstop_handler.mk

0 comments on commit 7398078

Please sign in to comment.