From e86e4e16585343c8e1669038b3c3c88d00799c88 Mon Sep 17 00:00:00 2001 From: Brian Silver Date: Fri, 10 Jun 2016 11:11:09 -0500 Subject: Change mss lib so testing works with ATTR_IS_SIMULATION false Add eff_config to p9_mss_ut.C so it's run for all tests Fix the freq sync unit test to not trash mss_freq Fix the attribute file to be in line with the base attibutes Fix p9_msS_freq.H include guard Fix DRAM_BL to be a 2D array in mss attribute file Change-Id: Id18ab3eb4b60f72af64c647f5ff7afe68b7e5097 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25651 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: ANDRE A. MARIN Reviewed-by: Louis Stermole Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25653 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H') diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H b/src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H index bed4e6e77..754e4c16e 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H @@ -48,6 +48,8 @@ inline uint64_t freq_bitfield_helper( const uint64_t i_freq ) { fapi2::buffer l_data(0b1000); + FAPI_DBG("freq_bitfield_helper seeing MT/s: %d", i_freq); + // Shift l_data over based on freq. switch(i_freq) { @@ -64,7 +66,14 @@ inline uint64_t freq_bitfield_helper( const uint64_t i_freq ) l_data >>= 1; break; - // 2666 is >> 0 + case fapi2::ENUM_ATTR_MSS_FREQ_MT2666: + l_data >>= 0; + break; + + default: + FAPI_ERR("Unkown MT/s: %d", i_freq); + fapi2::Assert(false); + break; }; return l_data; -- cgit v1.2.1