diff options
author | Prem Shanker Jha <premjha2@in.ibm.com> | 2017-05-23 04:17:17 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-06-11 16:53:42 -0400 |
commit | c60090e7991a7df52483a809b4026834dfabe1e0 (patch) | |
tree | e385a211124ef1eeeae4bc77e96267c5b2adfd30 /src | |
parent | 09b3be277415fc6aa7f29b2b76e2cb9d32141095 (diff) | |
download | talos-hostboot-c60090e7991a7df52483a809b4026834dfabe1e0.tar.gz talos-hostboot-c60090e7991a7df52483a809b4026834dfabe1e0.zip |
PM: Introduced a macro for core common ring.
HW-Image-Prereq: Id684ecb68d987f6ecd3f2e0476ab9aa2adce338f
Change-Id: Ia1c450445b69052ca6f83e026075e48b82d4bdb1
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40827
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Juan R. Medina <jrmedina@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40829
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
3 files changed, 4 insertions, 3 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_hcode_image_defines.H b/src/import/chips/p9/procedures/hwp/lib/p9_hcode_image_defines.H index ffaf0bb25..73025e276 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_hcode_image_defines.H +++ b/src/import/chips/p9/procedures/hwp/lib/p9_hcode_image_defines.H @@ -66,6 +66,7 @@ namespace p9_hcodeImageBuild */ #define MAX_HOMER_QUAD_CMN_RINGS (uint32_t)(EQ::g_eqData.iv_num_common_rings - 4) +#define MAX_HOMER_CORE_CMN_RINGS (uint32_t)(EC::g_ecData.iv_num_common_rings - 2) /** * @brief models QPMR header in HOMER diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C index 7d0ec6431..c70138ee7 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C @@ -2139,7 +2139,7 @@ uint32_t layoutCmnRingsForCme( Homerlayout_t* i_pHomer, break; } - for( uint32_t ringIndex = 0; ringIndex < EC::g_ecData.iv_num_common_rings; + for( uint32_t ringIndex = 0; ringIndex < MAX_HOMER_CORE_CMN_RINGS; ringIndex++ ) { ringSize = i_ringData.iv_sizeWorkBuf1; @@ -2395,7 +2395,7 @@ uint32_t layoutCmeScanOverride( Homerlayout_t* i_pHomer, uint8_t* pOverrideRingPayload = pOverrideStart + CORE_COMMON_RING_INDEX_SIZE; bool overrideNotFound = true; - for( uint8_t ringIndex = 0; ringIndex < EC::g_ecData.iv_num_common_rings; + for( uint8_t ringIndex = 0; ringIndex < MAX_HOMER_CORE_CMN_RINGS; ringIndex++ ) { tempBufSize = i_ringData.iv_sizeWorkBuf2; diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C b/src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C index 83fc7e772..aba895c58 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C @@ -386,7 +386,7 @@ RingBucket::RingBucket( PlatId i_plat, uint8_t* i_pRingStart, RingDebugMode_t i_ { ec_repr, 23 }, }; - for( ringIndex = 0; ringIndex < EC::g_ecData.iv_num_common_rings; ringIndex++ ) + for( ringIndex = 0; ringIndex < MAX_HOMER_CORE_CMN_RINGS; ringIndex++ ) { iv_cmnRingMap[ringIndex] = l_coreCmnRings[ringIndex]; } |