Skip to content

Commit

Permalink
PM: Image layout change for CME/SGPE Region of P9 HOMER.
Browse files Browse the repository at this point in the history
    - implements compact image layout for CME
    - implements compact image layout for SGPE
    - enhances ring debug infrastructure
    - implements size check for consolidated CME/SGPE SRAM Image.
    - Reversal of magic byte used to represent FUSED and NON FUSED core.
    - enhances putring to support scan ring overrides.
    - added gptr and time rings
    - updated in SGPE debug pointer location and boot loader constants.
    - Fixed ex instance ring issue (need to skip conversion of scan
      region type for ex instance ring)
    - memset for CME, SGPE override offset init and
      sanity check in ring code.

Change-Id: I263fa54c98cc6f6df5764021751d4a9839911996
Original-Change-Id: Ifb6157dd73a24e0158e6a5f39844d897fba6af56
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32544
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com>
Reviewed-by: CHRISTOPHER M. RIEDL <cmriedl@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/36656
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
premsjha authored and dcrowell77 committed Feb 17, 2017
1 parent 35e9b44 commit 696a36e
Showing 1 changed file with 41 additions and 8 deletions.
49 changes: 41 additions & 8 deletions src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.C
Expand Up @@ -241,14 +241,14 @@ RingBucket::RingBucket( PlatId i_plat, uint8_t* i_pRingStart, RingDebugMode_t i_
{ ex_l3_refr_time, 0x19 },

{ eq_repr, 0x15 },
{ ex_l3_repr, 0x20 },
{ ex_l3_repr, 0x21 },
{ ex_l2_repr, 0x20 },
{ ex_l2_repr, 0x21 },
{ ex_l3_refr_repr, 0x20 },
{ ex_l3_refr_repr, 0x21 },
{ ex_l3_refr_time, 0x20 },
{ ex_l3_refr_time, 0x21 },
{ ex_l3_repr, 0x1A },
{ ex_l3_repr, 0x1B },
{ ex_l2_repr, 0x1A },
{ ex_l2_repr, 0x1B },
{ ex_l3_refr_repr, 0x1A },
{ ex_l3_refr_repr, 0x1B },
{ ex_l3_refr_time, 0x1A },
{ ex_l3_refr_time, 0x1B },

};

Expand Down Expand Up @@ -561,6 +561,36 @@ const char* RingBucket::getRingName( RingID i_ringId )
return pRingName;
}

//-------------------------------------------------------------------------
void RingBucket::extractRing( void* i_ptr, uint32_t i_ringSize, uint32_t i_ringId )
{
do
{
if( SCAN_RING_NO_DEBUG == iv_debugMode )
{
break;
}

if( !i_ptr )
{
break;
}

uint8_t* pRing = (uint8_t*)(i_ptr);
uint16_t maxLines = i_ringSize / sizeof(uint64_t);
FAPI_DBG("Ring Id 0x%08x", i_ringId );

for( uint32_t ringId = 0; ringId < maxLines; ringId++ )
{
FAPI_DBG("%02x %02x %02x %02x %02x %02x %02x %02x",
(*pRing ), *(pRing + 1), *(pRing + 2 ), *(pRing + 3 ),
*(pRing + 4 ), *(pRing + 5 ), *(pRing + 6 ), *(pRing + 7 ) );
pRing = pRing + sizeof(uint64_t);
}

}
while(0);
}
//-------------------------------------------------------------------------

void RingBucket::dumpRings( )
Expand Down Expand Up @@ -736,6 +766,9 @@ P9FuncModel::P9FuncModel( const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP >& i_
iv_funcExes = iv_funcExes | (1 << (l_corePos >> 1) );
iv_funcQuads = iv_funcQuads | (1 << (l_corePos >> 2) );
}

FAPI_DBG("functional core 0x%08x, Ex 0x%08x quad 0x%08x",
iv_funcCores, iv_funcExes, iv_funcQuads );
}

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

0 comments on commit 696a36e

Please sign in to comment.