summaryrefslogtreecommitdiffstats
path: root/src/occ_405/cmdh
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2018-02-28 14:15:53 -0600
committerMartha Broyles <mbroyles@us.ibm.com>2018-03-01 15:53:32 -0500
commitc44bd0f660c708c3e2b2cd7588c56e7c9c92e50c (patch)
treecb0f4cdc60544838f5dd6a54885367602aa0d8ee /src/occ_405/cmdh
parente4bc12d978abd6731240375226e54081fc9dbb83 (diff)
downloadtalos-occ-c44bd0f660c708c3e2b2cd7588c56e7c9c92e50c.tar.gz
talos-occ-c44bd0f660c708c3e2b2cd7588c56e7c9c92e50c.zip
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 <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Sheldon R. Bailey <baileysh@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/cmdh')
-rwxr-xr-xsrc/occ_405/cmdh/cmdh_fsp_cmds.c10
1 files changed, 5 insertions, 5 deletions
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 <gpe_export.h>
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;
OpenPOWER on IntegriCloud