summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep14/call_mss_power_cleanup.C
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2019-05-02 15:20:15 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-06-03 10:26:25 -0500
commit5fd22b47f8d633b118265bae079793e8d90a51c1 (patch)
treee923f832604423f163e11b95cd05c49e7442bbac /src/usr/isteps/istep14/call_mss_power_cleanup.C
parentaf06bf24063e067ec0c6d7596588fc1716b2d4b9 (diff)
downloadtalos-hostboot-5fd22b47f8d633b118265bae079793e8d90a51c1.tar.gz
talos-hostboot-5fd22b47f8d633b118265bae079793e8d90a51c1.zip
NVDIMM encryption HW function support
Update random number generation, IPL and runtime. Write encryption regs to enable nvdimm encryption, crypto-erase, disable encryption. Read config-status reg to verify encryption state. Change-Id: I25625b53f90eeb542767fa729ebb47f8f8455a4b RTC:201474 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77321 Reviewed-by: Nicholas E. Bofferding <bofferdn@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: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep14/call_mss_power_cleanup.C')
-rw-r--r--src/usr/isteps/istep14/call_mss_power_cleanup.C5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/isteps/istep14/call_mss_power_cleanup.C b/src/usr/isteps/istep14/call_mss_power_cleanup.C
index c86d172be..db6bdf228 100644
--- a/src/usr/isteps/istep14/call_mss_power_cleanup.C
+++ b/src/usr/isteps/istep14/call_mss_power_cleanup.C
@@ -131,9 +131,10 @@ void* call_mss_power_cleanup (void *io_pArgs)
// Run the nvdimm management functions if the list is not empty
if (!l_nvdimmTargetList.empty()){
- // Must generate encryption keys before the restore
- NVDIMM::nvdimm_gen_keys(l_nvdimmTargetList);
+ NVDIMM::nvdimm_gen_keys();
+ NVDIMM::nvdimm_encrypt_unlock(l_nvdimmTargetList);
NVDIMM::nvdimm_restore(l_nvdimmTargetList);
+ NVDIMM::nvdimm_encrypt_enable(l_nvdimmTargetList);
}
}
#endif
OpenPOWER on IntegriCloud