diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2019-06-20 15:21:07 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-06-21 19:11:54 -0500 |
commit | fd59bd865bfb0fae22e0eba5c9187eb0660b0732 (patch) | |
tree | f896848174a0aa2d8cd9dfbe8b50c7766ed55916 /src | |
parent | 897e9b5b38e8ab67b42e4da10aeb66f4a5720847 (diff) | |
download | talos-hostboot-fd59bd865bfb0fae22e0eba5c9187eb0660b0732.tar.gz talos-hostboot-fd59bd865bfb0fae22e0eba5c9187eb0660b0732.zip |
Default NV state to Memory Not Preserved
During the restore portion of the IPL we will force NV_STATUS_FLAG
to indicate 'memory will not persist' (bit 0) since the logic
is not armed until later on.
Change-Id: I3008053081ae4f9cfe0406ab226639737e38b785
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/79334
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/isteps/nvdimm/nvdimm.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/isteps/nvdimm/nvdimm.C b/src/usr/isteps/nvdimm/nvdimm.C index 55170e5fd..7ae805df5 100644 --- a/src/usr/isteps/nvdimm/nvdimm.C +++ b/src/usr/isteps/nvdimm/nvdimm.C @@ -916,13 +916,15 @@ errlHndl_t nvdimmRestore(TargetHandleList i_nvdimmList, uint8_t &i_mpipl) for (TargetHandleList::iterator it = i_nvdimmList.begin(); it != i_nvdimmList.end();) { + // Default state during boot is unarmed, therefore not preserved + nvdimmSetStatusFlag(*it, NSTD_ERR_NOBKUP); + l_err = nvdimmValidImage(*it, l_imgValid); // No reason to run if we can't figure out // if there is an image or not if (l_err) { - nvdimmSetStatusFlag(*it, NSTD_ERR_NOPRSV); break; } |