summaryrefslogtreecommitdiffstats
path: root/src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-09-25 14:26:08 -0500
committerMartha Broyles <mbroyles@us.ibm.com>2017-10-18 12:33:08 -0400
commitbcc1e17b10e570791acb64649bbb7bd5e4d9348d (patch)
treec8967b8ceb72ce92e015301a0e09bd98b599d7cf /src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h
parentfa085f9b68802ec92a250eccca6ddb4152e7b61f (diff)
downloadtalos-occ-bcc1e17b10e570791acb64649bbb7bd5e4d9348d.tar.gz
talos-occ-bcc1e17b10e570791acb64649bbb7bd5e4d9348d.zip
Support for GPU config format version 2
Change-Id: I14108b7a5ea7ce4e3649ab164a6e6c905274c635 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46765 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Diffstat (limited to 'src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h')
-rwxr-xr-xsrc/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h b/src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h
index dbeb768..5dac7fa 100755
--- a/src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h
+++ b/src/occ_405/cmdh/cmdh_fsp_cmds_datacnfg.h
@@ -36,6 +36,7 @@
#include "cmdh_fsp.h"
#include "cmdh_fsp_cmds.h"
#include "apss.h"
+#include "occ_sys_config.h"
// Enum of the various CnfgData command formats that
// are sent to OCC over the TMGT<->OCC interface.
@@ -165,6 +166,37 @@ typedef struct __attribute__ ((packed))
}cmdh_avsbus_config_t;
// Used by TMGT to send OCC GPU data.
+// Header data for GPU version 2 cfg packet
+typedef struct __attribute__ ((packed))
+{
+ struct cmdh_fsp_cmd_header;
+ uint8_t format;
+ uint8_t version;
+ uint16_t total_non_gpu_max_pwr_watts;
+ uint16_t total_proc_mem_pwr_drop_watts;
+ uint8_t total_num_gpus_system;
+ uint8_t gpu_i2c_engine;
+ uint8_t gpu_i2c_bus_voltage;
+ uint8_t num_data_sets;
+}cmdh_gpu_cfg_header_v2_t;
+
+typedef struct __attribute__ ((packed))
+{
+ uint8_t gpu_num; // number 0...2 for GPU data is for
+ uint8_t i2c_port; // I2C port for this GPU
+ uint8_t i2c_addr; // I2C slave address for this GPU
+ uint8_t reserved;
+ uint32_t gpu_temp_sid; // GPU Core Temperature Sensor ID
+ uint32_t gpu_mem_temp_sid; // GPU Memory Temperature Sensor ID
+ uint32_t gpu_sid; // GPU Sensor ID for callout
+}cmdh_gpu_set_v2_t;
+
+typedef struct __attribute__ ((packed))
+{
+ cmdh_gpu_cfg_header_v2_t header;
+ cmdh_gpu_set_v2_t gpu_data[MAX_NUM_GPU_PER_DOMAIN];
+}cmdh_gpu_config_v2_t;
+
typedef struct __attribute__ ((packed))
{
struct cmdh_fsp_cmd_header;
OpenPOWER on IntegriCloud