summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/test
diff options
context:
space:
mode:
authorChris Phan <cphan@us.ibm.com>2014-06-12 16:28:58 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-07-14 13:30:51 -0500
commit239fb579b9d2b43c7c9f38b6bb734d3439a686e6 (patch)
tree1fdde0a7eaeb08944c349288e59c54ec06109c9c /src/usr/diag/prdf/test
parentcdc76c00e35d6b4347c294ea965dc6e11f876194 (diff)
downloadtalos-hostboot-239fb579b9d2b43c7c9f38b6bb734d3439a686e6.tar.gz
talos-hostboot-239fb579b9d2b43c7c9f38b6bb734d3439a686e6.zip
PRD: fix PLL related issues
Correct MNFG PLL threshold Clear MCIFIR bits in Hostboot Mask all chips in pll domain at threshold Fix PLL error log parser Change-Id: If20713fd9fb74a9757f63d081009ced43e55fdc4 CQ: SW265571 Backport: release-fips811 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11587 Tested-by: Jenkins Server Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11787 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/test')
-rwxr-xr-xsrc/usr/diag/prdf/test/makefile5
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfTest_CenTpLFir.H98
2 files changed, 102 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/test/makefile b/src/usr/diag/prdf/test/makefile
index 04d53c1c5..a55537a20 100755
--- a/src/usr/diag/prdf/test/makefile
+++ b/src/usr/diag/prdf/test/makefile
@@ -5,7 +5,9 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2012,2014
+# Contributors Listed Below - COPYRIGHT 2012,2014
+# [+] International Business Machines Corp.
+#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -83,5 +85,6 @@ TESTS += prdfTest_ProcCentFir.H
TESTS += prdfTest_ProcMbsFir.H
TESTS += prdfTest_ProcTpLFir.H
TESTS += prdfTest_CentCs.H
+TESTS += prdfTest_CenTpLFir.H
include ${ROOTPATH}/config.mk
diff --git a/src/usr/diag/prdf/test/prdfTest_CenTpLFir.H b/src/usr/diag/prdf/test/prdfTest_CenTpLFir.H
new file mode 100755
index 000000000..a532181fb
--- /dev/null
+++ b/src/usr/diag/prdf/test/prdfTest_CenTpLFir.H
@@ -0,0 +1,98 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/diag/prdf/test/prdfTest_CenTpLFir.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2014 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+
+#ifndef __TEST_PRDFCTPLFIR_H
+#define __TEST_PRDFCTPLFIR_H
+
+#ifdef __HOSTBOOT_MODULE
+ #include <cxxtest/TestSuite.H>
+ #include <errl/errlentry.H>
+ #include <errl/errlmanager.H>
+#else
+ #include <cxxtest/TestSuite.h>
+ #include <fsp/FipsGlobalFixture.H>
+ #include <errlentry.H>
+#endif
+
+#include <prdfTrace.H>
+#include <prdfMain.H>
+#include "prdfsimMacros.H"
+
+class CTPLFIR:public CxxTest::TestSuite
+{
+ public:
+
+ void TestCenPll(void)
+ {
+ PRDS_BEGIN("Centaur PLL test");
+
+ PRDS_ERROR_ENTRY("NODE{0}:MEMBUF{4}", PRDF::RECOVERABLE);
+
+ PRDS_EXPECTED_SIGNATURE("NODE{0}:MEMBUF{4}",0x00ed0000 );
+
+ //GLOBAL_RE_FIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x570F001B, 0x4000000000000000);
+
+ //TP_CHIPLET_RE_FIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x01040001, 0x4000000000000000);
+
+ //TP_LFIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x0104000a, 0x0000180000000000);
+
+ //TP_LFIR_ACT1
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x01040011, 0xFFFFFFFFFFFFFFFF);
+
+ PRDS_START_SIM();
+
+ PRDS_END();
+ }
+
+ void TestCenPllAtThreshold(void)
+ {
+ PRDS_BEGIN("Centaur PLL test At Threshold");
+
+ PRDS_ERROR_ENTRY("NODE{0}:MEMBUF{4}", PRDF::RECOVERABLE);
+
+ PRDS_EXPECTED_SIGNATURE("NODE{0}:MEMBUF{4}",0x00ed0000 );
+
+ //GLOBAL_RE_FIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x570F001B, 0x4000000000000000);
+
+ //TP_CHIPLET_RE_FIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x01040001, 0x4000000000000000);
+
+ //TP_LFIR
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x0104000a, 0x0000180000000000);
+
+ //TP_LFIR_ACT1
+ PRDS_SCR_WRITE("NODE{0}:MEMBUF{4}", 0x01040011, 0xFFFFFFFFFFFFFFFF);
+
+ PRDS_START_SIM();
+
+ PRDS_END();
+ }
+
+};
+#endif
OpenPOWER on IntegriCloud