summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaymes Wilks <mjwilks@us.ibm.com>2018-04-11 08:01:20 -0500
committerNicholas E. Bofferding <bofferdn@us.ibm.com>2018-04-13 13:18:22 -0400
commit7cd7299e10e144417cfc2fe59b5b12f5573e339e (patch)
treec56878c9e965f17ff5b9cb3823e2ad39b3560ba6
parent21080c6885b10977d4a1fe51e2dba79cb67d26c8 (diff)
downloadtalos-hostboot-7cd7299e10e144417cfc2fe59b5b12f5573e339e.tar.gz
talos-hostboot-7cd7299e10e144417cfc2fe59b5b12f5573e339e.zip
Multinode SBE Window Support - Export OPAL
Extends SBE window support to open a new window for OPAL trace. Change-Id: Ifee6fe4a8cc1e58ca9ddd00d57c91356ad55cc3d RTC:191010 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57054 CI-Ready: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
-rw-r--r--src/include/usr/runtime/runtime.H2
-rw-r--r--src/usr/runtime/populate_hbruntime.C20
2 files changed, 22 insertions, 0 deletions
diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H
index 4613b1d73..3ed9d1fd4 100644
--- a/src/include/usr/runtime/runtime.H
+++ b/src/include/usr/runtime/runtime.H
@@ -235,6 +235,8 @@ enum SbeUnsecureMemoryRegions
{
SP_HOST_UNTRUSTED_COMM_AREA_ADDR = 0,
SP_HOST_UNTRUSTED_COMM_AREA_SIZE = 64*MEGABYTE,
+ SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR = 0x31000000,
+ SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE = 1*MEGABYTE,
};
/**
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C
index 687cad196..f2f23b31e 100644
--- a/src/usr/runtime/populate_hbruntime.C
+++ b/src/usr/runtime/populate_hbruntime.C
@@ -3334,6 +3334,26 @@ errlHndl_t openUntrustedSpCommArea()
break;
}
+
+ if (TARGETING::is_sapphire_load())
+ {
+ // Open Unsecure Memory Region for OPAL trace
+ l_err = SBEIO::openUnsecureMemRegion(
+ SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR,
+ SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE,
+ false, //Read-Only
+ l_procChip);
+ if(l_err)
+ {
+ TRACFCOMP( g_trac_runtime, ERR_MRK "openUntrustedSpCommArea(): openUnsecureMemRegion() for OPAL trace failed proc = 0x%X addr = 0x%016llx size = 0x%X",
+ l_id,
+ SP_HOST_UNTRUSTED_OPAL_TRACE_ADDR,
+ SP_HOST_UNTRUSTED_OPAL_TRACE_SIZE);
+
+ break;
+ }
+ }
+
}
if(l_err)
{
OpenPOWER on IntegriCloud