diff options
| author | Stephen Cprek <smcprek@us.ibm.com> | 2017-12-05 14:38:47 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-12-11 17:57:54 -0500 |
| commit | a4dc66b8d1c6ef5d2f0c697f56a4797826a364dd (patch) | |
| tree | b1c5f92b504d7ec06dce58c0983e28bcd49d04e3 /src/usr/runtime | |
| parent | b98033264ca7353d7a5be17f061a5c3c5e476918 (diff) | |
| download | talos-hostboot-a4dc66b8d1c6ef5d2f0c697f56a4797826a364dd.tar.gz talos-hostboot-a4dc66b8d1c6ef5d2f0c697f56a4797826a364dd.zip | |
Specify actual SecureRom size into HDAT for POWERVM
Change-Id: I1d49d690976f9d29a9dad77c709bb4966b931afe
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50526
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/runtime')
| -rw-r--r-- | src/usr/runtime/populate_hbruntime.C | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C index 2c97ac2f7..e7ebbea54 100644 --- a/src/usr/runtime/populate_hbruntime.C +++ b/src/usr/runtime/populate_hbruntime.C @@ -1028,11 +1028,17 @@ errlHndl_t populate_HbRsvMem(uint64_t i_nodeId) // Align size for OPAL size_t l_secRomSizeAligned = ALIGN_X(l_secureRomSize, HBRT_RSVD_MEM_OPAL_ALIGN); + // @TODO: RTC:183697 determine if OPAL can also use the actual size + // and remove the need for l_hdatEntrySize + // Size to add to HDAT entry + size_t l_hdatEntrySize = l_secRomSizeAligned; uint64_t l_secureRomAddr = 0x0; if(TARGETING::is_phyp_load()) { l_secureRomAddr = l_prevDataAddr + l_prevDataSize; + // Specify actual size in HDAT entry for POWERVM + l_hdatEntrySize = l_secureRomSize; } else if(TARGETING::is_sapphire_load()) { @@ -1042,7 +1048,7 @@ errlHndl_t populate_HbRsvMem(uint64_t i_nodeId) l_elog = setNextHbRsvMemEntry(HDAT::RHB_TYPE_SECUREBOOT, i_nodeId, l_secureRomAddr, - l_secRomSizeAligned, + l_hdatEntrySize, HBRT_RSVD_MEM__SECUREBOOT); if(l_elog) { |

