summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/test
diff options
context:
space:
mode:
authorMike Baiocchi <baiocchi@us.ibm.com>2014-05-27 15:20:43 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-09-08 09:07:39 -0500
commitc57af7db48ddc21ce693057209c2a5070f8a5b62 (patch)
treef7adc0b3ad71ea1bf78ef8883977d9cc6eb0afbc /src/usr/pnor/test
parent2247727b334be86e50bd211ddecefcdbe3dcb700 (diff)
downloadblackbird-hostboot-c57af7db48ddc21ce693057209c2a5070f8a5b62.tar.gz
blackbird-hostboot-c57af7db48ddc21ce693057209c2a5070f8a5b62.zip
Enable Test to Validate Alt Master's LPC connection to PNOR
This commit adds a new test during istep 9.2 where all possible Alternative Master's will have their LPC connection to PNOR tested. The test will be done by creating a unique PnorDD class and reading out the PNOR's TOC. This commit also updates the PnorDD class to use a non-MASTER_PROCESSOR_CHIP_TARGET_SENTINEL target. Change-Id: I7c141b0527a6f4d0ec5a702e9961ce686dd66a48 Backport: release-fips820 RTC: 87871 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11348 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/test')
-rw-r--r--src/usr/pnor/test/pnorddtest.H20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/usr/pnor/test/pnorddtest.H b/src/usr/pnor/test/pnorddtest.H
index 652ed0597..d762875b0 100644
--- a/src/usr/pnor/test/pnorddtest.H
+++ b/src/usr/pnor/test/pnorddtest.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,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. */
@@ -996,7 +998,7 @@ class PnorDdTest : public CxxTest::TestSuite
sfc_cmd.opcode = PnorDD::SFC_OP_INVALID;
sfc_cmd.length = 0;
- mutex_lock(&(pnordd->cv_mutex));
+ mutex_lock(pnordd->iv_mutex_ptr);
l_err = pnordd->writeRegSfc(PnorDD::SFC_CMD_SPACE,
PnorDD::SFC_REG_CMD,
sfc_cmd.data32);
@@ -1007,16 +1009,16 @@ class PnorDdTest : public CxxTest::TestSuite
fails++;
// Unlock mutex for Error Log to be commited
- mutex_unlock(&(pnordd->cv_mutex));
+ mutex_unlock(pnordd->iv_mutex_ptr);
errlCommit(l_err,PNOR_COMP_ID);
// Lock mutex for next operation
- mutex_lock(&(pnordd->cv_mutex));
+ mutex_lock(pnordd->iv_mutex_ptr);
}
// Poll for complete status without waiting
l_err = pnordd->pollSfcOpComplete();
- mutex_unlock(&(pnordd->cv_mutex));
+ mutex_unlock(pnordd->iv_mutex_ptr);
total++;
if ( l_err == NULL )
@@ -1037,7 +1039,7 @@ class PnorDdTest : public CxxTest::TestSuite
sfc_cmd.opcode = PnorDD::SFC_OP_CHIPID;
sfc_cmd.length = 0;
- mutex_lock(&(pnordd->cv_mutex));
+ mutex_lock(pnordd->iv_mutex_ptr);
l_err = pnordd->writeRegSfc(PnorDD::SFC_CMD_SPACE,
PnorDD::SFC_REG_CMD,
sfc_cmd.data32);
@@ -1049,11 +1051,11 @@ class PnorDdTest : public CxxTest::TestSuite
fails++;
// Unlock mutex for Error Log to be commited
- mutex_unlock(&(pnordd->cv_mutex));
+ mutex_unlock(pnordd->iv_mutex_ptr);
errlCommit(l_err,PNOR_COMP_ID);
// Lock mutex for next operation
- mutex_lock(&(pnordd->cv_mutex));
+ mutex_lock(pnordd->iv_mutex_ptr);
}
// Poll for complete status without waiting
@@ -1076,7 +1078,7 @@ class PnorDdTest : public CxxTest::TestSuite
/* before continuing */
/*******************************************************/
l_err = pnordd->pollSfcOpComplete();
- mutex_unlock(&(pnordd->cv_mutex));
+ mutex_unlock(pnordd->iv_mutex_ptr);
total++;
if (l_err)
OpenPOWER on IntegriCloud