summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/test
diff options
context:
space:
mode:
authorBilicon Patil <bilpatil@in.ibm.com>2014-12-08 07:31:01 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-21 15:49:57 -0600
commitdb5b02f8ceaa6f2c4f9369531ca4f793a3e097ea (patch)
tree6992faf9c6c54f251ada13e5822c76154241d6c0 /src/usr/diag/prdf/test
parent02d511e560250343b3861ed67e52ae4fbfc9f1b6 (diff)
downloadtalos-hostboot-db5b02f8ceaa6f2c4f9369531ca4f793a3e097ea.tar.gz
talos-hostboot-db5b02f8ceaa6f2c4f9369531ca4f793a3e097ea.zip
PRD: Removing the Threshold Sync between HB and FSP
This change is part of a broader change to move PRD Mfg thresholds from being maintained in a file to being maintained as system attributes. Here, we are removing the code that was used to synchronize the PRD Mfg thresholds between FSP and Hostboot. We do not need it because the thresholds which now are common attributes are synchronized outside of PRD context. Change-Id: I0a738b5f5056ce51a484367b3648b6ccb0448947 RTC: 118150 CMVC-Prereq: SW287619 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14776 Tested-by: Jenkins Server Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15873
Diffstat (limited to 'src/usr/diag/prdf/test')
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfTest_MfgSync.H40
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimFspSyncSvc.C60
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimMfgSync.C29
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimMfgSync.H11
4 files changed, 12 insertions, 128 deletions
diff --git a/src/usr/diag/prdf/test/prdfTest_MfgSync.H b/src/usr/diag/prdf/test/prdfTest_MfgSync.H
index cc0de4ea7..2863bd822 100755
--- a/src/usr/diag/prdf/test/prdfTest_MfgSync.H
+++ b/src/usr/diag/prdf/test/prdfTest_MfgSync.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2015 */
+/* [+] 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. */
@@ -53,42 +55,6 @@ using namespace PRDF;
class PrdfTest_MfgSync: public CxxTest::TestSuite
{
public:
- void TestMfgThresSync(void)
- {
- #define PRDF_FUNC "PrdfTest_MfgThresSync"
- PRDF_ENTER(PRDF_FUNC);
-
- // Test 1: Test with mailbox status disabled
- getSimMfgSync().setMailBoxStatus(false);
- errlHndl_t l_err = getSimMfgSync().syncMfgThresholdFromFsp();
- if (l_err)
- {
- PRDF_ERR(PRDF_FUNC" MfgThresSync test1 failed to sync from FSP");
- PRDF_COMMIT_ERRL(l_err, ERRL_ACTION_REPORT);
- TS_FAIL(PRDF_FUNC" MfgThresSync test1 failed to sync from FSP");
- }
- else
- {
- PRDF_TRAC(PRDF_FUNC" MfgThresSync test1 is a success.");
- }
-
- // Test 2: Test with mailbox status enabled
- getSimMfgSync().setMailBoxStatus(true);
- l_err = getSimMfgSync().syncMfgThresholdFromFsp();
- if (l_err)
- {
- PRDF_ERR(PRDF_FUNC" MfgThresSync test2 failed to sync from FSP");
- PRDF_COMMIT_ERRL(l_err, ERRL_ACTION_REPORT);
- TS_FAIL(PRDF_FUNC" MfgThresSync test2 failed to sync from FSP");
- }
- else
- {
- PRDF_TRAC(PRDF_FUNC" MfgThresSync test2 is a success.");
- }
- PRDF_EXIT(PRDF_FUNC);
- #undef PRDF_FUNC
- }
-
void TestMfgTraceSync(void)
{
#define PRDF_FUNC "PrdfTest_MfgTraceSync"
diff --git a/src/usr/diag/prdf/test/prdfsimFspSyncSvc.C b/src/usr/diag/prdf/test/prdfsimFspSyncSvc.C
index 9cdb5620c..06b4d9d18 100755
--- a/src/usr/diag/prdf/test/prdfsimFspSyncSvc.C
+++ b/src/usr/diag/prdf/test/prdfsimFspSyncSvc.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2009,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2015 */
+/* [+] 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. */
@@ -52,15 +54,6 @@ void SimFspSyncSvc::processRequestMsg(msg_t * i_msg)
switch(i_msg->type)
{
- case MFG_THRES_SYNC_FROM_FSP:
- pError = sendMfgThresRespMsg(i_msg);
- if(NULL != pError)
- {
- PRDF_ERR(FUNC" sendMfgThresRespMsg returned error");
- PRDF_COMMIT_ERRL(pError, ERRL_ACTION_REPORT);
- }
- break;
-
case MFG_TRACE_SYNC_TO_FSP:
pError = processMfgTrace(i_msg);
if(NULL != pError)
@@ -79,53 +72,6 @@ void SimFspSyncSvc::processRequestMsg(msg_t * i_msg)
#undef FUNC
}
-errlHndl_t SimFspSyncSvc::sendMfgThresRespMsg(msg_t * i_msg) const
-{
- #define FUNC "[SimFspSyncSvc::sendMfgThresRespMsg]"
- PRDF_ENTER(FUNC);
- errlHndl_t l_errLog = NULL;
- uint8_t* l_extraData = NULL;
-
- do
- {
- SimFspMfgThresholdFile l_pMfgThresholdFile;
-
- // Override Mfg thresholds
- l_pMfgThresholdFile.overrideThreshold();
-
- uint32_t l_msgSize = l_pMfgThresholdFile.getThresholdSize();
-
- PRDF_TRAC("l_msgSize=%d", l_msgSize);
-
- i_msg->data[0] = 0;
- i_msg->data[1] = l_msgSize;
- i_msg->extra_data = NULL;
-
- if(0 == l_msgSize)
- {
- PRDF_TRAC(FUNC" no override MFG thresholds to send back");
- }
- else
- {
- i_msg->extra_data = malloc( l_msgSize );
- memset(i_msg->extra_data, 0, l_msgSize);
-
- l_extraData = static_cast<uint8_t*>(i_msg->extra_data);
-
- l_pMfgThresholdFile.packThresholdDataIntoBuffer(l_extraData,
- l_msgSize);
- }
-
-
- } while(0);
-
- PRDF_EXIT(FUNC);
-
- return l_errLog;
-
- #undef FUNC
-}
-
errlHndl_t SimFspSyncSvc::processMfgTrace(msg_t *i_msg) const
{
#define PRDF_FUNC "[SimFspSyncSvc::processMfgTrace]"
diff --git a/src/usr/diag/prdf/test/prdfsimMfgSync.C b/src/usr/diag/prdf/test/prdfsimMfgSync.C
index 1b4cbab78..b0ca814cc 100755
--- a/src/usr/diag/prdf/test/prdfsimMfgSync.C
+++ b/src/usr/diag/prdf/test/prdfsimMfgSync.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2015 */
+/* [+] 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. */
@@ -49,31 +51,6 @@ SimMfgSync::~SimMfgSync()
#undef FUNC
}
-errlHndl_t SimMfgSync::syncMfgThresholdFromFsp()
-{
- #define FUNC "[SimMfgSync::syncMfgThresholdFromFsp]"
- PRDF_ENTER( FUNC );
-
- errlHndl_t l_err = NULL;
-
- do
- {
- l_err = MfgSync::syncMfgThresholdFromFsp();
-
- if(NULL != l_err)
- {
- PRDF_TRAC( FUNC" syncMfgThresholdFromFsp failed" );
- }
-
- } while(0);
-
-
- PRDF_EXIT( FUNC );
-
- return l_err;
- #undef FUNC
-}
-
errlHndl_t SimMfgSync::syncMfgTraceToFsp(ErrorSignature *i_esig,
const PfaData &i_pfaData)
{
diff --git a/src/usr/diag/prdf/test/prdfsimMfgSync.H b/src/usr/diag/prdf/test/prdfsimMfgSync.H
index 928225d38..9a342a844 100755
--- a/src/usr/diag/prdf/test/prdfsimMfgSync.H
+++ b/src/usr/diag/prdf/test/prdfsimMfgSync.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2015 */
+/* [+] 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. */
@@ -62,13 +64,6 @@ class SimMfgSync : public MfgSync
virtual ~SimMfgSync();
/**
- * @brief sync from FSP mfg thresholds
- *
- * @return errlHndl_t
- */
- virtual errlHndl_t syncMfgThresholdFromFsp();
-
- /**
* @brief sync to FSP mfg trace data
*
* @param Error Signature
OpenPOWER on IntegriCloud