From b77dbedc8f3c6597e409618e9a495bd616fe1c4f Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Tue, 29 May 2018 12:54:33 -0500 Subject: Add Locking of Abus Sec Mailboxes Add logic to support Abus security mailbox locking to p9_update_security_ctrl. This updated procedure will be called in istep 18 to secure the Abus mailboxes. Change-Id: Ie89df465299856d39dc5fa2bba6f9a9c38da469a RTC: 191005 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59489 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Nicholas E. Bofferding Reviewed-by: Michael Baiocchi Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59495 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Daniel M. Crowell --- .../chips/p9/procedures/hwp/perv/p9_update_security_ctrl.C | 11 +++++++++-- .../chips/p9/procedures/hwp/perv/p9_update_security_ctrl.H | 7 +++++-- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src') 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& 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(); } + //Set bit 8 to set Abus mailbox lock + if(i_lock_sec_mailboxes) + { + l_data64.setBit(); + } + 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& i_target_chip, - bool i_force_security = false); + bool i_force_security = false, + bool i_lock_sec_mailboxes = false); } #endif -- cgit v1.2.1