summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwas/common/hwasCommon.H
Commit message (Collapse)AuthorAgeFilesLines
* Improve performance of general PG algorithmMatthew Raybuck2019-03-181-1/+70
| | | | | | | | | | | | | | | | | | | The previous PG algorithm had several places where targets would be rechecked or modified unnecessarily. This commit restructures the PG algorithm and pulls all related code out of discoverTargets and adds it to checkPartialGoodForDescendants which will be called by discoverTargets. Change-Id: I045f17f7ac22c673633cd3d951997b2371be1b8d RTC:206066 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72732 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: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Better logging for Partial Good Issues (1.5/2)Matt Raybuck2019-01-041-126/+32
| | | | | | | | | | | | | | | | | Add necessary files for HWSV team to be able to make changes for (2/2) Change-Id: I1cc0c799d9fb743f9ab19dd0393015f16a3d4c01 RTC:180365 CMVC-Prereq:1074242 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70003 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: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove hardcoding of partial good logic (2/2)Matt Raybuck2018-12-031-10/+27
| | | | | | | | | | | | | | | | | The original pg logic was a hard-coded criss-crossed jumble of logic that was difficult to understand. It has now been generalized to an algorithm that applies the correct logic based on a set of rules kept in a table. This should make it easier to understand and maintain going forward. Change-Id: I51435cc2ca6bbfa9ebc8a3d52d4ebf23b5bd2730 RTC:193270 CMVC-Prereq: 1072559 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68232 Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update PG detection for new Axone memory targetsChristian Geddes2018-09-051-2/+7
| | | | | | | | | | | | | | | Add support for presence detection of new OMI, OMIC, and MCC targets. Detection is done by looking at the MC01, and MC23 PG data. Change-Id: I2706bb28f64df653546ce22451e690507be09d8e RTC: 197541 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64966 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: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* TI w/ unrecoverable error if system boots w/ mismatching processorsChristian Geddes2017-12-081-0/+11
| | | | | | | | | | | | | | | | | | | | We do not support processor modules w/ different EC levels to be on the same system. The rule is that all processors must match the master processor. If this is not true then hostboot will TI. Techically we could probably still boot and just gard out the non-matching proc's but the use case for this will be lab/manufac. For those cases we want the technician to know right away that they put a module w/ the wrong DD level in a system. RTC: 183243 Change-Id: I09b30550edd30c8523fd2a709c7b7a83f597eab8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50167 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-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>
* Partial good updates for CumulusMarty Gloff2017-09-291-3/+7
| | | | | | | | | | | | | | | | Handle differences in PG data for Cumulus that may not have been identified or finalized for the initial P9 development. Change-Id: Ibec5a31cca5e8cf62d3671698e09c01f24619d1e RTC: 134608 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44020 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fixing XBUS PG lookup to mark both E44D and E55D as valid entriesPrachi Gupta2017-03-041-1/+11
| | | | | | | | | | | | | | | | | | | | | | | Currently, there are two version of the MVPD PG keyword: - E44D == XBUS0 bad - E45D and E55D == XBUS0 and 2 bad Spec indicates that both iox (second nibble) and pbiox (third nibble) are bad for sforza and monza type modules. We support generically the following cases: - 0xE50D --> xbus chiplet good - 0xE40D --> xbus chiplet good and rely solely on the pbiox as the Xbus target indicator (0x0040, 0x0020, 0x0010) for all types of chips. Change-Id: If7a3c128180321adab083f3e40f2dd0a645318e7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37007 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: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Disable bad MCAs based on CRP0:Lx keyword dataMarty Gloff2017-02-131-5/+2
| | | | | | | | | | | | | | | | | The CRP0 record has 8 records (L1-L8) that correspond to the 8 ports (MCA targets) for the chip. One of the fields inside the keyword indicates if the port is disabled. This field marks the MCA as non-functional, but the MCA remains present. Change-Id: I2c7c89c9567ec9f048a426b2204b18e10ccda601 RTC:166354 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34256 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-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> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Disable bad MCAs based on CRP0:Lx keyword datacrgeddes2017-01-141-1/+32
| | | | | | | | | | | | | | | | | The CRP0 record has 8 records (L1-L8) that correspond to the 8 ports (MCA targets) for the chip. One of the fields inside the keyword indicates if the port is disabled. This field marks the MCA as non-functional, but the MCA remains present. Change-Id: Iccc943ad477a90a25aeaff67572b66126c759913 RTC:166354 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34885 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* Rollup non-functional EC to EQ level while processing PG vpdMatt Derksen2016-11-281-0/+1
| | | | | | | | | | | | | | An EQ has 2 EXs which each have 2 ECs. If the ECs are all bad, roll that non-functional status up to the EQ level. Change-Id: I0ffcb1679bc00c435fcbd6c439cba84da0311472 RTC:163413 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32546 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Enforce magic mca port is good in PGMatt Derksen2016-11-281-0/+3
| | | | | | | | | | | | | | | | One MCA (the first one = mca0 or mca4) on each MCBIST must be functional for zqcal to work on any of the MCAs on that side. If magic mca port marked bad in PG vpd, force a deconfig of associated MCBIST to take out the entire half Change-Id: Id14be518aedf9c803717a4065e66527369bb286b RTC:163405 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32271 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Handle ioppe in Xbus PG fieldDean Sanner2016-10-191-7/+7
| | | | | | | | | | | | | Based on Partial Good v9 the ioppe was added to xbus and xbus is the pbiox regions not iox Change-Id: I65384c542eb86d57f11bb77c9a4f6ef0a8cf757c CMVC-Coreq: 1008809 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31431 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-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>
* Remove core reduction based on PR fieldDan Crowell2016-09-261-17/+2
| | | | | | | | | | | | | The PR field that specifies the number of cores to enable in a given FRU has been removed for P9. Instead, the PG keyword in the module vpd will be the only indicator of the good cores. Change-Id: Ib22a5779b6beba7a4da19659f7c003a8fffb0855 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29339 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update Xbus hwas rules and call pcie_scominit for all procsDean Sanner2016-09-251-3/+7
| | | | | | | | | | Change-Id: I10db2fecc8a4b5571f7a8f9551954c107a2ebf2a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28110 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Minor PG tweaksDan Crowell2016-07-211-1/+2
| | | | | | | | | | | | | | Change bit to check for PERV targets (use bit3) Set ATTR_PG based on VPD data Make ATTR_PG writeable Change-Id: Id31b39667ae66f274761402e1369c56d4817565f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27219 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* P9 - PG partial good keywordsMarty Gloff2015-12-111-30/+111
| | | | | | | | | | | | Processing of PG Keyword version x'02' Partial Good Vectors Change-Id: I7d239495c237f09edaa2addc538ced5e389009d6 RTC:127213 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18349 Tested-by: Jenkins Server Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* 62392: HB Common Resource RecoveryDhruvaraj S2015-03-091-1/+5
| | | | | | | | | | | | | | | | | HB Common resource recovery will recover any resources which is not garded by a FATAL error and try to use in the system for the current IPL Change-Id: I6ea4114ba19f47f062ec04449c3e0209d85a1faf RTC: 62392 CQ: SW291079 CMVC-Coreq: 948355 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15678 Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding <bofferdn@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>
* Fix spelling mistakes using codespell.Patrick Williams2015-01-151-3/+7
| | | | | | | | | | | | - See https://github.com/lucasdemarchi/codespell Change-Id: I03e102d1ebb9473b6226fa9b6edb684fa0218a2f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15031 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Brian Silver <bsilver@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>
* add node parameter to checkMinimumHardware checkBrian Horton2014-01-241-2/+4
| | | | | | | | | | | | | in addition, the platform specific platCheckMinimumHardware function changes. Change-Id: Ifb75173629b3106b12c15b11a73def088d8fa53d RTC: 95074 CMVC-Coreq: 912929 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8081 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* add plat calls to support RAT events in doGard.Brian Horton2013-11-131-17/+0
| | | | | | | | | Change-Id: If8f7b6829002ed746a3763a2292abe06751fb752 CMVC-Prereq: 900117 RTC: 87759 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6596 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* add platIsMinHwCheckingAllowed and call in checkMinimumHardware().Brian Horton2013-07-281-0/+13
| | | | | | | | | Change-Id: Ia29e53af168f4467203740b0dff5c242d85d29da RTC: 79501 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5607 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* System Availability Service for HostBootMark Wenning2013-07-121-8/+53
| | | | | | | | Change-Id: Iba0bd850647bba5ea5ff8d86e29506f356e903c4 RTC: 45437 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4758 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HWAS support of Field Core Override (FCO)Brian Horton2013-07-101-0/+13
| | | | | | | | | | | | . add FIELD_CORE_OVERRIDE attribute . add HWAS support of FCO to restrict EX units, if needed Change-Id: I93acc3453edf68ce7dceab03d11ee2a08d312b1d RTC: 45870 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5099 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Handle the PR keywordBrian Horton2013-05-151-1/+37
| | | | | | | | | | | | | | | | | Add support in the HWAS code to handle the PR keyword, to potentially force processors to run with less cores than are available. Move FRU_ID from fsp-only to common, so that the PR keyword code knows which procs are to be grouped. This work involves changes to HWAS Common code, as well as hostboot and FSP platform-specific code. Change-Id: I6d437a68c37f51edbd6d0d4741f2193892f80a6b RTC: 35077 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4221 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Do not deconfigTarget when System is at runtime.Kumar Challa2013-05-131-2/+10
| | | | | | | | | | Change-Id: I4daa3c3370eb91cdc5676e315a1476ed8c3a2e2a RTC:45747 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4195 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Need to support new PG keyword value for PowerBusBrian Horton2013-03-141-24/+34
| | | | | | | | | | | | | | PG keyword for the PowerBus has MCL and MCR. Code needs to change to not check for MCL or MCR in determining the chip functionality. In addition, if MCL or MCR is bad, then the appropriate targets are marked non-functional (mcs0..3 for MCL, mcs4..7 for MCR). Change-Id: I0f682538df1b94a7d51ac4ba17e354e3dc818ead RTC: 66138 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3473 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* make deconfig/GARD functions hwas common for sharing with FSPBrian Horton2012-11-141-0/+26
| | | | | | | | | | | | split current deconfigGard function into hwas common and platform specific functions so that FSP will have access to these as well. Change-Id: Iebacffb10f85af29e245ce41040d6f9ebc774830 RTC: 33551 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2188 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HWAS: Apply Partial Good to targetsBrian Horton2012-10-101-0/+43
| | | | | | | | | | | | | | | | | | | New HWAS Platform function platReadPartialGood() will be called by HWAS common function discoverTargets(). The platReadPartialGood() will query the VPD for the PG keyword of the CP00 record, and return the vector. The discoverTargets() function will then parse the record to determine which chiplets should be marked functional or not, based on the values in the PG vector. Change-Id: If29d18a80f8703cc87394cf07d152918957ffd37 RTC: 35078 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1852 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* HWAS code common between hostboot and FSPBrian Horton2012-06-111-0/+79
Corrections to common and hostboot platform-specific code to make this code work for both hostboot and FSP. In addition, make printing of HUID consistant with other previous changes. Also, added hwas/common files to fsp distribution tools so that they are included in the fsp.tar for common usage. Change-Id: Ia761606ab446dd794bf8e112430cc2e072f46991 RTC: 39793 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1130 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud