From aaf33ec6e020cd863069c1c25771f837929f4e75 Mon Sep 17 00:00:00 2001 From: Girisankar Paulraj Date: Mon, 13 Jun 2016 04:22:11 -0500 Subject: Added 0b0,1,2 and 3 chiplet TOR block copy support. Based on vpd module ring requirement, ob chiplet is separated based on each chiplet instance. So, ob becomes as ob0, 0b1, 0b2 and 0b3. Added more logic to traverse over above defined chiplets. Change-Id: I85b04c33236a03ac49676522325f5e140067e8f1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25706 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Claus M. Olsen Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Reviewed-by: Martin Peschke Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30246 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta --- src/import/chips/p9/utils/imageProcs/p9_tor.H | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/import/chips/p9/utils/imageProcs/p9_tor.H') diff --git a/src/import/chips/p9/utils/imageProcs/p9_tor.H b/src/import/chips/p9/utils/imageProcs/p9_tor.H index 13a00e98..26ef5a20 100644 --- a/src/import/chips/p9/utils/imageProcs/p9_tor.H +++ b/src/import/chips/p9/utils/imageProcs/p9_tor.H @@ -67,6 +67,7 @@ typedef struct } TorPpeBlock_t; + #define IMGBUILD_TGR_RING_FOUND 0 #define IMGBUILD_TGR_RING_BLOCKS_FOUND 0 #define IMGBUILD_TGR_RING_NOT_FOUND 1 // Ring is not found in HW image. @@ -146,12 +147,16 @@ typedef enum SbeTorId N3_CPLT = 4, XB_CPLT = 5, MC_CPLT = 6, - PCI0_CPLT = 7, - PCI1_CPLT = 8, - PCI2_CPLT = 9, - EQ_CPLT = 10, - EC_CPLT = 11, - SBE_NOOF_CHIPLETS = 12 + OB0_CPLT = 7, + OB1_CPLT = 8, + OB2_CPLT = 9, + OB3_CPLT = 10, + PCI0_CPLT = 11, + PCI1_CPLT = 12, + PCI2_CPLT = 13, + EQ_CPLT = 14, + EC_CPLT = 15, + SBE_NOOF_CHIPLETS = 16 } SbeTorId_t; typedef enum CmeTorId { @@ -230,8 +235,7 @@ int tor_get_ring( void* RingBlockType_t i_RingBlockType, // 0: single ring, 1: ring block void** io_ringBlockPtr, // Addr of ring buffer uint32_t& io_ringBlockSize, // size of ring data - char* o_ringName // Ring name - ); + char* o_ringName); // Ring name int tor_get_single_ring ( void* i_ringSectionPt, // Ring address Ptr any of .rings, .overrides and .overlays. @@ -253,8 +257,7 @@ int tor_get_block_of_rings ( void* RingVariant_t i_RingVariant, // base,cache,etc uint8_t i_instanceId, // Chiplet Instance ID void** io_ringBlockPtr, // Addr of ring buffer - uint32_t& io_ringBlockSize // size of ring data - ); + uint32_t& io_ringBlockSize); // size of ring data }; #endif //_P9_TOR_H_ -- cgit v1.2.1