Skip to content

Commit

Permalink
add SGPE flag for simulation only workarounds
Browse files Browse the repository at this point in the history
Change-Id: I4e0b11f869d306ec5825615b40204b7a76c25cc3
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46949
Reviewed-by: YUE DU <daviddu@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Benjamin Gass <bgass@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46956
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
jjmcgill authored and dcrowell77 committed Oct 3, 2017
1 parent b914616 commit 4e27f10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ HCD_CONST(SGPE_ENABLE_CME_TRACE_ARRAY_BIT_POS, 0x08000000)
HCD_CONST(SGPE_VDM_ENABLE_BIT_POS, 0x04000000)
HCD_CONST(SGPE_ENABLE_CHTM_TRACE_CME_BIT_POS, 0x02000000)
HCD_CONST(SGPE_PHANTOM_HALT_ENABLE_BIT_POS, 0x00800000)
HCD_CONST(SGPE_IS_SIMULATION_BIT_POS, 0x00400000)
HCD_CONST(SGPE_PROC_FAB_PUMP_MODE_BIT_POS, 0x00004000)
HCD_CONST(SGPE_CACHE_SKEWADJ_DISABLE_BIT_POS, 0x00002000)
HCD_CONST(SGPE_CACHE_DCADJ_DISABLE_BIT_POS, 0x00001000)
Expand Down
14 changes: 14 additions & 0 deletions src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,20 @@ fapi2::ReturnCode updateImageFlags( Homerlayout_t* i_pChipHomer, CONST_FAPI2_PRO

///

FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_SIMULATION,
FAPI_SYSTEM,
attrVal),
"Error from FAPI_ATTR_GET for attribute ATTR_IS_SIMULATION");

if( attrVal )
{
sgpeFlag |= SGPE_IS_SIMULATION_BIT_POS;
}
FAPI_DBG("SGPE_IS_SIMULATION : %s", attrVal ? "TRUE" : "FALSE" );

///


FAPI_DBG(" ==================== SGPE Header Fields =================");

FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CME_CHTM_TRACE_MEMORY_CONFIG,
Expand Down

0 comments on commit 4e27f10

Please sign in to comment.