diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2018-06-18 23:05:31 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-07-03 09:18:52 -0400 |
commit | e5dfc3ab0ec51ee63205c7064b7b4a4c4b8ba46f (patch) | |
tree | 76ccf82718d46c0bb7bbb5cbcf451d2bbd03aaf6 /src/usr/util | |
parent | 691894a135de3e81f4318a5498c4a964fdebb8ae (diff) | |
download | talos-hostboot-e5dfc3ab0ec51ee63205c7064b7b4a4c4b8ba46f.tar.gz talos-hostboot-e5dfc3ab0ec51ee63205c7064b7b4a4c4b8ba46f.zip |
Allow SPDX override as part of FW load
Memory VPD contents have changed since the cards have been
built so we need to provide a method to override the data
as part of a FW build. We have done the same thing
previously for the MEMD record on the Nimbus machines
so will use the same design here for SPDX.
As part of this change, the previous MEMD support was
refactored to be completely generic so a single code path
can be used for any arbitrary record.
Change-Id: I5af5e965429c881be3de0d18c82b1d7918ac9c22
CQ: SW430659
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61190
Tested-by: Jenkins Server <pfd-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>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60980
Diffstat (limited to 'src/usr/util')
-rw-r--r-- | src/usr/util/runtime/util_rt.C | 2 | ||||
-rw-r--r-- | src/usr/util/utilrsvdmem.C | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/util/runtime/util_rt.C b/src/usr/util/runtime/util_rt.C index 3dc3935f3..468db6ee7 100644 --- a/src/usr/util/runtime/util_rt.C +++ b/src/usr/util/runtime/util_rt.C @@ -28,7 +28,6 @@ #include <util/utilrsvdmem.H> #include <util/runtime/util_rt.H> - /** * @brief Get the address of a reserved hostboot memory region by its label * @param[in] i_label HBRT_MEM_LABEL_ constant @@ -55,6 +54,7 @@ uint64_t hb_get_rt_rsvd_mem(Util::hbrt_mem_label_t i_label, case Util::HBRT_MEM_LABEL_PADDING: case Util::HBRT_MEM_LABEL_HYPCOMM: case Util::HBRT_MEM_LABEL_TRACEBUF: + case Util::HBRT_MEM_LABEL_VPD_MEMD: if( (g_hostInterfaces != NULL) && (g_hostInterfaces->get_reserved_mem) ) { diff --git a/src/usr/util/utilrsvdmem.C b/src/usr/util/utilrsvdmem.C index 32859f311..e0a788b33 100644 --- a/src/usr/util/utilrsvdmem.C +++ b/src/usr/util/utilrsvdmem.C @@ -62,6 +62,7 @@ namespace Util case HBRT_MEM_LABEL_PADDING: case HBRT_MEM_LABEL_HYPCOMM: case HBRT_MEM_LABEL_TRACEBUF: + case HBRT_MEM_LABEL_VPD_MEMD: // Find offset of label section for (uint16_t i = 0; i < toc_ptr->total_entries; i++) { |