summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/errludcallout.C
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/errludcallout.C
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/errludcallout.C')
-rw-r--r--src/usr/errl/errludcallout.C27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/usr/errl/errludcallout.C b/src/usr/errl/errludcallout.C
index 2aa851d64..334d3c9a2 100644
--- a/src/usr/errl/errludcallout.C
+++ b/src/usr/errl/errludcallout.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2014 */
+/* Contributors Listed Below - COPYRIGHT 2012,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -202,4 +202,29 @@ ErrlUserDetailsCallout::ErrlUserDetailsCallout(
} // Procedure callout
+//------------------------------------------------------------------------------
+// Sensor callout
+ErrlUserDetailsCallout::ErrlUserDetailsCallout(const uint32_t i_sensorID,
+ const HWAS::sensorTypeEnum i_sensorType,
+ const HWAS::callOutPriority i_priority)
+{
+ TRACDCOMP(g_trac_errl, "Sensor Callout");
+
+ // Set up ErrlUserDetails instance variables
+ iv_CompId = ERRL_COMP_ID;
+ iv_Version = 1;
+ iv_SubSection = ERRL_UDT_CALLOUT;
+
+ HWAS::callout_ud_t *pData;
+ pData = reinterpret_cast<HWAS::callout_ud_t *>
+ (reallocUsrBuf(sizeof(HWAS::callout_ud_t)));
+
+ pData->type = HWAS::SENSOR_CALLOUT;
+ pData->priority = i_priority;
+ pData->sensorId = i_sensorID;
+ pData->sensorType = i_sensorType;
+
+ TRACDCOMP(g_trac_errl, "Sensor Callout exit");
+} // Sensor callout
+
}
OpenPOWER on IntegriCloud