diff options
author | Louis Stermole <stermole@us.ibm.com> | 2018-02-01 15:40:03 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-02-25 22:13:32 -0500 |
commit | d64041888fed00dca09fc88ecc4efab6d30aa34e (patch) | |
tree | c414d2f3d7ed91dba9ce594fb449f2c42508af33 /src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C | |
parent | def84fb4f7405be98194198ad404217ee21ab321 (diff) | |
download | talos-hostboot-d64041888fed00dca09fc88ecc4efab6d30aa34e.tar.gz talos-hostboot-d64041888fed00dca09fc88ecc4efab6d30aa34e.zip |
Add callout for when the DIMM to NEST freq ratio exceeds 1.5
Change-Id: I4d3e9db7d6bc6900b518397d41e87890dc1d5b0f
CQ: SW416091
RTC: 186535
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53226
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53239
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C index ce2bb06e1..a9bed597f 100644 --- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C @@ -28,7 +28,7 @@ /// @brief Calculate and save off DIMM frequencies /// // *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com> -// *HWP HWP Backup: Jacob Harvey <jlharvey@us.ibm.com> +// *HWP HWP Backup: Louis Stermole <stermole@us.ibm.com> // *HWP Team: Memory // *HWP Level: 3 // *HWP Consumed by: FSP:HB @@ -49,6 +49,7 @@ #include <lib/spd/spd_factory.H> #include <lib/freq/cas_latency.H> #include <lib/freq/sync.H> +#include <lib/workarounds/freq_workarounds.H> #include <generic/memory/lib/utils/c_str.H> #include <generic/memory/lib/utils/find.H> #include <lib/utils/count_dimm.H> @@ -82,6 +83,9 @@ extern "C" std::vector< std::vector<uint64_t> > l_min_dimm_freq(mss::MCS_PER_MC, std::vector<uint64_t> (mss::PORTS_PER_MCS, 0) ); std::vector<uint32_t> l_supported_freqs; + uint64_t l_mss_freq = 0; + uint32_t l_nest_freq = 0; + // If there are no DIMM, we can just get out. if (mss::count_dimm(l_mcbist) == 0) { @@ -162,6 +166,11 @@ extern "C" FAPI_TRY(mss::set_freq_attrs(l_mcbist, l_min_dimm_freq), "%s. Failed set_freq_attrs()", mss::c_str(i_target) ); + // Check MEM/NEST frequency ratio + FAPI_TRY( mss::freq_pb_mhz(l_nest_freq) ); + FAPI_TRY( mss::freq(l_mcbist, l_mss_freq) ); + FAPI_TRY( mss::workarounds::check_dimm_nest_freq_ratio(l_mcbist, l_mss_freq, l_nest_freq) ); + fapi_try_exit: return fapi2::current_err; |