Skip to content

Commit

Permalink
PRD: Use common SetCallout method for TOD
Browse files Browse the repository at this point in the history
Change-Id: Ibbc01f852825c67371eb13998d717845a9fdf6b2
CQ: SW418420
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/62585
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/62814
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
bweisenb authored and zane131 committed Jul 19, 2018
1 parent 2d79288 commit c2b1cfa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/usr/diag/prdf/common/plat/p9/prdfP9TodPlugins.C
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <UtilHash.H>
#include <algorithm>
#include <prdfPlatProcConst.H>
#include <prdfCallouts.H>

using namespace TARGETING;

Expand Down Expand Up @@ -765,17 +766,8 @@ int32_t todStepCheckFault( ExtensibleChip * i_chip,

// Callout and gard TOD OSC
#ifdef __HOSTBOOT_MODULE
errlHndl_t errl =
ServiceGeneratorClass::ThisServiceGenerator().getErrl();
if ( NULL == errl )
{
PRDF_ERR( PRDF_FUNC "Failed to get the global error log" );
break;
}
errl->addClockCallout( mdmtList[i], HWAS::TODCLK_TYPE,
HWAS::SRCI_PRIORITY_HIGH,
HWAS::DECONFIG,
HWAS::GARD_Predictive );
i_stepcode.service_data->SetCallout(
PRDcallout( mdmtList[i], PRDcalloutData::TYPE_TODCLK ) );
#else
TargetHandle_t l_clockTarget = nullptr;
l_clockTarget = getConnectedChild( procOscTgtBl,
Expand Down
9 changes: 9 additions & 0 deletions src/usr/diag/prdf/common/plat/prdfRasServices_common.C
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,15 @@ errlHndl_t ErrDataService::GenerateSrcPfa( ATTENTION_TYPE i_attnType,
thisDeconfig,
thisGard);
}
else if(PRDcalloutData::TYPE_TODCLK == thiscallout.getType())
{
PRDF_ADD_CLOCK_CALLOUT(iv_errl,
thiscallout.getTarget(),
HWAS::TODCLK_TYPE,
thispriority,
thisDeconfig,
thisGard);
}
else if ( PRDcalloutData::TYPE_MEMMRU == thiscallout.getType() )
{
MemoryMru memMru (thiscallout.flatten());
Expand Down
1 change: 1 addition & 0 deletions src/usr/diag/prdf/common/plugins/prdfCalloutsData.H
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ enum MruType
TYPE_PCICLK,
TYPE_PCICLK0,
TYPE_PCICLK1,
TYPE_TODCLK,
};

} // end namespace PRDcalloutData
Expand Down

0 comments on commit c2b1cfa

Please sign in to comment.