From c44bd0f660c708c3e2b2cd7588c56e7c9c92e50c Mon Sep 17 00:00:00 2001 From: mbroyles Date: Wed, 28 Feb 2018 14:15:53 -0600 Subject: Support set data length command to improve AMESTER performance with Open BMC Change-Id: Ie788fad2a7e5a95f356244e88befce5d72a35a6e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54844 Tested-by: FSP CI Jenkins Reviewed-by: Douglas R. Gilbert Reviewed-by: Sheldon R. Bailey Reviewed-by: Christopher J. Cain Reviewed-by: Martha Broyles --- src/occ_405/cmdh/cmdh_fsp_cmds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/occ_405/cmdh') diff --git a/src/occ_405/cmdh/cmdh_fsp_cmds.c b/src/occ_405/cmdh/cmdh_fsp_cmds.c index 7e1e301..9f52c0a 100755 --- a/src/occ_405/cmdh/cmdh_fsp_cmds.c +++ b/src/occ_405/cmdh/cmdh_fsp_cmds.c @@ -57,7 +57,7 @@ extern bool G_vrm_thermal_monitoring; extern uint32_t G_first_proc_gpu_config; extern bool G_vrm_vdd_temp_expired; extern bool G_reset_prep; - +extern uint16_t G_amester_max_data_length; #include extern gpe_shared_data_t G_shared_gpe_data; @@ -1963,11 +1963,11 @@ errlHndl_t cmdh_amec_pass_through(const cmdh_fsp_cmd_t * i_cmd_ptr, l_rc = ERRL_RC_SUCCESS; } - // Protect IPMI from overflowing a buffer - if(l_rsp_data_length > IPMI_MAX_MSG_SIZE) + // Protect from overflowing buffer + if(l_rsp_data_length > G_amester_max_data_length) { TRAC_ERR("amester_entry_point returned too much data. Got back %d bytes, but we only support sending %d bytes to IPMI", - l_rsp_data_length, IPMI_MAX_MSG_SIZE); + l_rsp_data_length, G_amester_max_data_length); /* @ * @errortype * @moduleid AMEC_AMESTER_INTERFACE @@ -1985,7 +1985,7 @@ errlHndl_t cmdh_amec_pass_through(const cmdh_fsp_cmd_t * i_cmd_ptr, NULL, //Trace Buf DEFAULT_TRACE_SIZE, //Trace Size l_rsp_data_length, //userdata1 - IPMI_MAX_MSG_SIZE //userdata2 + G_amester_max_data_length //userdata2 ); l_rc = ERRL_RC_INTERNAL_FAIL; -- cgit v1.2.1