diff options
| author | Brian Stegmiller <bjs@us.ibm.com> | 2018-05-03 10:37:13 -0500 |
|---|---|---|
| committer | Zane C. Shelley <zshelle@us.ibm.com> | 2018-05-18 12:12:18 -0400 |
| commit | c0a78795a8dcf7e1baa2f70aee2d6852261b90bf (patch) | |
| tree | 167b0a7bcfa98f4dd4151fb15b66ac061c6440ef /src/usr/diag/prdf/common/plugins | |
| parent | 5ed2437d9ecf5b33050accdd5e1708d9fc0f5084 (diff) | |
| download | blackbird-hostboot-c0a78795a8dcf7e1baa2f70aee2d6852261b90bf.tar.gz blackbird-hostboot-c0a78795a8dcf7e1baa2f70aee2d6852261b90bf.zip | |
PRD: Update TD_CTLR_DATA with port information
Change-Id: Ifb370072fc40ddd09037efc8bea8e50c803cc5a3
RTC: 191193
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58259
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59017
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/common/plugins')
| -rw-r--r-- | src/usr/diag/prdf/common/plugins/prdfMemLogParse.C | 47 | ||||
| -rw-r--r-- | src/usr/diag/prdf/common/plugins/prdfParserEnums.H | 9 |
2 files changed, 48 insertions, 8 deletions
diff --git a/src/usr/diag/prdf/common/plugins/prdfMemLogParse.C b/src/usr/diag/prdf/common/plugins/prdfMemLogParse.C index 92eab3f01..dd3edf56b 100644 --- a/src/usr/diag/prdf/common/plugins/prdfMemLogParse.C +++ b/src/usr/diag/prdf/common/plugins/prdfMemLogParse.C @@ -3413,8 +3413,10 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, enum Version { - IPL = 1, - RT = 2, + IPL = 1, + RT = 2, + IPL_PORTS = 3, + RT_PORTS = 4 }; do @@ -3434,7 +3436,7 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, } uint32_t curPos = 0; - + uint8_t port = 0x0F; // not valid //###################################################################### // Header data (18 bits) @@ -3446,11 +3448,24 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, uint8_t phase = bs.getFieldJustify( curPos, 4 ); curPos+=4; uint8_t type = bs.getFieldJustify( curPos, 4 ); curPos+=4; + // Verify if we have new format with port information + bool versWithPorts = ( (IPL_PORTS == version) || + (RT_PORTS == version) ) ? true : false; + if ( versWithPorts ) + { + // 0:3 is valid MCA, xF is for MBA case + port = bs.getFieldJustify( curPos, 4 ); curPos+=4; + } // end if new format with ports + const char * version_str = " "; switch ( version ) { - case IPL: version_str = "IPL"; break; - case RT : version_str = "RT "; break; + case IPL: + case IPL_PORTS: + version_str = "IPL"; break; + case RT : + case RT_PORTS: + version_str = "RT "; break; } const char * type_str = " "; @@ -3485,6 +3500,12 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, i_parser.PrintString( " TD Phase", phase_str ); i_parser.PrintString( " Target Rank", rank_str ); + // Do we actually have MCA port number ? + if ( versWithPorts ) + { + i_parser.PrintNumber( " Port Num ", "%d", port ); + } // end if MCA (not MBA) + //###################################################################### // TD Request Queue (min 4 bits, max 164 bits) @@ -3504,6 +3525,12 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, uint8_t queueSrnk = bs.getFieldJustify( curPos, 3 ); curPos+=3; uint8_t queueType = bs.getFieldJustify( curPos, 4 ); curPos+=4; + // Verify if we have new format with port information + if ( versWithPorts ) + { + port = bs.getFieldJustify( curPos, 4 ); curPos+=4; + } // end if new format with ports + const char * type_str = " "; switch ( queueType ) { @@ -3524,7 +3551,17 @@ bool parseTdCtlrStateData( uint8_t * i_buffer, uint32_t i_buflen, } char data[DATA_SIZE] = ""; + + // Verify if we have valid port information + if ( versWithPorts ) + { + snprintf( data, DATA_SIZE, "%s on %s Port:%d", + type_str, rank_str, port ); + } // end if MCA (not MBA) + else + { snprintf( data, DATA_SIZE, "%s on %s", type_str, rank_str ); + } // end if MCA (not MBA) i_parser.PrintString( " TD Request", data ); } diff --git a/src/usr/diag/prdf/common/plugins/prdfParserEnums.H b/src/usr/diag/prdf/common/plugins/prdfParserEnums.H index a9ff6591a..b0f44b557 100644 --- a/src/usr/diag/prdf/common/plugins/prdfParserEnums.H +++ b/src/usr/diag/prdf/common/plugins/prdfParserEnums.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2013,2017 */ +/* Contributors Listed Below - COPYRIGHT 2013,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -341,8 +341,11 @@ namespace TD_CTLR_DATA // is non-zero when we add the tdCtlr state to the capture data enum Version { - IPL = 1, - RT = 2, + IPL = 1, + RT = 2, + // These 2 versions include the MCA port number + IPL_PORTS = 3, + RT_PORTS = 4 }; } // namespace TD_CTLR_DATA |

