Skip to content

Commit

Permalink
Remove pm pstate code and support pgpe init
Browse files Browse the repository at this point in the history
Change-Id: Ia060ed0325f1fcfaf548b9c0f113c47346bc0ebc
RTC:153885
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37607
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
cvswen authored and dcrowell77 committed Mar 16, 2017
1 parent d33402a commit b3fdb0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
1 change: 1 addition & 0 deletions src/usr/isteps/pm/pm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,4 @@ include ${HWP_IMAGEPROCS_PATH}/p9_scan_compression.mk
include ${NEST_UTIL_PATH}/p9_fbc_utils.mk
include ${HWP_PM_PATH}/p9_pstate_parameter_block.mk
include ${HWP_PM_PATH}/p9_pm_get_poundv_bucket.mk
include ${HWP_PM_PATH}/p9_pm_pstate_gpe_init.mk
56 changes: 0 additions & 56 deletions src/usr/isteps/pm/pm_common.C
Original file line number Diff line number Diff line change
Expand Up @@ -151,49 +151,6 @@ namespace HBPM
return l_virt_addr;
} // convertHomerPhysToVirt

/**
* @brief Build new Pstate Parameter Block for PGPE and CME
*/
errlHndl_t pstateParameterBuild( TARGETING::Target* i_target,
void* i_homer)
{
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
ENTER_MRK"pstateParameterBuild(HOMER:%p)",
i_homer);

errlHndl_t l_errl = nullptr;

// cast OUR type of target to a FAPI type of target.
// figure out homer offsets
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>
l_fapiTarg(i_target);

do
{
// p9_pstate_parameter_build.C
/* FAPI_INVOKE_HWP( l_errl,
p9_pstate_parameter_build,
l_fapiTarg,
i_homer ); @TODO RTC:153885 */

if (l_errl)
{
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
ERR_MRK"pstateParameterBuild: "
"p9_pstate_parameter_build failed!" );
l_errl->collectTrace("ISTEPS_TRACE",256);

break;
}

} while(0);

TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
EXIT_MRK"pstateParameterBuild: RC=0x%X, PLID=0x%lX",
ERRL_GETRC_SAFE(l_errl), ERRL_GETPLID_SAFE(l_errl) );
return l_errl;
} // pstateParameterBuild

/**
* @brief Sets up OCC Host data in Homer
*/
Expand Down Expand Up @@ -734,19 +691,6 @@ namespace HBPM
break;
}

// @TODO RTC:153885 verify parameters on call
l_errl = pstateParameterBuild(i_target,
l_homerVAddr);
if(l_errl)
{
TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
ERR_MRK"loadPMComplex: "
"pstateParameterBuild failed! "
"HUID=0x08X OCC_Virt=0x%08X",
get_huid(i_target), l_occImgVaddr );
break;
}

l_errl = loadHcode(i_target,
l_homerVAddr,
i_mode);
Expand Down
13 changes: 1 addition & 12 deletions src/usr/isteps/pm/pm_common.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -77,17 +77,6 @@ namespace HBPM
VER_EYECATCH = 0x56455253494F4E00, //'VERSION\0'
};

/**
* @brief Build new Pstate Parameter Block for PGPE and CME
*
* @param[in] i_target: Target processor
* @param[in] i_homer: Virtual address of current proc's HOMER
*
* @return errlHndl_t Error log Pstate Parameter Block build failed
*/
errlHndl_t pstateParameterBuild( TARGETING::Target* i_target,
void* i_homer);

/**
* @brief Sets up OCC Host data in Homer
*
Expand Down

0 comments on commit b3fdb0e

Please sign in to comment.