summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorBenjamin Weisenbeck <bweisenb@us.ibm.com>2018-06-12 09:33:10 -0500
committerZane C. Shelley <zshelle@us.ibm.com>2018-06-17 16:34:54 -0400
commit3796a71a5012d917df0f33e97797eab5ad1d4b2e (patch)
tree24dddee16f7d1eb8aaea48691643cd1361732624 /src/usr
parent8186a367ec6f6aebab4c31842d1227d28e57fa65 (diff)
downloadtalos-hostboot-3796a71a5012d917df0f33e97797eab5ad1d4b2e.tar.gz
talos-hostboot-3796a71a5012d917df0f33e97797eab5ad1d4b2e.zip
PRD: Add missing centaur PLL CheckErrorType plugin
Change-Id: I766f82059433a1a66cbd9082d56be40c5efb09b1 CQ: SW433084 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60397 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/60523 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>
Diffstat (limited to 'src/usr')
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/p9/prdfCenPll.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/common/plat/p9/prdfCenPll.C b/src/usr/diag/prdf/common/plat/p9/prdfCenPll.C
index af550a457..d10f51d67 100755
--- a/src/usr/diag/prdf/common/plat/p9/prdfCenPll.C
+++ b/src/usr/diag/prdf/common/plat/p9/prdfCenPll.C
@@ -31,6 +31,7 @@
#include <prdfExtensibleChip.H>
#include <prdfPluginMap.H>
#include <prdfFsiCapUtil.H>
+#include <prdfP9Pll.H>
namespace PRDF
{
@@ -101,6 +102,30 @@ int32_t QueryPll( ExtensibleChip * i_chip,
PRDF_PLUGIN_DEFINE( cen_centaur, QueryPll );
/**
+ * @brief Examine chiplets to determine which type of PLL error has ocurred.
+ * There are no PCI clocks or switchovers reported on centaur, so the
+ * only errType to report here is SYS_PLL_UNLOCK
+ * @param i_chip Centaur chip
+ * @param o_errType enum indicating which type of PLL error is detected
+ * @returns Failure or Success
+ */
+int32_t CheckErrorType( ExtensibleChip * i_chip, uint32_t & o_errType )
+{
+ #define PRDF_FUNC "[Proc::CheckErrorType] "
+ int32_t rc = SUCCESS;
+ bool errFound = false;
+
+ rc = QueryPll( i_chip, errFound );
+
+ if ( (SUCCESS == rc) && errFound )
+ o_errType |= SYS_PLL_UNLOCK;
+
+ return SUCCESS;
+ #undef PRDF_FUNC
+}
+PRDF_PLUGIN_DEFINE( cen_centaur, CheckErrorType );
+
+/**
* @brief Clear the PLL error for Centaur Plugin
* @param i_chip Centaur chip
* @param i_sc The step code data struct.
OpenPOWER on IntegriCloud