summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/runtime/rt_errlmanager.C
Commit message (Collapse)AuthorAgeFilesLines
* Fix for missing HBRT error log after error injectedCorey Swenson2020-01-151-2/+8
| | | | | | | | | | | | | | | | | | An HBRT error log larger than 4K sent to the host will be truncated to 4K before it reaches HWSV, where a size mismatch prevents processing of the log. To avoid this, truncate the HBRT log to 4K before sending across interface to host. Change-Id: Ic2c354da99c0a4ccec00ce58cf6ef34bc02e7996 CQ:SW480758 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/88724 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
* Increment HBRT EID on every commitDan Crowell2018-09-281-0/+10
| | | | | | | | | | | | | | | | | | | When HBRT first boots we read ATTR_HOSTSVC_PLID to set our starting PLID/EID number. However, we never increment that attribute as we create new logs. This will result in HBRT reusing PLIDs if it ever reboots (e.g. after a crash or as part of a code update) and also when it restarts after a mpipl. Change-Id: I9f3b83f2be793908b62f3fb959fbbe590a4a1464 CQ: SW446539 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66611 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Disable-CI: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Allow HWSV to handle gard callouts during runtime for FSP systemsChristian Geddes2018-06-281-16/+23
| | | | | | | | | | | | | | | | There was a bug in the runtime code where if a errorlog was created and it had a deconfigure callout as well as a gard callout it would attempt to create a gard record for the callout. This caused PNOR reads which are not permitted in HBRT on systems with FSPs. Change-Id: Ie2e1019889e0087396acfa07c7ce93e24643f322 CQ: SW430100 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61505 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix EID range for HBRT logsDan Crowell2018-03-091-0/+1
| | | | | | | | | | | | | | Add back in the lost 0x89 subsystem specifier to the HBRT error logs. Change-Id: Idf9a5a90e79137df3745e5a3d387255e5c87f715 CQ: SW420482 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55364 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Initialize FIRDATA section and ErrlManager just incase BMC resetsMatt Derksen2018-03-071-0/+25
| | | | | | | | | | | | | | | | | | | PRD needs to read the PNOR to tell OCC where to write in the pnor. This will cache the PNOR section so PRD will not fail the read call. If an error is created with pnor inaccessible, errl manager could get stuck unless it was initialized first. Change-Id: Ia7212bf99e947a1016423b37aff6f13ddfc7190a CQ:SW412798 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54990 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> CI-Ready: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix rollover of PLID numbersMatt Derksen2018-02-211-1/+2
| | | | | | | | | | | | | | | | | | | | | Need to avoid incrementing into the processor node field of the PLID. Decided to use the highest bit in the last 3 bytes as a dividing bit. [0x##800000 - 0x##FFFFFF] -- for pre-boot setup errors. [0x##000000 - 0x##7FFFFF] -- for post setup errors When setting up from PNOR, we will look for the max EID in the post-setup range. If no max is found, restart at 0. Change-Id: I4a8811d9c93039090504ca9cf8c0eebc6812a4ca CQ:SW416592 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54362 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Handles FSP reset-reload in HBRT messagesRoland Veloz2017-12-211-31/+53
| | | | | | | | | | | | | | | | | For every instance where a firmware_request is made, it is possible to get an error if the FSP is doing a reset/reload. Now, if an error returned from the firmware_request call indicates that the FSP is doing a reset/reload, the firmware_request call will be made again. Also refactored the code. Consolidated the calls to firmware_request to another file to facilitate the adding/updating of messages. Change-Id: I5be440927ab255c55b40a0a0ed26f786d31a9317 RTC:182606 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50505 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>
* Added code to send an Error Log to FSP via the firmware_requestRoland Veloz2017-09-181-14/+66
| | | | | | | | | | | | Change-Id: I6ce94d9cbf62fa7d2afe53b83b6bc5588a39a5d6 RTC:178947 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45442 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Undo hbrt errl into pnor workaroundMatt Derksen2017-07-071-32/+2
| | | | | | | | | | | | | Change-Id: I0c00eb1a400410a72cabb89d57d80e70d0ab3ebe RTC: 131067 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42657 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
* Propagate attribute overrides up to the HBRT codeDan Crowell2017-04-161-2/+9
| | | | | | | | | | | | | | | | | | | | | | | Attribute overrides are stored in a separate tank of memory from the regular attribute values. This tank will be added as an additional reserved memory section for HBRT to consume (only if overrides exist). Also fixed a couple bugs encountered while testing: - No longer crashes if an error is created inside the targeting initialization code. - Added reserved bytes to RHB definition. Change-Id: I5b10f7ad8dfcb58c550868bb83c4d843f48e1aae RTC: 169942 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38547 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* enable saving GARD records to PNOR in runtime.Brian Horton2015-09-031-0/+23
| | | | | | | | | | Change-Id: I1ada7061d8fb258431b64c8e02bf84b019f7b25c CQ: SW315645 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19661 Tested-by: Jenkins Server Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* fix issues with dup sel/eselBrian Horton2015-09-031-6/+0
| | | | | | | | | | | | | | | | | | . call errlmanager ack inline/synchronously, so that we don't have dup eSELs due to shutdown . don't resend sensor SEL events for errorlogs read out of PNOR Depends-On: Ia2b211d8ebf489e92f2bc3d281d92175a6b61f30 Change-Id: I32c8e49ef2e00567987cdf030a225b61e7077cf6 CQ: SW312094 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19993 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* add support to write errlog to PNOR during runtimeBrian Horton2015-09-031-85/+86
| | | | | | | | | | | | | | | | Change-Id: Ia2b211d8ebf489e92f2bc3d281d92175a6b61f30 Depends-On: I170d6586062b6e4684a55782df83a1b19ed7d937 Depends-On: Id8c44b0dcdb5714c163ac6485a53216786f9fbcf Depends-On: I626bce5c8c0c8b7d0a44408280de178c7a86a83f RTC: 123419 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18233 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Tested-by: Jenkins OP HW Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* No SEL Callouts for Memory injects at runtimeRichard J. Knight2015-08-101-0/+20
| | | | | | | | | | | -Fixed runtime resolution of the flag which determines if an error log will be visable to the customer. Change-Id: Id8c44b0dcdb5714c163ac6485a53216786f9fbcf RTC:133158 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19658 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Runtime error log support in OpenPOWERStephen Cprek2015-02-241-6/+11
| | | | | | | | | | | Change-Id: I1bb13fede249ee09a65541cd04c6449b1bb555b2 RTC: 122885 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15712 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Modified functions to not allow deconfig's during HBRTElizabeth Liner2015-02-091-5/+9
| | | | | | | | | | | Change-Id: Icf91982f1c590323df2c28afe7c6a3a38d8583ef RTC:119076 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15276 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HBRT error log not being deletedDoug Gilbert2014-04-251-1/+3
| | | | | | | | | | | Change-Id: I2903425c721c77354dd778a1a66fe9678ac40f2c RTC: 106241 CQ: SW258964 Backport: release-fips810 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10769 Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* BEAM fixes in errlm, targeting, initservice, mvpd accessors, hwas, and mdiaBill Schwartz2014-03-131-7/+5
| | | | | | | | | | | | | | | | Partial updates for issues 94995 Errlm, 94996 targeting, 94998 istep/initservice 94999 VPD accessors, 95000 HWAS, and 95001 MDIA. Open issues require additional research: push_back memory leak, sync_cond_wait infinite loop, masterCpu uninitialized complaint, checkConstantsMatch template no effect, and shutdown has no effect. Issue will be updated with progress. Change-Id: If60fef67564a0c2cb2a10824100480095e896f17 RTC: 94995 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9492 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Hostboot runtime errl supportDoug Gilbert2013-10-171-0/+283
RTC: 79415 Change-Id: I2fd60b48046425692fb3921b46ac21b57e1dba96 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6349 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud