Skip to content

Commit

Permalink
Enable TPM related HDAT sections for all service processors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nick Bofferding authored and dcrowell77 committed Jun 27, 2017
1 parent 31d0974 commit 4efa113
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/usr/runtime/populate_hbruntime.C
Expand Up @@ -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);
Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit 4efa113

Please sign in to comment.