summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/test
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2017-05-22 17:14:12 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-06-08 10:08:59 -0400
commit4c586e2298ffafed3c1979784e1626868bd46f58 (patch)
treeb2aab45ecab8d4023ed0f045ddd5370a2fec7320 /src/usr/pnor/test
parent72a32a1058877dd616c72777c6f7545c55117bed (diff)
downloadtalos-hostboot-4c586e2298ffafed3c1979784e1626868bd46f58.tar.gz
talos-hostboot-4c586e2298ffafed3c1979784e1626868bd46f58.zip
Disable Ring Overrides in Secure Mode
This commit disables ring overrides during the IPL and at Runtime when the system has security enabled. Change-Id: Ic3b0db92994a61d4ba6e28858bcd6fde59be6a23 RTC: 163094 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40818 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/test')
-rw-r--r--src/usr/pnor/test/pnorrptest.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/pnor/test/pnorrptest.H b/src/usr/pnor/test/pnorrptest.H
index f3d94ef99..d42ce93a5 100644
--- a/src/usr/pnor/test/pnorrptest.H
+++ b/src/usr/pnor/test/pnorrptest.H
@@ -41,6 +41,7 @@
#include <sys/mm.h>
#include <targeting/common/targetservice.H>
#include <devicefw/userif.H>
+#include <config.h>
#include <pnor/ecc.H>
#include "../pnorrp.H"
#include "../pnor_common.H"
@@ -78,7 +79,18 @@ class PnorRpTest : public CxxTest::TestSuite
for( uint64_t idx = 0; idx < numSections; idx++)
{
+ // RINGOVD is not supported when secureboot is enabled, but rather
+ // than looking for the expected fail like non-test code does, just
+ // skip testing RINGOVD in this scenario
+ if ( ( testSections[idx] == PNOR::RINGOVD ) &&
+ ( SECUREBOOT::enabled() ) )
+ {
+ TRACFCOMP(g_trac_pnor, "PnorRpTest::test_sectionInfo> Skipping RINGOVD since Security is enabled");
+ continue;
+ }
+
total++;
+
errhdl = PNOR::getSectionInfo( testSections[idx], info );
if( errhdl )
{
OpenPOWER on IntegriCloud