summaryrefslogtreecommitdiffstats
path: root/src/occ_405/occ_sys_config.h
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2017-06-07 16:38:45 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-06-12 13:17:45 -0400
commita635739ec0648a64e897b401915cedabf4123943 (patch)
treeef771a2c6a682d13e0edb3d3e93cf4d12d874276 /src/occ_405/occ_sys_config.h
parentdadf2726aa024c7100fe295af78bdfc2e88fb7ef (diff)
downloadtalos-occ-a635739ec0648a64e897b401915cedabf4123943.tar.gz
talos-occ-a635739ec0648a64e897b401915cedabf4123943.zip
OCC support for no APSS and new GPU Config Data
Change-Id: Id58a06378f3c0a7fd9fb436b96823eca15028031 RTC: 160889 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41513 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>
Diffstat (limited to 'src/occ_405/occ_sys_config.h')
-rwxr-xr-xsrc/occ_405/occ_sys_config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/occ_405/occ_sys_config.h b/src/occ_405/occ_sys_config.h
index 40416a7..14c2645 100755
--- a/src/occ_405/occ_sys_config.h
+++ b/src/occ_405/occ_sys_config.h
@@ -103,6 +103,14 @@ typedef union
#define MAX_GPU_DOMAINS 2
#define MAX_NUM_GPU_PER_DOMAIN 3
+//Returns non-0 if the specified GPU behind this OCC (not system wide) is present. Otherwise, returns zero.
+// NOTE: This is looking at the first GPU config, GPU config should not change after first determined, if
+// current GPU config is wanted to compare to the first check G_curr_proc_gpu_config
+extern uint32_t G_first_proc_gpu_config;
+#define GPU_PRESENT(occ_gpu_id) \
+ ((0x01 << occ_gpu_id) & G_first_proc_gpu_config)
+
+
// List of all possible APSS Channel assignments (Function IDs)
// Each channel in the APSS will be associated with only one of these
// function ids for each system type as defined in the mrw.
@@ -365,6 +373,7 @@ typedef struct
// AVS Bus config
avsbusData_t avsbus_vdd;
avsbusData_t avsbus_vdn;
+ uint16_t proc_power_adder;
// ------------------------------------
// Power Cap Configuration Data updated by Slaves
@@ -421,6 +430,13 @@ typedef struct
// (only first two columns populated)
mem_throt_config_data_t mem_throt_limits[MAX_NUM_MEM_CONTROLLERS][MAX_NUM_MCU_PORTS];
+ // --------------------------------------
+ // GPU Information for error callout and GPU power capping
+ // --------------------------------------
+ uint32_t gpu_sensor_ids[MAX_NUM_GPU_PER_DOMAIN];
+ uint16_t total_non_gpu_max_pwr_watts;
+ uint16_t total_proc_mem_pwr_drop_watts;
+
} occSysConfigData_t; __attribute__ ((__aligned__ (128)))
extern occSysConfigData_t G_sysConfigData;
OpenPOWER on IntegriCloud