Skip to content

Commit 16eddb5

Browse files
stillgsdcrowell77
authored andcommitted
PM (Cronus): Add processor id for errors from p9_activate_stop15_cores
- 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>
1 parent 332403a commit 16eddb5

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/import/chips/p9/procedures/hwp/lib/p9_ppe_utils.C

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,26 @@ fapi_try_exit:
641641

642642
//-----------------------------------------------------------------------------
643643

644+
fapi2::ReturnCode ppe_isHalted(
645+
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
646+
const uint64_t i_base_address,
647+
bool* o_halted)
648+
{
649+
fapi2::buffer<uint64_t> l_data64;
650+
651+
FAPI_TRY(getScom ( i_target,
652+
i_base_address + PPE_XIRAMDBG,
653+
l_data64 ),
654+
"Failed reading XIRAMDBG register!" );
655+
656+
*o_halted = l_data64.getBit<0>();
657+
658+
fapi_try_exit:
659+
return fapi2::current_err;
660+
}
661+
662+
//-----------------------------------------------------------------------------
663+
644664
#ifndef __HOSTBOOT_MODULE
645665

646666
fapi2::ReturnCode scom_regs_populate_name(

src/import/chips/p9/procedures/hwp/lib/p9_ppe_utils.H

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,19 @@ fapi2::ReturnCode ppe_write_iar(
491491
const uint64_t i_base_address,
492492
const uint64_t i_address );
493493

494+
495+
///--------------------------------------------------------------------------------------
496+
/// @brief Determine if the PPE is halted
497+
/// @param[in] i_target target
498+
/// @param[in] i_base_address base SCOM address of the PPE
499+
/// @param[out] o_halted boolean true if halted; false otherwise
500+
/// @return fapi2::ReturnCode
501+
///--------------------------------------------------------------------------------------
502+
fapi2::ReturnCode ppe_isHalted(
503+
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
504+
const uint64_t i_base_address,
505+
bool* o_halted);
506+
494507
#ifndef __HOSTBOOT_MODULE
495508

496509
///--------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)