summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2017-06-21 09:08:26 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-06-27 13:23:52 -0400
commit4efa1130539e7a40a06e417770abfadf06e19d57 (patch)
treed4a2c341174f8b5900827ba1d8e91823067c5f44 /src/usr/runtime
parent31d097409bd233008676e4779c9e6a7582e8156f (diff)
downloadtalos-hostboot-4efa1130539e7a40a06e417770abfadf06e19d57.tar.gz
talos-hostboot-4efa1130539e7a40a06e417770abfadf06e19d57.zip
Enable TPM related HDAT sections for all service processors
Change-Id: I302a3c6ce5a6abfefc7f91ae46453e99ab255105 CMVC-Prereq: 1018579 RTC: 171851 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42213 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/runtime')
-rw-r--r--src/usr/runtime/populate_hbruntime.C15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C
index e7c6d1c8b..d0a43ed1d 100644
--- a/src/usr/runtime/populate_hbruntime.C
+++ b/src/usr/runtime/populate_hbruntime.C
@@ -1621,6 +1621,13 @@ errlHndl_t populate_TpmInfoByNode()
auto i2cAryOff =
l_pcrd->hdatPcrdIntData[HDAT::HDAT_PCRD_DA_HOST_I2C].hdatOffset;
+ // If pointer pair's offset value is 0, advance to next PCRD instance
+ // as this one has no I2C links
+ if(!i2cAryOff)
+ {
+ continue;
+ }
+
// Convert i2c array header offset to a pointer to the i2c array header
const auto l_hostI2cPcrdHdrPtr =
reinterpret_cast<HDAT::hdatHDIFDataArray_t*>(l_pcrdAddr + i2cAryOff);
@@ -1941,14 +1948,6 @@ errlHndl_t populate_hbTpmInfo()
errlHndl_t l_elog = nullptr;
do {
- // TODO RTC 171851 Remove FSP restriction when FSP code provides
- // Node TPM Related Data
-
- // Skip populating HDAT TPM Node Related Data on FSP systems
- if (INITSERVICE::spBaseServicesEnabled())
- {
- break;
- }
TRACFCOMP(g_trac_runtime, "Running populate_hbTpmInfo");
OpenPOWER on IntegriCloud