Skip to content

Commit

Permalink
PM (Cronus): Add processor id for errors from p9_activate_stop15_cores
Browse files Browse the repository at this point in the history
- reformatted error output for readability
- removed FAPI_ASSERT FFDC as these are not useful in Cronus;  moved the FFDC
  to printfs before the ASSERT
- Added isHalted() to ppe_utils
- added SSH and better SGPE oriented register FFDC
- removed extra setBit to core_sb buffer

Change-Id: Ie23f294b843b15a78b8d3ee036310631c0595904
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44758
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Dev-Ready: Gregory S. Still <stillgs@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45304
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
stillgs authored and dcrowell77 committed Sep 7, 2017
1 parent 332403a commit 16eddb5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/import/chips/p9/procedures/hwp/lib/p9_ppe_utils.C
Expand Up @@ -641,6 +641,26 @@ fapi_try_exit:

//-----------------------------------------------------------------------------

fapi2::ReturnCode ppe_isHalted(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
const uint64_t i_base_address,
bool* o_halted)
{
fapi2::buffer<uint64_t> l_data64;

FAPI_TRY(getScom ( i_target,
i_base_address + PPE_XIRAMDBG,
l_data64 ),
"Failed reading XIRAMDBG register!" );

*o_halted = l_data64.getBit<0>();

fapi_try_exit:
return fapi2::current_err;
}

//-----------------------------------------------------------------------------

#ifndef __HOSTBOOT_MODULE

fapi2::ReturnCode scom_regs_populate_name(
Expand Down
13 changes: 13 additions & 0 deletions src/import/chips/p9/procedures/hwp/lib/p9_ppe_utils.H
Expand Up @@ -491,6 +491,19 @@ fapi2::ReturnCode ppe_write_iar(
const uint64_t i_base_address,
const uint64_t i_address );


///--------------------------------------------------------------------------------------
/// @brief Determine if the PPE is halted
/// @param[in] i_target target
/// @param[in] i_base_address base SCOM address of the PPE
/// @param[out] o_halted boolean true if halted; false otherwise
/// @return fapi2::ReturnCode
///--------------------------------------------------------------------------------------
fapi2::ReturnCode ppe_isHalted(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
const uint64_t i_base_address,
bool* o_halted);

#ifndef __HOSTBOOT_MODULE

///--------------------------------------------------------------------------------------
Expand Down

0 comments on commit 16eddb5

Please sign in to comment.