diff options
author | Chris Cain <cjcain@us.ibm.com> | 2017-08-24 11:24:12 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-09-07 14:25:17 -0400 |
commit | 87ff275e941937c256b5a00ddec76638b652f857 (patch) | |
tree | db2cec15f0ca5ccdaa11eadfebab4da5c7ab8c5b /src/usr/htmgt/htmgt_cfgdata.H | |
parent | a644d89cb2b6208789e72ac4bf7423ec0fea5d3b (diff) | |
download | talos-hostboot-87ff275e941937c256b5a00ddec76638b652f857.tar.gz talos-hostboot-87ff275e941937c256b5a00ddec76638b652f857.zip |
HTMGT: Config data changes for GPU support
Change-Id: I2b4a5a82791ee6c4531d102dad51389f9dedbe6c
RTC: 133828
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45480
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: Sheldon R. Bailey <baileysh@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_cfgdata.H')
-rw-r--r-- | src/usr/htmgt/htmgt_cfgdata.H | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/usr/htmgt/htmgt_cfgdata.H b/src/usr/htmgt/htmgt_cfgdata.H index 126b5f4c7..9d632889d 100644 --- a/src/usr/htmgt/htmgt_cfgdata.H +++ b/src/usr/htmgt/htmgt_cfgdata.H @@ -28,6 +28,7 @@ #include <targeting/common/target.H> #include "htmgt_occ.H" +#define MAX_GPUS 3 namespace HTMGT { @@ -53,6 +54,7 @@ namespace HTMGT OCC_CFGDATA_MEM_THROTTLE = 0x12, // Memory Throttle Settings OCC_CFGDATA_TCT_CONFIG = 0x13, // Thermal Control Treshold OCC_CFGDATA_AVSBUS_CONFIG = 0x14, // AVSBus Config + OCC_CFGDATA_GPU_CONFIG = 0x15, // GPU Config OCC_CFGDATA_FORMAT_END, // Marker to indicate last entry OCC_CFGDATA_CLEAR_ALL = 0xFF, // Clear All Active Config Data @@ -68,10 +70,12 @@ namespace HTMGT CFGDATA_CORES = 24, - CFGDATA_FRU_TYPE_PROC = 0x00, - CFGDATA_FRU_TYPE_MEMBUF = 0x01, - CFGDATA_FRU_TYPE_DIMM = 0x02, - CFGDATA_FRU_TYPE_VRM = 0x03, + CFGDATA_FRU_TYPE_PROC = 0x00, + CFGDATA_FRU_TYPE_MEMBUF = 0x01, + CFGDATA_FRU_TYPE_DIMM = 0x02, + CFGDATA_FRU_TYPE_VRM = 0x03, + CFGDATA_FRU_TYPE_GPU_CORE = 0x04, + CFGDATA_FRU_TYPE_GPU_MEMORY = 0x05, CFDATA_DVFS_NOT_DEFINED = 0xFF, }; @@ -116,6 +120,7 @@ namespace HTMGT { OCC_CFGDATA_MEM_THROTTLE, TARGET_ALL, TO_20SEC, CFGSTATE_ALL }, { OCC_CFGDATA_TCT_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL }, { OCC_CFGDATA_AVSBUS_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL }, + { OCC_CFGDATA_GPU_CONFIG, TARGET_ALL, TO_20SEC, CFGSTATE_ALL }, }; const size_t OCC_CONFIG_TABLE_SIZE = sizeof(occCfgDataTable) / sizeof(occCfgDataTable_t); @@ -227,6 +232,18 @@ namespace HTMGT uint8_t* o_data, uint64_t & o_size); /** + * Fills in the GPU Configuration Data message buffer + * + * @param[in] i_occ - the OCC target + * @param[out] o_data - preallocated buffer to fill in + * @param[out] o_size - set to the message size + * @pre o_data is large enough. + */ + void getGPUConfigMessageData(const TARGETING::TargetHandle_t i_occ, + uint8_t * o_data, + uint64_t & o_size); + + /** * Fill in the Frequency Point Configuration Data * message buffer. * |