Skip to content

Commit

Permalink
PM: Introduced a macro for core common ring.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
premsjha authored and dcrowell77 committed Jun 11, 2017
1 parent 09b3be2 commit c60090e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C
Expand Up @@ -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];
}
Expand Down

0 comments on commit c60090e

Please sign in to comment.