summaryrefslogtreecommitdiffstats
path: root/src/usr/scom
Commit message (Collapse)AuthorAgeFilesLines
* Secure Boot: Implement Centaur SCOM cacheNick Bofferding2018-05-088-6/+1695
| | | | | | | | | | | | | | | | | | | This change implements a Centaur SCOM cache for sensitive SCOM registers. The cache is initialized and enabled before the first Centaur SCOM, and disabled just prior to locking down the Centaur configuration. Once the Centaur has been locked down, the real register values are compared to the cache entries, and the Centaur is deconfigured (not garded) on any mismatch in assumptions. RTC: 187288 Change-Id: I7b13bfd7eb6b427aba115d6944958bf55e171008 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57532 Reviewed-by: ILYA SMIRNOV <ismirno@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: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add support for P9C 1.2 and P9N 2.3 in scom xlateDean Sanner2018-04-241-1/+4
| | | | | | | | | | | | Change-Id: I1763721f3d37ea685e761310ff0fe14a43d89707 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57454 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add ibscom runtime supportCorey Swenson2018-04-022-0/+151
| | | | | | | | | | | | | | | | | | - Add ibscom runtime files - Make ibscom multicast workaround common - Call from ibscom rt_ibscom - Make scom sanity check common - Call from xscom rt_xscom ibscom rt_ibscom RTC:190144 Change-Id: Ia52feac596ff6b6c8fb9f0db4493f35e4ee837af Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56215 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Move runtime scoms to common functionCorey Swenson2018-03-272-1/+312
| | | | | | | | | | | | | | | | | - Calls hypervisor scom interfaces - Move from xscom/runtime to scom/runtime RTC:190143 Change-Id: I41e0788f03fa27ae87c31a48dd041dbd66ca09c2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56042 CI-Ready: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Enable platSpecialWakeup during IPL time and add supportChristian Geddes2018-02-174-30/+54
| | | | | | | | | | | | | | | | | | Previously we only supported platSpecialWakeup at runtime because we were not worried about needed special wakeup as the cores would not go into stop state during the IPL. However, now PM code is expecting bits to be set by the p9 special wakeup hwp so we need to call it during the IPL. This code makes the handleSpecialWakeup.C/H files compatible with IPL time build environment and enables the call on the IPL time path CQ: SW415949 Change-Id: I94cca8a84946bea464b21cb95cdbbb075f766c3d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52858 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: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Christian R. Geddes <crgeddes@us.ibm.com>
* Enable Scom + Targeting unit tests for Cumulus modelBill Hoffa2018-02-162-11/+5
| | | | | | | | | | | | | Change-Id: Ib02c0af30d6b06418f2ed6a2356cee93162aaffb RTC: 178802 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54136 Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove extraneous error messages for multicast scomsDan Crowell2018-02-141-3/+3
| | | | | | | | | | | | | | | | | | | Fixed two bugs in the code that was added to avoid extra error logging in the multicast workaround code: - Fixed bad double-negative check for MC sync mode - Fixed incorrect EC chiplet range Change-Id: I8a6747ee66206e0df519ad9b58cdc0a37a4aa7d6 CQ: SW417057 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53857 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: Corey V. Swenson <cswenson@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Cumulus updates and testcase workaroundsCorey Swenson2018-01-251-2/+4
| | | | | | | | | | | | | Change-Id: I24092ef382fc56b7d3e0aa90a2699ff6cf42d8e7 RTC:180894 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48703 Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Tweaks to multicast scom workaroundDan Crowell2018-01-091-2/+77
| | | | | | | | | | | | | | | | | | | | | | | | | Added a mode to avoid a pile of FFDC collection for the case where we expect errors could happen. Also added a couple new flags to control which chiplets get accessed as part of the workaround, one to avoid access to slave cores before they are running and the other to avoid access to the memory chiplets before they have clocks enabled. Without these changes, the code is still functionally correct but the traces get filled with pointless non-errors which makes real problems harder to find and also increases boot time. Change-Id: I834781261d16748cbbfd8511d9649ec19de53d81 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50503 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Secure Boot: Enforce PNOR section component IDsNick Bofferding2017-11-032-8/+24
| | | | | | | | | | | | | | | | | - In secure mode, bootloader will enforce that HBB component ID is set - In secure mode, Hostboot will enforce that PNOR component IDs are set Change-Id: I04f3bbc45417b3229003c56e1083e1fc31c01cd7 RTC: 179422 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48711 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@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: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Work around for SCOM DMI bug on Cumulus.Donald Washburn2017-11-0116-83/+3056
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work-around for HW415185. On a cumulus system reads from the first 6 DMI SCOM registers need to be read twice to obtain correct values. It is desired to implement a workaround in the SCOM driver that will force a retry for any reads from these registers until a hardware fix is in place. *Implemented a framework for executing post operation actions following a scom device operation. Currently the only post operation action defined is the retry request operation. The purpose of the framework is to remove workaround logic from the device operation code and place it in easily removable individual source files as work-arounds are expected to be temporary in nature. *Move existing retry request for IBSCOM retries to a new class IbScomRetry. *Created the PostOpRetryCheck base class for the workaround framework. *Created a top-level composite pattern class used for invoking request logic - PostOpChecks. *Created a workaround class - DmiSomWorkaround for querying DMI retry requests. *Modified the doScomOp method to invoke the framework to test for retries. Removed retry recursion. *Created Unit Tests. *Created integration test. RTC: 177025 Change-Id: If4a1ecc57dd5978e5d1717a42c63cdc1698f4563 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45104 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Centaur ring support - ring_apply and ring dataSumit Kumar2017-11-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introduces Centaur ring ID header files and ring_apply support to generate a separate Centaur ring image file. - Introduces common ring ID header file consumed by both P9 and Centaur and all user codes, e.g. putRing, ipl_build, xip_tool, etc. - Introduces a namespace approach for complete separation of P9 and Centaur ring data and to facilitate execution time selection of either P9 and Centaur ring data. - Added Centaur image .rings generation function to p9_ring_apply. - This commit does NOT support Centaur in the TOR API nor in xip_tool. See commit 38018 for that support. - Modified hw_image.mk file to support Centaur XIP image generation. - Updated ring_apply to also support .overrides ring gen for Centaur. Change-Id: I12a27b194dc14d906fea7bc273eb9f766f0fc5bf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35639 Tested-by: HWSV CI <hwsv-ci+hostboot@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: Sumit Kumar <sumit_kumar@in.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36011 Reviewed-by: Hostboot Team <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: Christian R. Geddes <crgeddes@us.ibm.com>
* Remove extra trace from multicast workaround codeDan Crowell2017-10-281-1/+0
| | | | | | | | | | | | | | Removing an overly verbose message inside the new workaround that was added. Change-Id: Ibe9d691c0781ff34e901dec3f27138a44c9e537b Backport: op910 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48692 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>
* Manually perform multicast scom ops to avoid chip bugDan Crowell2017-10-201-7/+144
| | | | | | | | | | | | | | | | | | | | | | | | P9 has a bug in the multicast logic that causes it to return a 'chiplet offline' error if there are any chiplets in the multicast group that are offline. If the scom is performed via the PIB we will see a pib error but the data will be valid. If the scom is performed via the ADU we will see an error but the data we get returned will be all FFs. This commit will convert a multicast read operation into a series of unicast scoms when the xscom path is in use. Resolves boston/622 Change-Id: I33cb2cf8c04eb63014b5b67cdc2967ce0fe4c489 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48434 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: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Set variables to nullptr after they are deletedChristian Geddes2017-09-251-0/+2
| | | | | | | | | | | | | | | | | | While updating some LPC logic a developer noticed a bug where an errlog handle wasnt getting set to nullptr after it was deleted this caused a confusing bug that took awhile to track. I noticed that this bug was all over our code so this commit fixes a lot of cases where variables get deleted but not set to nullptr Change-Id: I103b5c71b93686c3c89b04d1d565a24d4de74e6f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45890 Tested-by: Jenkins Server <pfd-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> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HWPs for istep12Sakethan R Kotta2017-09-211-0/+10
| | | | | | | | | | | | | Change-Id: Ic51e6e69b5f900d4062ca8d4b5034ffab7e0d395 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45486 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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: Thomas R. Sand <trsand@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update scom translate DD level checksDean Sanner2017-09-191-0/+3
| | | | | | | | | | | | Change-Id: Ib1dcaebd94d5e31322fe20b897975fb9a82cd61c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46297 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: Thi N. Tran <thi@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add SCOM translation support for CentaurCorey Swenson2017-09-084-63/+462
| | | | | | | | | | | | | Change-Id: Ia665e29771106501d04ce9184c36f677f4e40d97 RTC:139953 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44671 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: SWATHI M. BHATTIPROLU <bhmadhur@in.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* cumulus: changes to boot simics all the way to test casesPrachi Gupta2017-08-291-4/+6
| | | | | | | | Change-Id: Ibc62f59635db28e50197139276b9b4c6b59ccc3e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44768 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>
* Changing NV target to OBUS_BRICK and mark it a child of OBUSPrachi Gupta2017-05-232-8/+8
| | | | | | | | | | | | Change-Id: I17b52033d1e6811c320f201056708f31ef34d0e9 RTC:171597 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38481 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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Increase indirect scom timeout to 10msDan Crowell2017-04-141-1/+1
| | | | | | | | | | | | Change-Id: If4e76cd610bc5cb99e7725f135cd3073980d328c CQ: SW385545 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38957 Reviewed-by: Thi N. Tran <thi@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: 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>
* Enable indirect scom logic for HBRT under PHYPDan Crowell2017-03-291-4/+21
| | | | | | | | | | | | | | PHYP is fine with HBRT handling the indirect scom logic, including the polling events. Change-Id: Ic2994065615a24121eccfaa7f6b78bb5be803319 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37903 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: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Do not fail on Resource Occupied error indirect scomDan Crowell2017-03-241-11/+38
| | | | | | | | | | | | | | | | There is a race in the indirect scom status reading where we can catch a 001 pib status that is not a real error. Note - Fix already added in P8 but forwardport got missed Change-Id: Ida6fe97fb9a0281640c6cc089482dada5dad1c33 CQ: SW384238 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38063 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Fill in P9-specific scom error handlingDan Crowell2017-03-133-75/+198
| | | | | | | | | | | | | | | Adjusted address-specific register gathering to reflect P9 chip logic Fixed some error handling bugs in the testcases Added verbosity to error log parser Change-Id: Iad274e8333adb32deacffd3cb92e40f11c48f884 RTC: 158541 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37122 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>
* Updating NV scom address xlate for dd2.Ben Gass2017-02-232-1/+91
| | | | | | | | | | | | | Change-Id: I7d6dea78895807554b692f3ca9696a3de2ba8986 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36411 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Dev-Ready: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36428 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
* Add HCODE scom update interface to HBRTCorey Swenson2017-02-033-97/+87
| | | | | | | | | | | Change-Id: I8d6a8aa2330ec95e1ce612979c9fa037a633d07d RTC:150219 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33702 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove scom DD ffdc -- was using p8 addressesDean Sanner2017-01-151-2/+2
| | | | | | | | | | Change-Id: Ide43ebfdeaaef1911869d17993b5aff93c0c315f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34895 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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Remove spwkup scom traces cluttering up HBRT tracesCorey Swenson2016-11-171-2/+2
| | | | | | | | | Change-Id: I699a7fa205c3f2c74e96cc8c3748dcc417817c47 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32501 Reviewed-by: Christian R. Geddes <crgeddes@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>
* Ignore CHIP_OFFLINE pib error when scom is multicastcrgeddes2016-11-141-0/+23
| | | | | | | | | | | | | | When a scom returns an error that says the chip was offline, if it was a multicasted scom we expect this to happen so we can ignore the error and continue RTC:163898 Change-Id: Id9753eab70f78573f0c8d27a74aef62e5715e85c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32455 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Special wakeup updates for P9Corey Swenson2016-10-244-43/+268
| | | | | | | | | | Change-Id: Id60773a1a84ee856265e451925b7f7c8c15a8af1 RTC:132413 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29665 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Undo Simics SCOM error workaroundThi Tran2016-10-121-31/+0
| | | | | | | | | | Change-Id: Ib0784b960ca26eb11e829b4ac68db6233ed74485 RTC:158483 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30830 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove last of old hwpf directoryDan Crowell2016-08-301-8/+1
| | | | | | | | | | | | | | Remove all of the old fapi1 HWPs from P8 Update makefiles/code to not include old hwpf headers Change-Id: Idc840554721f68b0af3b6ee6c7ad84f5df258e60 RTC: 146345 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28844 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Integrating p9.vas.scom.initfileThi Tran2016-08-251-0/+5
| | | | | | | | | | | | | Change-Id: Iee916495138b37369f6ea191855ef6b5a431fa8b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28183 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jenny Huynh <jhuynh@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28190 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Integrating initfiles: NEST cxa/int/nx/mmuThi Tran2016-08-011-0/+26
| | | | | | | | | | | | | Change-Id: I5d28f984f8c654a714f2e0af7ed40ca93c975292 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27363 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: Jenny Huynh <jhuynh@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27364 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding SCOM addr translation for PPE chip unitsThi Tran2016-07-291-6/+1
| | | | | | | | | | | | | | | Change-Id: I708ba2769358c606e1ea7aa36436c7ee7d2c945b RTC: 137093 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27147 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Dev-Ready: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27151 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add TYPE_CAPP as scommable typecrgeddes2016-07-282-5/+17
| | | | | | | | | | Change-Id: Ic1f279dbe2d692bbb20a0d9e90b8d4174420e4da RTC: 158390 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27516 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Refactor fapi2 scom interface to use pib_err_maskcrgeddes2016-07-282-1/+3
| | | | | | | | | | | | | | Up to this point we have been ignoring pib err mask. This commit adds the pib_err_mask support to to platform RTC: 144507 Change-Id: Ie810f0915d6ba8091ea4740e705ba550dbad6eae Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26382 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove opMode check from scom codecrgeddes2016-07-251-6/+0
| | | | | | | | | | | | This check was previously moved to the fapi2 code RTC: 144507 Change-Id: Ied1edc0c7e1243c68ad28c1e6bfc305bca574dfa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27427 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Refactor plat_getScom and plat_putScom to use opMode paramcrgeddes2016-07-253-19/+5
| | | | | | | | | | | | | | | | Previously opMode had not been implemented to so we were not using it while making scom calls through the fapi2 hw access interface. Now that opMode is available the param is being added to the plat call. RTC:144505 Change-Id: If9ac3914082620309c73fb29e3a6074abc2cb89b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26299 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add support for Indirect Scom Form 1Matt Ploetz2016-07-244-32/+673
| | | | | | | | | | Change-Id: Ie99a7ec8fe78a77db22a565a39e036679f8a01f9 RTC: 151098 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25317 Reviewed-by: Christian R. Geddes <crgeddes@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>
* Create User Details section so we can record PIB err if applicablecrgeddes2016-06-305-0/+237
| | | | | | | | | | | | | The piberr mask used by fapi2 will check the pib err user details on the errl it get returned. RTC: 144507 Change-Id: I38f779692ac75676b37eaea129b2c423f3d69d30 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26143 Reviewed-by: Andrew J. Geissler <andrewg@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>
* Fix for mult-chip scom. Set SCOM_SWITCH defaultsMatt Derksen2016-05-091-1/+1
| | | | | | | | | | | Change-Id: I5606d7bb7e1901d9214fbf3f240d4806ecd13749 RTC:153404 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24152 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Use SBE for scoms to slave chipsMatt Derksen2016-05-042-6/+150
| | | | | | | | | | | Change-Id: I31a33c62ae502d8045882a1a4df5bcaf9f2f34ac RTC:132655 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23785 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update Standalone MVPD to indicate only cores 0-3 are goodBill Hoffa2016-05-041-25/+34
| | | | | | | | | | | Change-Id: I33aa2fedee670a99f698ed969894f1707a2f9759 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24039 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Add hardware callout for b001 errors in indirect scomsDan Crowell2016-05-021-6/+26
| | | | | | | | | | | | | | There have been examples of bad hardware causing indirect scoms to fail with a 'resource occupied' (b001) so modifying the code to point to the part in that case. Change-Id: I45d88e80514b680aa50a27800b89f3343cee6377 CQ: SW306414 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23885 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Implement IGNORE_HW_ERROR opMode for Scom accesscrgeddes2016-04-274-17/+56
| | | | | | | | | | | | | | | Some scoms will want to ignore HW errors from the various devices used to perform scoms. This new opMode provides an option to let the scom code know that errors from HW should be ignored Change-Id: I88ea9c7a64e1d09e68ee85225b15babb434a4813 RTC: 150453 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23041 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Enable indirect scom testscrgeddes2016-04-211-143/+170
| | | | | | | | | Change-Id: Ibcef25827ab061e4e2836e73569022e28cdb2593 CMVC-Prereq: 989074 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22398 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Implement DO_NOT_WAKEUP opMode for Scom accesscrgeddes2016-04-216-46/+112
| | | | | | | | | | | | | | During runtime we occasionally will read scoms from various chiplets. Usually if the chiplet is in winkle mode (stopped, idle, etc) then we will wake it up. If this opmode is set, it is indicating the attempted read is not very important and not worth the time/energy to wake up the chiplet. Change-Id: Ieaaffe42fda3459e0295597fcf41c07bbaee72b4 RTC: 150454 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22986 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Re-enable scom test cases that were turned offcrgeddes2016-04-212-6/+8
| | | | | | | | | | | | | | | Changes to the EKB's scom translation code we had to re-visit some of the scom translation test cases so they agree with the new behavior. RTC: 149140 Change-Id: I01e8c675b342e9a6c07a8612b4be0399861fb724 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23060 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Re-enable hbrt testcases in P9Corey Swenson2016-04-041-55/+45
| | | | | | | | | | | Change-Id: Ief5cebf6af399514054f9f834d53a45177da1ad3 RTC:138280 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22593 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins 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>
OpenPOWER on IntegriCloud