summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/plugins
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-08-15 16:44:36 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-09-01 09:38:11 -0400
commit3d4caf24f7e90f183f93cbcb915470f7205bb7f4 (patch)
tree2dfba534dc100960f8d4a40d9fbbfef9ff832b61 /src/usr/errl/plugins
parent7b2191a74ffc3b431c9ddb6c75b0fefc7f20d133 (diff)
downloadtalos-hostboot-3d4caf24f7e90f183f93cbcb915470f7205bb7f4.tar.gz
talos-hostboot-3d4caf24f7e90f183f93cbcb915470f7205bb7f4.zip
Added Error log support for new GPU sensors
Change-Id: I8a0de390516fd02df07860b960db506899b13f14 RTC:178218 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45116 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl/plugins')
-rw-r--r--src/usr/errl/plugins/errludcallout.H24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/usr/errl/plugins/errludcallout.H b/src/usr/errl/plugins/errludcallout.H
index 95e147083..abce1fb74 100644
--- a/src/usr/errl/plugins/errludcallout.H
+++ b/src/usr/errl/plugins/errludcallout.H
@@ -297,6 +297,30 @@ case HWAS::_type: i_parser.PrintString( "Procedure", #_type); break;
#undef case_PROCEDURE
break; // PROCEDURE_CALLOUT
}
+
+ case HWAS::SENSOR_CALLOUT:
+ {
+ i_parser.PrintString( "Callout type", "Sensor Callout");
+
+ i_parser.PrintNumber( "Sensor ID", "0x%X",
+ ntohl(pData->sensorId));
+
+ switch (ntohl(pData->sensorType))
+ {
+#define case_SENSOR_TYPE(_type) \
+case HWAS::_type: i_parser.PrintString( "Sensor Type", #_type); break;
+ case_SENSOR_TYPE(GPU_FUNC_SENSOR)
+ case_SENSOR_TYPE(GPU_TEMPERATURE_SENSOR)
+ case_SENSOR_TYPE(GPU_MEMORY_TEMP_SENSOR)
+ case_SENSOR_TYPE(UNKNOWN_SENSOR)
+ default:
+ i_parser.PrintNumber( "Sensor Type", "UNKNOWN: 0x%X",
+ ntohl(pData->sensorType) );
+ break;
+ } // switch sensorType
+#undef case_SENSOR_TYPE
+ break;
+ }
default:
i_parser.PrintNumber( "Callout type", "UNKNOWN: 0x%X",
ntohl(pData->type) );
OpenPOWER on IntegriCloud