From 244cda98f3c221e9b09e791957646b9177c307be Mon Sep 17 00:00:00 2001 From: Brian Silver Date: Wed, 17 Aug 2016 08:29:44 -0500 Subject: Implement MRW attributes; dram_clks, db_util, 2n_mode ATTR_MSS_MRW_MEM_M_DRAM_CLOCKS ATTR_MSS_MRW_MAX_DRAM_DATABUS_UTIL ATTR_MSS_MRW_DRAM_2N_MODE TSYS_ADR, TSYS_DATA moved the MT VPD GPO, RLO, WLO moved to the MT VPD Update hb defaults Update unit test to catch the 2N mode MRW changes Change-Id: Ia16293495941fe4dd190196c00724ff69593303a Original-Change-Id: I3d998c70d30df978062ce923096ba741d597782e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28383 Dev-Ready: Brian R. Silver Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Matt K. Light Reviewed-by: Louis Stermole Reviewed-by: Christian R. Geddes Reviewed-by: Daniel M. Crowell Reviewed-by: ANDRE A. MARIN Reviewed-by: JACOB L. HARVEY Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31754 Tested-by: FSP CI Jenkins --- .../p9/procedures/hwp/memory/p9_mss_utils_to_throttle.C | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/import/chips/p9/procedures/hwp/memory/p9_mss_utils_to_throttle.C b/src/import/chips/p9/procedures/hwp/memory/p9_mss_utils_to_throttle.C index 48285cb3f..ba7039e82 100644 --- a/src/import/chips/p9/procedures/hwp/memory/p9_mss_utils_to_throttle.C +++ b/src/import/chips/p9/procedures/hwp/memory/p9_mss_utils_to_throttle.C @@ -62,27 +62,24 @@ extern "C" /// fapi2::ReturnCode p9_mss_utils_to_throttle( const fapi2::Target& i_target ) { - std::vector l_databus_util(mss::PORTS_PER_MCS, 0); + uint32_t l_databus_util = 0; std::vector l_throttled_cmds(mss::PORTS_PER_MCS, 0); uint32_t l_dram_clocks = 0; FAPI_TRY( mss::mrw_mem_m_dram_clocks(l_dram_clocks) ); - // TK - Who sets this attribute? OCC? Not set in eff_config for p8 - AAM - // If set by OCC can they just pass in value as a parameter? - AAM - FAPI_TRY( mss::databus_util( i_target, l_databus_util.data()) ); + FAPI_TRY( mss::mrw_max_dram_databus_util(l_databus_util) ); for( const auto& l_mca : mss::find_targets(i_target) ) { const auto l_port_num = mss::index( l_mca ); - FAPI_INF( "MRW dram clock window: %d, databus utilization[%d]: %d", + FAPI_INF( "MRW dram clock window: %d, databus utilization: %d", l_dram_clocks, - l_port_num, - l_databus_util[l_port_num] ); + l_databus_util ); // Calculate programmable N address operations within M dram clock window - l_throttled_cmds[l_port_num] = mss::throttled_cmds( l_databus_util[l_port_num], l_dram_clocks ); + l_throttled_cmds[l_port_num] = mss::throttled_cmds( l_databus_util, l_dram_clocks ); FAPI_INF( "Calculated N commands per port [%d] = %d", l_port_num, -- cgit v1.2.1