diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2013-05-29 21:49:49 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-01 10:58:58 -0500 |
commit | 76a52f0d023c7ebc7daee44dd409e760994dfcdb (patch) | |
tree | a38d16f233d9daf0c961fe40b3bc8abe4647e6c0 /src/usr/fsi | |
parent | 166d3eafee5895c793d53cd8b236ce5ec7e8dea3 (diff) | |
download | talos-hostboot-76a52f0d023c7ebc7daee44dd409e760994dfcdb.tar.gz talos-hostboot-76a52f0d023c7ebc7daee44dd409e760994dfcdb.zip |
FSI Fixes for multi-chip support
Changes include the following:
- Fix for modified slave break behavior
- Xscom chipid bug fix
RTC: 64149
Change-Id: Icd9c93ed265f0004ab4a726fcc01bde0cbe3eadf
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5097
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/fsi')
-rw-r--r-- | src/usr/fsi/fsidd.C | 47 | ||||
-rw-r--r-- | src/usr/fsi/fsidd.H | 8 |
2 files changed, 41 insertions, 14 deletions
diff --git a/src/usr/fsi/fsidd.C b/src/usr/fsi/fsidd.C index 85eeb267a..cf9681273 100644 --- a/src/usr/fsi/fsidd.C +++ b/src/usr/fsi/fsidd.C @@ -56,7 +56,6 @@ TRAC_INIT(&g_trac_fsir, "FSIR", KILOBYTE); //1K //#define TRACUCOMP(args...) TRACFCOMP(args) #define TRACUCOMP(args...) - namespace FSI { @@ -1006,7 +1005,21 @@ errlHndl_t FsiDD::handleOpbErrors(FsiAddrInfo_t& i_addrInfo, ERRORLOG::ErrlUserDetailsLogRegister l_eud_fsiT(i_addrInfo.fsiTarg); - l_err2 = read( 0x31D0, &data ); + // Read some error regs from scom + ERRORLOG::ErrlUserDetailsLogRegister + l_scom_data(iv_master); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020000ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020001ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020002ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020005ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020006ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020007ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020008ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020009ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x0002000Aull)); + l_scom_data.addToLog(l_err); + + l_err2 = read( i_addrInfo.opbTarg, 0x31D0, &data ); if( l_err2 ) { delete l_err2; @@ -1019,7 +1032,7 @@ errlHndl_t FsiDD::handleOpbErrors(FsiAddrInfo_t& i_addrInfo, } - l_err2 = read( 0x31D4, &data ); + l_err2 = read( i_addrInfo.opbTarg, 0x31D4, &data ); if( l_err2 ) { delete l_err2; @@ -1031,7 +1044,7 @@ errlHndl_t FsiDD::handleOpbErrors(FsiAddrInfo_t& i_addrInfo, DEVICE_FSI_ADDRESS(0x31D4ull)); } - l_err2 = read( 0x31D8, &data ); + l_err2 = read( i_addrInfo.opbTarg, 0x31D8, &data ); if( l_err2 ) { delete l_err2; @@ -1043,7 +1056,7 @@ errlHndl_t FsiDD::handleOpbErrors(FsiAddrInfo_t& i_addrInfo, DEVICE_FSI_ADDRESS(0x31D8ull)); } - l_err2 = read( 0x31DC, &data ); + l_err2 = read( i_addrInfo.opbTarg, 0x31DC, &data ); if( l_err2 ) { delete l_err2; @@ -1123,8 +1136,7 @@ errlHndl_t FsiDD::pollForComplete(FsiAddrInfo_t& i_addrInfo, break; } - //TODO tmp remove for VPO, need better polling strategy -- RTC43738 - //nanosleep( 0, 10,000 ); //sleep for 10,000 ns + nanosleep( 0,10000 ); //sleep for 10,000 ns elapsed_time_ns += 10000; } while( elapsed_time_ns <= MAX_OPB_TIMEOUT_NS ); // hardware has 1ms limit if( l_err ) { break; } @@ -1161,8 +1173,23 @@ errlHndl_t FsiDD::pollForComplete(FsiAddrInfo_t& i_addrInfo, i_addrInfo.opbTarg ).addToLog(l_err); + // Read some error regs from scom + ERRORLOG::ErrlUserDetailsLogRegister + l_scom_data(i_addrInfo.opbTarg); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020000ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020001ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020002ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020005ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020006ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020007ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020008ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x00020009ull)); + l_scom_data.addData(DEVICE_XSCOM_ADDRESS(0x0002000Aull)); + l_scom_data.addToLog(l_err); + l_err->collectTrace("FSI"); l_err->collectTrace("FSIR"); + break; } @@ -1433,7 +1460,7 @@ errlHndl_t FsiDD::initPort(FsiChipInfo_t i_fsiInfo, // before we run TARGETING::Target * sys = NULL; TARGETING::targetService().getTopLevelTarget( sys ); - TARGETING::SpFunctions spfuncs; + TARGETING::SpFunctions spfuncs = TARGETING::SpFunctions(); if( sys && sys->tryGetAttr<TARGETING::ATTR_SP_FUNCTIONS>(spfuncs) && spfuncs.fsiSlaveInit ) @@ -1496,11 +1523,11 @@ errlHndl_t FsiDD::initPort(FsiChipInfo_t i_fsiInfo, // resets everything to that window if( TARGETING::FSI_MASTER_TYPE_CMFSI == i_fsiInfo.type ) { - slave_offset |= CMFSI_SLAVE_3; + slave_offset |= CMFSI_SLAVE_0; } else if( TARGETING::FSI_MASTER_TYPE_MFSI == i_fsiInfo.type ) { - slave_offset |= MFSI_SLAVE_3; + slave_offset |= MFSI_SLAVE_0; } //Setup the FSI slave to enable HW recovery, lbus ratio diff --git a/src/usr/fsi/fsidd.H b/src/usr/fsi/fsidd.H index 59534b822..53b5f3937 100644 --- a/src/usr/fsi/fsidd.H +++ b/src/usr/fsi/fsidd.H @@ -66,7 +66,7 @@ class FsiDD errlHndl_t initializeHardware(); /** - * @brief Performs an FSI Read Operation to an absolute address + * @brief Performs an FSI Read Operation * * @param[in] i_target Chip target of FSI operation * @param[in] i_address Address to read (relative to target) @@ -393,11 +393,11 @@ class FsiDD OPB_STAT_BUSY = 0x00010000, /**< Bit 15 is the Busy bit */ OPB_STAT_READ_VALID = 0x00020000, /**< Bit 14 is the Valid Read bit */ OPB_STAT_ERR_OPB = 0x09F00000, /**< 4,7-11 are OPB errors */ - - //TODO RTC 65922 tmp err mask for BU -- SW190814 why Any err always on OPB_STAT_ERR_CMFSI = 0x00007C00, /**< 16-21 are cMFSI errors */ OPB_STAT_ERR_MFSI = 0x0000007C, /**< 24-29 are MFSI errors */ - OPB_STAT_ERR_ANY = OPB_STAT_ERR_OPB|OPB_STAT_ERR_CMFSI|OPB_STAT_ERR_MFSI, + OPB_STAT_ERR_ANY = (OPB_STAT_ERR_OPB | + OPB_STAT_ERR_CMFSI | + OPB_STAT_ERR_MFSI), }; /** |