diff options
author | Jacob Harvey <jlharvey@us.ibm.com> | 2017-07-10 16:42:09 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-08-18 10:52:26 -0400 |
commit | 25a46875b4bd8e7da5d5b2e342467ee2183e228b (patch) | |
tree | 0a5f26174ebbcb86dbe1fb407b79404dfa9a7708 /src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C | |
parent | d4c08be2b76339d60f098968bfe05f5a34a19c0b (diff) | |
download | talos-hostboot-25a46875b4bd8e7da5d5b2e342467ee2183e228b.tar.gz talos-hostboot-25a46875b4bd8e7da5d5b2e342467ee2183e228b.zip |
L3 work for mss xmls
mss_spd, mss_volt, mss_general, mss_data_buffer, mss_update_errors
Change-Id: I1252d6d11900e88e0842c234c5ed815063e68ec0
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42962
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44229
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: JACOB L. HARVEY <jlharvey@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C index 6dd274c8f..28e240df8 100644 --- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_attr_update.C @@ -28,9 +28,9 @@ /// @brief Programatic over-rides related to effective config /// // *HWP HWP Owner: Joe McGill <jmcgill@us.ibm.com> -// *HWP HWP Backup: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Jacob Harvey <jlharvey@us.ibm.com> // *HWP Team: Memory -// *HWP Level: 2 +// *HWP Level: 3 // *HWP Consumed by: FSP:HB @@ -94,7 +94,7 @@ p9_mss_attr_update_get_lx_offsets(const fapi2::Target<TARGET_TYPE_MCA>& i_target fapi2::MvpdKeyword& o_keyword, uint8_t& o_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("%s Start p9_mss_attr_update_get_lx_offsets", mss::c_str(i_target)); switch( mss::pos(i_target) ) { @@ -168,11 +168,10 @@ p9_mss_attr_update_get_lx_offsets(const fapi2::Target<TARGET_TYPE_MCA>& i_target } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_get_lx_offsets"); return fapi2::current_err; } - /// /// @brief Set ATTR_MSS_MVPD_FWMS from MVPD Lx keyword /// @param[in] i_target, the port target (e.g., MCA) @@ -185,7 +184,7 @@ p9_mss_attr_update_fwms(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_fwms"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -221,11 +220,10 @@ p9_mss_attr_update_fwms(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_fwms"); return fapi2::current_err; } - /// /// @brief Set ATTR_MSS_VREF_DAC_NIBBLE from MVPD Lx keyword /// @param[in] i_target, the port target (e.g., MCA) @@ -238,7 +236,7 @@ p9_mss_attr_update_dac_nibble(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_dac_nibble"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -264,11 +262,10 @@ p9_mss_attr_update_dac_nibble(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_dac_nibble"); return fapi2::current_err; } - /// /// @brief Set ATTR_MSS_VOLT_VDDR from MVPD Lx keyword /// @param[in] i_target, the port target (e.g., MCA) @@ -281,7 +278,7 @@ p9_mss_attr_update_vddr(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_vddr"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -310,12 +307,10 @@ p9_mss_attr_update_vddr(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_vddr"); return fapi2::current_err; } - - /// /// @brief Set ATTR_MSS_VPD_MR_DPHY_RLO from MVPD Lx keyword /// @param[in] i_target, the port target (e.g., MCA) @@ -328,7 +323,7 @@ p9_mss_attr_update_dphy_rlo(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_dphy_rlo"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -354,7 +349,7 @@ p9_mss_attr_update_dphy_rlo(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_dphy_rlo"); return fapi2::current_err; } @@ -371,7 +366,7 @@ p9_mss_attr_update_tsys_adr(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_tsys_adr"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -394,11 +389,10 @@ p9_mss_attr_update_tsys_adr(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_tsys_adr"); return fapi2::current_err; } - /// /// @brief Set ATTR_MSS_VPD_MR_TSYS_DATA from MVPD Lx keyword /// @param[in] i_target, the port target (e.g., MCA) @@ -411,7 +405,7 @@ p9_mss_attr_update_tsys_data(const fapi2::Target<TARGET_TYPE_MCA>& i_target, const uint8_t* i_record_data, const uint8_t i_f_s_offset) { - FAPI_DBG("Start"); + FAPI_DBG("Start p9_mss_attr_update_tsys_data"); // if group is valid, update attribute value associated with this port if (i_record_data[i_f_s_offset + @@ -434,7 +428,7 @@ p9_mss_attr_update_tsys_data(const fapi2::Target<TARGET_TYPE_MCA>& i_target, } fapi_try_exit: - FAPI_DBG("End"); + FAPI_DBG("End p9_mss_attr_update_tsys_data"); return fapi2::current_err; } @@ -447,7 +441,7 @@ fapi_try_exit: fapi2::ReturnCode p9_mss_attr_update_lx_mvpd(const fapi2::Target<TARGET_TYPE_MCA>& i_target) { - FAPI_INF("Start"); + FAPI_INF("Start p9_mss_attr_update_lx_mvpd"); uint32_t l_keyword_size; uint8_t l_keyword_data[CRP0_Lx_RECORD_SIZE_EXP]; @@ -470,7 +464,7 @@ p9_mss_attr_update_lx_mvpd(const fapi2::Target<TARGET_TYPE_MCA>& i_target) FAPI_ASSERT(l_keyword_size == CRP0_Lx_RECORD_SIZE_EXP, fapi2::P9_MSS_ATTR_UPDATE_MVPD_READ_ERR() - .set_TARGET(l_chip_target) + .set_CHIP_TARGET(l_chip_target) .set_KEYWORD_SIZE(l_keyword_size), "Invalid CRP0 keyword:%d record size (%s)", l_keyword, mss::c_str(l_chip_target)); @@ -490,7 +484,7 @@ p9_mss_attr_update_lx_mvpd(const fapi2::Target<TARGET_TYPE_MCA>& i_target) (l_keyword_data[Lx_VERSION_OFFSET] == Lx_V1_VALUE) || (l_keyword_data[Lx_VERSION_OFFSET] == Lx_V2_VALUE)), fapi2::P9_MSS_ATTR_UPDATE_MVPD_VERSION_ERR(). - set_TARGET(l_chip_target). + set_CHIP_TARGET(l_chip_target). set_VERSION(l_keyword_data[Lx_VERSION_OFFSET]), "Invalid CRP0 keyword:%d record version: %02X (%s)", l_keyword, l_keyword_data[Lx_VERSION_OFFSET], mss::c_str(l_chip_target)); @@ -510,7 +504,7 @@ p9_mss_attr_update_lx_mvpd(const fapi2::Target<TARGET_TYPE_MCA>& i_target) "Error from p9_mss_attr_update_tsys_data"); fapi_try_exit: - FAPI_INF("End"); + FAPI_INF("End p9_mss_attr_update_lx_mvpd"); return fapi2::current_err; } @@ -524,7 +518,7 @@ fapi_try_exit: fapi2::ReturnCode p9_mss_attr_update(const fapi2::Target<TARGET_TYPE_MCS>& i_target) { - FAPI_INF("Start"); + FAPI_INF("%s Start p9_mss_attr_update", mss::c_str(i_target) ); // if there are no DIMM, exit if (mss::count_dimm(i_target) == 0) @@ -541,6 +535,6 @@ p9_mss_attr_update(const fapi2::Target<TARGET_TYPE_MCS>& i_target) } fapi_try_exit: - FAPI_INF("End"); + FAPI_INF("%s End p9_mss_attr_update", mss::c_str(i_target) ); return fapi2::current_err; } |