summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/occError.C
diff options
context:
space:
mode:
authorChris Cain <cjcain@us.ibm.com>2016-05-24 15:28:27 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-25 18:38:01 -0400
commit834bccc4c031d20d7c4b56f9d10b1cb91cc617db (patch)
treee24b640c5be1c649484502fdf094757402d95eca /src/usr/htmgt/occError.C
parentea83d6f50bdf030f18fab0e03bdf77183d2ba41a (diff)
downloadtalos-hostboot-834bccc4c031d20d7c4b56f9d10b1cb91cc617db.tar.gz
talos-hostboot-834bccc4c031d20d7c4b56f9d10b1cb91cc617db.zip
Add internal flag support to prevent OCC resets and query pstate tables
Change-Id: Ifd30c8bf36aa82c168afa3e34de7fd8f4d4e4cab RTC: 152379 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24987 Tested-by: Jenkins Server Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Sheldon R. Bailey <baileysh@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/occError.C')
-rw-r--r--src/usr/htmgt/occError.C14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/htmgt/occError.C b/src/usr/htmgt/occError.C
index 00e4cc0e1..9af585c17 100644
--- a/src/usr/htmgt/occError.C
+++ b/src/usr/htmgt/occError.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2015 */
+/* Contributors Listed Below - COPYRIGHT 2014,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -255,6 +255,18 @@ namespace HTMGT
ERRORLOG::errlCommit(err2, HTMGT_COMP_ID);
}
+ if (int_flags_set(FLAG_HALT_ON_OCC_SRC))
+ {
+ // Check if OCC SRC matches our trigger SRC
+ if ((l_occSrc & 0xFF) == (get_int_flags() >> 24))
+ {
+ TMGT_ERR("occProcessElog: OCC%d reported 0x%04X and "
+ "HALT_ON_SRC is set. Resets will be disabled",
+ iv_instance, l_occSrc);
+ set_int_flags(get_int_flags() | FLAG_RESET_DISABLED);
+ }
+ }
+
// Add full OCC error log data as a User Details section
l_errlHndl->addFFDC(OCCC_COMP_ID,
l_occElog,
OpenPOWER on IntegriCloud