Skip to content

Commit

Permalink
PRD: Nimbus symbol mark performance workaround
Browse files Browse the repository at this point in the history
Change-Id: Id73ad9bc28c63e5a7def5f066a7da273a762c288
CQ: SW453102
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69880
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70296
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
cnpalmer authored and zane131 committed Jan 16, 2019
1 parent a567fae commit e3ceaa6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/usr/diag/prdf/common/plat/mem/prdfMemMark.C
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,24 @@ uint32_t writeSymbolMark<TYPE_MCA>( ExtensibleChip * i_chip,
msName, i_chip->getHuid() );
}

// Nimbus symbol mark performance workaround
// When a symbol mark is placed at runtime
#ifdef __HOSTBOOT_RUNTIME

// Trigger WAT logic to 'disable bypass'
// Get the ECC Debug/WAT Control register
SCAN_COMM_REGISTER_CLASS * dbgr = i_chip->getRegister( "DBGR" );

// Set DBGR[8] = 0b1
dbgr->SetBit( 8 );
o_rc = dbgr->Write();
if ( SUCCESS != o_rc )
{
PRDF_ERR( PRDF_FUNC "Write() failed on DBGR: mca=0x%08x",
i_chip->getHuid() );
}
#endif

return o_rc;

#undef PRDF_FUNC
Expand Down
13 changes: 12 additions & 1 deletion src/usr/diag/prdf/common/plat/nimbus/nimbus_mca_regs.rule
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# OpenPOWER HostBoot Project
#
# Contributors Listed Below - COPYRIGHT 2016,2018
# Contributors Listed Below - COPYRIGHT 2016,2019
# [+] International Business Machines Corp.
#
#
Expand Down Expand Up @@ -242,3 +242,14 @@
capture group default;
};

############################################################################
# ECC Debug/WAT Control Register
############################################################################

register DBGR
{
name "ECC Debug/WAT Control Register";
scomaddr 0x07010A0B;
capture group default;
};

0 comments on commit e3ceaa6

Please sign in to comment.