summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/xip/p9_xip_tool.C
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@de.ibm.com>2016-10-28 15:37:33 +0200
committerspashabk-in <shakeebbk@in.ibm.com>2016-12-20 05:18:55 -0600
commit6d78d6dc0ac045932e815ab2e6646ca40b46d701 (patch)
treee8249d216631b898909cf321b8dea0f206ea0072 /src/import/chips/p9/xip/p9_xip_tool.C
parent4285cb20d62a9d275b8ce4cd4a1d235730328dd4 (diff)
downloadtalos-sbe-6d78d6dc0ac045932e815ab2e6646ca40b46d701.tar.gz
talos-sbe-6d78d6dc0ac045932e815ab2e6646ca40b46d701.zip
Shrinking RS4 header
Implements a new 12 byte CompressedScanData structure with less and refined members in order to save space for rings. Used test tool to verify correctness of p9_scan_compression changes. Used p9_xip_tool dissect to verify .rings of HW Image with new RS4 header. Change-Id: I68b3044b62908d013778f87343798ebaa6829923 RTC:158078 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31551 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31968 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/xip/p9_xip_tool.C')
-rw-r--r--src/import/chips/p9/xip/p9_xip_tool.C16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/import/chips/p9/xip/p9_xip_tool.C b/src/import/chips/p9/xip/p9_xip_tool.C
index 50200153..3eeb5107 100644
--- a/src/import/chips/p9/xip/p9_xip_tool.C
+++ b/src/import/chips/p9/xip/p9_xip_tool.C
@@ -1752,9 +1752,6 @@ int dissectRingSectionTor( void* i_ringSection,
void* ringBlockPtr;
uint32_t ringBlockSize;
char ringName[32];
- void* hostRs4Container;
- uint32_t compressedBits = 0, ringLength = 0;
- double compressionPct = 0;
uint32_t ringSeqNo = 0; // Ring sequence number
//
@@ -1910,12 +1907,6 @@ int dissectRingSectionTor( void* i_ringSection,
// Summarize all characteristics of the ring block if "normal" or "long" (default).
if ( i_listingModeId == LMID_NORMAL || i_listingModeId == LMID_LONG )
{
- // Calculate RS4 compression efficiency.
- hostRs4Container = (void*)( (uintptr_t)ringBlockPtr + sizeof(RingLayout_t) );
- compressedBits = htobe32(((CompressedScanData*)hostRs4Container)->iv_algorithmReserved) * 4;
- ringLength = htobe32(((CompressedScanData*)hostRs4Container)->iv_length);
- compressionPct = (double)compressedBits / (double)ringLength * 100.0;
-
sizeDisLine = snprintf( lineDis, LINE_SIZE_MAX,
"-----------------------------\n"
"%i.\n"
@@ -1925,13 +1916,10 @@ int dissectRingSectionTor( void* i_ringSection,
"ringName = %s\n"
"ringVariant = %s\n"
"instanceId = 0x%02x\n"
- "ringBlockSize = 0x%08x\n"
- "RS4 ring size [bits] = %u\n"
- "Raw ring size [bits] = %u\n"
- "Compression [%%] = %0.2f\n",
+ "ringBlockSize = 0x%08x\n",
ringSeqNo, ddLevel, ppeTypeName[ppeType], ringId, ringName,
ringVariantName[ringVariant], instanceId,
- ringBlockSize, compressedBits, ringLength, compressionPct );
+ ringBlockSize);
if (sizeDisLine >= LINE_SIZE_MAX)
{
OpenPOWER on IntegriCloud