summaryrefslogtreecommitdiffstats
path: root/src/usr/errl
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2018-03-12 15:35:04 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-03-13 14:23:49 -0400
commit75c7aea07bcb5d89c4e2f0b6b8dcae07991c96fc (patch)
treec675cf9c4e0b4735fd28adcec3fdc19d169eff43 /src/usr/errl
parenteb7c0e1f83275d0d1686bfddb493c96995062b4b (diff)
downloadtalos-hostboot-75c7aea07bcb5d89c4e2f0b6b8dcae07991c96fc.tar.gz
talos-hostboot-75c7aea07bcb5d89c4e2f0b6b8dcae07991c96fc.zip
Fix setting plid to the lastest one available at hbrt start
Had a bad check in code which caused all runtime errors to restart at 0x90000001. Need to mask off the first byte of found plid to compare against ERRLOG_PLID_POST_MAX. Change-Id: I34ab5b021270a22141415eb9d17682b59c393624 CQ:SW420777 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55658 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian E. Bakke <bbakke@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl')
-rw-r--r--src/usr/errl/errlmanager_common.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/errl/errlmanager_common.C b/src/usr/errl/errlmanager_common.C
index a9982d67e..b37fa86d5 100644
--- a/src/usr/errl/errlmanager_common.C
+++ b/src/usr/errl/errlmanager_common.C
@@ -165,7 +165,8 @@ void ErrlManager::setupPnorInfo()
}
// if this is 'my' type of plid (HB or HBRT) see if it's max
if (((l_id & FIRST_BYTE_ERRLOG) == ERRLOG_PLID_BASE ) &&
- (l_id > l_maxId ) && (l_id <= ERRLOG_PLID_POST_MAX))
+ (l_id > l_maxId ) &&
+ ((l_id & ERRLOG_PLID_MASK) <= ERRLOG_PLID_POST_MAX))
{
l_maxId = l_id;
OpenPOWER on IntegriCloud