diff options
| author | Stephen Cprek <smcprek@us.ibm.com> | 2017-06-15 17:27:51 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-08-16 09:32:53 -0400 |
| commit | 120522fd7f1e9b8e6942a63b43ba0b7c08aa504a (patch) | |
| tree | d8eef2f5b766069a554a9424f1bef4a86dc5317b /src/include/usr | |
| parent | 97c6fb65b1006ade6de7f1556338bee1d4058c0d (diff) | |
| download | talos-hostboot-120522fd7f1e9b8e6942a63b43ba0b7c08aa504a.tar.gz talos-hostboot-120522fd7f1e9b8e6942a63b43ba0b7c08aa504a.zip | |
Verify sections for HBRT and put in HB resv memory
Change-Id: I467fe768fce46aa182bbd3c32c090194262d4e75
RTC:175115
CMVC-coreq:1029391
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42009
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@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>
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/include/usr')
| -rwxr-xr-x | src/include/usr/hdat/hdat.H | 1 | ||||
| -rw-r--r-- | src/include/usr/runtime/runtime.H | 3 | ||||
| -rw-r--r-- | src/include/usr/util/utillidmgr.H | 14 | ||||
| -rw-r--r-- | src/include/usr/util/utillidpnor.H | 3 |
4 files changed, 20 insertions, 1 deletions
diff --git a/src/include/usr/hdat/hdat.H b/src/include/usr/hdat/hdat.H index 98c9b813d..8e7107a1c 100755 --- a/src/include/usr/hdat/hdat.H +++ b/src/include/usr/hdat/hdat.H @@ -221,6 +221,7 @@ enum hdatMsVpdRhbAddrRangeType : uint8_t RHB_TYPE_VERIFIED_LIDS = 2, RHB_TYPE_SECUREBOOT = 3, RHB_TYPE_HOMER_OCC = 4, + RHB_TYPE_VERIFIED_PNOR = 5, RHB_TYPE_INVALID = 0xFF }; diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H index 7a51984c8..67c6096cb 100644 --- a/src/include/usr/runtime/runtime.H +++ b/src/include/usr/runtime/runtime.H @@ -121,7 +121,8 @@ errlHndl_t populate_TpmInfoByNode(); // How many pointers/sections there are in HB reserved memory data // HOMER*8/OCC_Common/VPD/ATTR/HBRT_Image/Res/Res/Res -#define HB_RSV_MEM_NUM_PTRS 15 +// *Note: match with src/hdat/fsp/hdat.H HDAT_RHB_MAX_RANGE_ENTRIES_PER_NODE +#define HB_RSV_MEM_NUM_PTRS 50 //Note this means the Reserved Mem sub-section is the 6th //(0 based) of the MDT section (See HDAT spec) diff --git a/src/include/usr/util/utillidmgr.H b/src/include/usr/util/utillidmgr.H index f6a4762f4..9939fbe64 100644 --- a/src/include/usr/util/utillidmgr.H +++ b/src/include/usr/util/utillidmgr.H @@ -419,6 +419,15 @@ class UtilLidMgr */ void* iv_lidBuffer; + /** + * @brief Indicates that a lid is pre-verified in HbResvMem + * + * @param[in] i_section - Lid Id + * + * @return bool - True if lid is in HB reserved memory, false otherwise + */ + bool lidInHbResvMem(uint32_t i_lidId) const; + #endif // __HOSTBOOT_RUNTIME /** @@ -464,6 +473,11 @@ class UtilLidMgr */ bool iv_isLidInVFS; + /** + * @brief value indicating if lid is in hostboot reserved memory + */ + bool iv_isLidInHbResvMem; + }; #endif /* _UTILLIDMGR_H */ diff --git a/src/include/usr/util/utillidpnor.H b/src/include/usr/util/utillidpnor.H index c7daa00b7..dd4aa73c6 100644 --- a/src/include/usr/util/utillidpnor.H +++ b/src/include/usr/util/utillidpnor.H @@ -32,6 +32,9 @@ namespace Util { +// 4 byte LidId string plus NULL +extern const size_t lidIdStrLength; + /** @struct LidAndContainerLid * @brief Stores the Lid ID and corresponding Container Lid ID for a lid * |

