diff options
author | Ilya Smirnov <ismirno@us.ibm.com> | 2019-03-28 08:32:24 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-04-12 12:12:41 -0500 |
commit | d1d3f44dd9394894efd35b822c33ce36a6d01392 (patch) | |
tree | 1a4b83b5540eaf5edb612ddf6a347e5e8fc54897 /src/include/usr | |
parent | a9addc3db4f8940ca38fb63c99fcab26126c88f0 (diff) | |
download | talos-hostboot-d1d3f44dd9394894efd35b822c33ce36a6d01392.tar.gz talos-hostboot-d1d3f44dd9394894efd35b822c33ce36a6d01392.zip |
SMF: New Ultravisor White/Blacklist Handling
New procedure to call the SBE chip op to pass the SBE
the address at which it will populate the Ultravisor
XSCOM white/blacklist. The white/blacklist is also included
in hostboot reserved memory and is passed to HDAT.
Change-Id: If28854a73fa521297084bdee391fab95aa4f9a8a
RTC: 192422
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75238
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@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/preverifiedlidmgr.H | 9 | ||||
-rw-r--r-- | src/include/usr/secureboot/smf.H | 3 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/include/usr/hdat/hdat.H b/src/include/usr/hdat/hdat.H index 01a196a41..8f49368d5 100755 --- a/src/include/usr/hdat/hdat.H +++ b/src/include/usr/hdat/hdat.H @@ -226,6 +226,7 @@ enum hdatMsVpdRhbAddrRangeType : uint8_t RHB_TYPE_HOMER_OCC = 4, RHB_TYPE_VERIFIED_PNOR = 5, RHB_TYPE_UNSECURE_HOMER = 6, + RHB_TYPE_UVBWLIST = 7, RHB_TYPE_INVALID = 0xFF }; diff --git a/src/include/usr/runtime/preverifiedlidmgr.H b/src/include/usr/runtime/preverifiedlidmgr.H index c5c335ce0..00cea7c3e 100644 --- a/src/include/usr/runtime/preverifiedlidmgr.H +++ b/src/include/usr/runtime/preverifiedlidmgr.H @@ -88,6 +88,15 @@ class PreVerifiedLidMgr bool i_firstLid, uint64_t& o_resvMemAddr); + /** + * @brief Returns the next available address in hostboot reserved memory. + * The underlying math depends on the payload kind. + * + * @param[in] i_size the desired size of the reserved region + * @return uint64_t next available reserved memory address + */ + static uint64_t getNextResMemAddr(size_t i_size); + protected: /** diff --git a/src/include/usr/secureboot/smf.H b/src/include/usr/secureboot/smf.H index e062e56c9..90f5b769d 100644 --- a/src/include/usr/secureboot/smf.H +++ b/src/include/usr/secureboot/smf.H @@ -31,7 +31,8 @@ // The maximum size of the unsecure HOMER region in reserved memory #define MAX_UNSECURE_HOMER_SIZE (1 * PAGESIZE) - +// The size of the Ultravisor white/blacklist +#define UVBWLIST_SIZE (32 * KILOBYTE) namespace SMF_TRACE { extern trace_desc_t* g_trac_smf; |