From 834bccc4c031d20d7c4b56f9d10b1cb91cc617db Mon Sep 17 00:00:00 2001 From: Chris Cain Date: Tue, 24 May 2016 15:28:27 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Sheldon R. Bailey Reviewed-by: Daniel M. Crowell --- src/usr/htmgt/occError.C | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/usr/htmgt/occError.C') 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, -- cgit v1.2.1