From 1aae1ba2930ceb5d72b9855c8003c1d8371c0791 Mon Sep 17 00:00:00 2001 From: Ilya Smirnov Date: Wed, 26 Sep 2018 10:35:24 -0500 Subject: Move HOMER BAR to Secure Memory in SMF Mode This commits enables HOMER BAR to point to the top of the secure memory on SMF-enabled systems. Consequently, the HOMER image and hostboot reserved memory will be moved to the secure memory if SMF is enabled. Change-Id: I37c7527b06688a41e57f14b4107ff53a507ffae8 RTC: 198825 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66702 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/targeting/common/util.H | 26 +------------------------- src/include/usr/targeting/targplatutil.H | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 25 deletions(-) (limited to 'src/include/usr/targeting') diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H index 479cdfa75..68b61b1f1 100644 --- a/src/include/usr/targeting/common/util.H +++ b/src/include/usr/targeting/common/util.H @@ -155,30 +155,6 @@ bool is_sapphire_load(void); */ bool is_avp_load(void); -/** - * @brief Utility function to obtain the highest known address in the system - */ -uint64_t get_top_mem_addr(); - -/** - * @brief Utility function to obtain the highest known address in a given proc - * - * @param[in] i_proc: Proc that we want to calculate the top address for - */ -uint64_t get_top_mem_addr(Target* i_proc); - -/** - * @brief Utility function to obtain the lowest known address in the system - */ -uint64_t get_bottom_mem_addr(); - -/** - * @brief Utility function to obtain the lowest known address in a given proc - * - * @param[in] i_proc: Proc that we want to calculate the bottom address for - */ -uint64_t get_bottom_mem_addr(Target* i_proc); - /** * Order two processor targets by NODE_ID then CHIP_ID. * @param[in] First processor target @@ -196,6 +172,6 @@ bool orderByNodeAndPosition( Target* i_firstProc, */ uint8_t is_fused_mode( ); -} +} // TARGETING #endif // __TARGETING_COMMON_UTIL_H diff --git a/src/include/usr/targeting/targplatutil.H b/src/include/usr/targeting/targplatutil.H index c13f1a0a8..34d8bebc0 100644 --- a/src/include/usr/targeting/targplatutil.H +++ b/src/include/usr/targeting/targplatutil.H @@ -58,6 +58,20 @@ namespace UTIL // is reserved for invalid sensor static const uint16_t INVALID_IPMI_SENSOR = 0xFF; + // WARNING: addition of risk levels that don't support SMF will have a + // significant effect on the behavior of SMF code. Please ensure that + // (at least) src/usr/secureboot/smf/smf_utils.C is updated + // accordingly! + typedef enum + { + P9N22_P9C12_RUGBY_FAVOR_SECURITY = 0x00, + P9N22_P9C12_RUGBY_FAVOR_PERFORMANCE = 0x01, + P9N22_NO_RUGBY_MITIGATIONS = 0x02, + P9N22_P9N23_JAVA_PERF = 0x03, + P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_SECURITY = 0x04, + P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_PERFORMANCE = 0x05, + } Risk_level; + /** * @brief Creates a standard error log of tracing type * -- cgit v1.2.1