diff options
Diffstat (limited to 'src/import/chips')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C | 11 | ||||
-rw-r--r-- | src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H | 7 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C b/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C index ab8235584..800869370 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C +++ b/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -49,7 +49,8 @@ fapi2::ReturnCode p9_update_security_ctrl(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip, - bool i_force_security) + bool i_force_security, + bool i_lock_sec_mailboxes) { FAPI_INF("p9_update_security_ctrl : Entering ..."); @@ -82,6 +83,12 @@ fapi2::ReturnCode p9_update_security_ctrl(const fapi2::Target<fapi2::TARGET_TYPE l_data64.setBit<PU_SECURITY_SWITCH_REGISTER_I2CM_TPM_DECONFIG_PROTECT>(); } + //Set bit 8 to set Abus mailbox lock + if(i_lock_sec_mailboxes) + { + l_data64.setBit<PU_SECURITY_SWITCH_REGISTER_ABUS_LOCK>(); + } + FAPI_TRY(fapi2::putScom(i_target_chip, PU_SECURITY_SWITCH_REGISTER_SCOM, l_data64)); } else diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H b/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H index ddf167960..68d4a0584 100644 --- a/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H +++ b/src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -51,11 +51,14 @@ typedef fapi2::ReturnCode (*p9_update_security_ctrl_FP_t)(const fapi2::Target<fa /// /// @param[in] i_target_chip Reference to TARGET_TYPE_PROC_CHIP target /// @param[in] i_force_security Forces setting of SUL and TDP (if attribute is set) +/// @param[in] i_lock_sec_mailboxes Forces locking of Abus security mailboxes +/// (only if security is asserted on the machine). /// @return FAPI2_RC_SUCCESS if success, else error code. extern "C" { fapi2::ReturnCode p9_update_security_ctrl(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target_chip, - bool i_force_security = false); + bool i_force_security = false, + bool i_lock_sec_mailboxes = false); } #endif |