Skip to content

Commit

Permalink
PRD: force read all registers for markstore reads
Browse files Browse the repository at this point in the history
Ensures we always have the latest data from markstore.

Change-Id: I080a49e1537bcf06e59b03f90f4b6bc2cd12385e
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34507
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35411
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed Jan 25, 2017
1 parent 0cf7d81 commit 46a90fa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/usr/diag/prdf/common/plat/mem/prdfMemMark.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016 */
/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -74,10 +74,10 @@ uint32_t readChipMark<TYPE_MCA>( ExtensibleChip * i_chip,
// get the mark store register
SCAN_COMM_REGISTER_CLASS * hwms = i_chip->getRegister( msName );

o_rc = hwms->Read();
o_rc = hwms->ForceRead(); // always read latest
if ( SUCCESS != o_rc )
{
PRDF_ERR( PRDF_FUNC "Read() failed on %s: i_chip=0x%08x",
PRDF_ERR( PRDF_FUNC "ForceRead() failed on %s: i_chip=0x%08x",
msName, i_chip->getHuid() );
}
else
Expand Down Expand Up @@ -195,10 +195,10 @@ uint32_t readSymbolMark<TYPE_MCA>( ExtensibleChip * i_chip,
// get the mark store register
SCAN_COMM_REGISTER_CLASS * fwms = i_chip->getRegister( msName );

o_rc = fwms->Read();
o_rc = fwms->ForceRead(); // always read latest
if ( SUCCESS != o_rc )
{
PRDF_ERR( PRDF_FUNC "Read() failed on %s: i_chip=0x%08x",
PRDF_ERR( PRDF_FUNC "ForceRead() failed on %s: i_chip=0x%08x",
msName, i_chip->getHuid() );
}
else
Expand Down

0 comments on commit 46a90fa

Please sign in to comment.