summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2
Commit message (Collapse)AuthorAgeFilesLines
...
* PRD: Rename new dimmBadDqBitmap functionsCaleb Palmer2017-10-241-2/+2
| | | | | | | | | | Change-Id: If677cc7d08b2502b7932bac768aeba6a353c90bc CQ: SW405539 CQ: SW405850 Backport: release-op910 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48640 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Implement FAPI_PLAT_CALL_SUBROUTINE macroChristian Geddes2017-10-173-7/+97
| | | | | | | | | | | | | | | | | | | HWP writers need a way to request certain HWPs to run on the SBE for non-master processor targets while we are in secureBoot mode. This macro will check these conditions and if we are on a non-master in secureMode then we will issue a fifo chipop to the slave sbe in order to request the SBE to perform the HWP. This commit also adds some simple test cases to verify the failure paths. Also fapi2 test cases are re-enabled in this commit. Change-Id: Ic42fe2df5692fb5994985d92b2fd767ea7c1234a RTC: 179062 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46580 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Use a VMM allocator for the giant WOFDATA lidDan Crowell2017-09-221-0/+4
| | | | | | | | | | | | | | | | | The WOFDATA lid is now 12MB which is too big for our default malloc logic that requires contiguous memory. Instead we will use a custom VMM block to page in new pages dynamically as needed. Change-Id: I50360812328d6811716955b7a22c396566044a87 CQ: SW402766 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46640 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@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: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HWPs for istep12Sakethan R Kotta2017-09-211-1/+3
| | | | | | | | | | | | | 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>
* Initial pass-thru support for FAPI_PLAT_CALL_SUBROUTINEDan Crowell2017-09-111-0/+58
| | | | | | | | | | | | | | | Adding a transparent pass-thru for FAPI_PLAT_CALL_SUBROUTINE to handle FAPI_CALL_SUBROUTINE calls from HWPs. More work will be required to convert these into chipops later. Change-Id: Ib2e5cf018c681396b98e951d893f02cbe522ea53 RTC: 179062 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45226 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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Replace HB_SECURITY_MODE attribute with SECUREBOOT API equivalentJaymes Wilks2017-08-311-0/+31
| | | | | | | | | | | | | | | | | The HB_SECURITY_MODE attribute will now be a variable managed by secureboot. The FAPI attribue SECURITY_MODE that maps to the HB version will now call to that variable in the SECUREBOOT API. Change-Id: I7e42c3f2e355feeb0d49aa6a998960bc5409bfa2 RTC:178643 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45167 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Functions for BAD_DQ_BITMAP attribute usageCaleb Palmer2017-08-281-0/+85
| | | | | | | | | | | Change-Id: I216c10a4224fde3936e287b0aa1032bc1f506054 RTC: 173478 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41746 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Ability to dump single Target/ATTR via debug interfaceDean Sanner2017-08-261-2/+19
| | | | | | | | | | | | | Change-Id: I1122a57f6c3e8f47c0ab6a04309da76092e8da41 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44279 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: Nicholas E. Bofferding <bofferdn@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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Getter function for ATTR_BAD_DQ_BITMAPCaleb Palmer2017-08-252-1/+58
| | | | | | | | | | | | | Change-Id: I1491786505e282547ae4774cd3349bf17b8413b5 RTC: 173474 CMVC-Prereq: 1032664 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40816 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: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
* platform implementation of mbvpd/cvpd accessesPrachi Gupta2017-08-232-0/+46
| | | | | | | | | | | | | | | Change-Id: I6a210797313ba9458e75d9a61c594543cbf98c24 RTC:176071 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44421 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> 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: SWATHI M. BHATTIPROLU <bhmadhur@in.ibm.com> Reviewed-by: Sakethan R. Kotta <sakkotta@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Adding in MEMD functionality with multiple copiesElizabeth Liner2017-08-221-1/+16
| | | | | | | | | | | | | | | | | | | This commit adds support for a separate version of the MEMD VPD. In the PNOR, we will have a new optional section that will contain multiple versions of the MEMD VPD. This code adds the functionality to loop through the different versions and check the VM keyword to find a matching one. Change-Id: I3f8e6e589c31b3b480d915a1b29b4614fa809162 RTC:175158 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43508 Tested-by: Jenkins Server <pfd-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> 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* fapi2 targets: added support for cumulus and centaurPrachi Gupta2017-08-151-0/+28
| | | | | | | | | | | | | Change-Id: I2cc4f1c0e484b5365fa4c32cd66258ac825d4344 RTC:176071 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44377 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: SWATHI M. BHATTIPROLU <bhmadhur@in.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Allow OBUS to have childrenDan Crowell2017-06-211-4/+0
| | | | | | | | | | | Change-Id: I39f0cce47ba323751786dd254103ae2a66f92c5f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42137 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix fapi getChildren for DIMMsDan Crowell2017-06-191-168/+169
| | | | | | | | | | | | | | Found a swapped template parameter that made a check bad Cleaned up some variable names to prevent similar errors Change-Id: Ie86184a8d8842bfd42c9d022d05ed874f5c0ceda Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41838 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Dynamic ATTR Override support via debug interfaceDean Sanner2017-06-081-0/+17
| | | | | | | | | | | | | | | | | | | | | | -Supported by debug tools (ecmd-debug-framework/Cronus) Only in istep mode and between isteps Requires HB to be running -Uses output of attributeOverride tool (same format as ATTR_TMP) -Introduces two new "debug" isteps 255,4,set_attr_overrides 255,5,clear_attr_overrides -Once istep is triggered Hostboot sends down address/size and the debug tool uses putmempba to push data to cache/mem. Then Hostboot consumes just like ATTR_TMP Change-Id: I4ade7b85acac077a15bdb36bba1ef9df4263b428 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41271 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> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Return only present DIMM children to fapiDan Crowell2017-06-071-0/+13
| | | | | | | | | | | | | | Switching from possible to present for fapi2::getChildren when asked about DIMMs Change-Id: If5febce96b546ad1553dad0f5feb37ca07c4da97 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41274 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: JACOB L. HARVEY <jlharvey@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-16/+18
| | | | | | | | | | | | 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>
* Add support for selecting WOF tablesCorey Swenson2017-04-292-1/+34
| | | | | | | | | | | Change-Id: I23cfd9b1156d44a0a3277a0c2696d034a741d0ba RTC:158589 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38724 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Propagate attribute overrides up to the HBRT codeDan Crowell2017-04-161-1/+5
| | | | | | | | | | | | | | | | | | | | | | | 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>
* Change RingID to RingId_t in putRingKahn Evans2017-04-112-4/+4
| | | | | | | | | | | | | | | | Change-Id: If809a8ec82ff90a6ed9dc2763f7e609524fc75fb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38351 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38354 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>
* Initial Support for VDM data from #W keyword of VPD in HostbootMarty Gloff2017-02-221-1/+26
| | | | | | | | | | | | | | Make MVPD additions and updates to add support for #W keyword. Change-Id: Id124bc5bdb5c6336b042ff7f41250626643a608e RTC:162011 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36637 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Enforce single-threaded rule for Hardware ProceduresDan Crowell2017-01-232-5/+13
| | | | | | | | | | | | | | | | | | | | Because we aren't using read thread-local storage for the FAPI variables (opmode, piberrmask, current_err) we need to ensure that we never have multiple HWPs running at the same time. The external interface that we use in all cases is FAPI_INVOKE_HWP so that is where a mutex is placed. This change also uncovered a couple bugs in how we were executing some non-fapi HWPs in the SBE update code so I fixed those as well. Change-Id: Ie8817da62dd4e6bc9ed3ac2debf126f6d05c2b23 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34518 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: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Implement FAPI interface for special wakeup in HBCorey Swenson2016-10-101-6/+2
| | | | | | | | | | | Change-Id: Ia86809403c0af9e0ff6ce77af60994fbae641749 RTC:150505 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29978 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Added support for 'Put Ring from Image' command on HB for SBEVitaly Marin2016-09-181-0/+1
| | | | | | | | | | | | | Change-Id: I4930633f87bdb61acb19e01f17a8006277f7868d RTC:132654 CMVC-Prereq: 1004971 CMVC-Prereq: 1005024 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28887 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Vitaly Marin <mvitaly@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add support for getTarget<T>(type, instance)Richard J. Knight2016-09-141-2/+63
| | | | | | | | | | | | | | -Add function to convert an arbitrary target type and instance into a fapi2 target type. Change-Id: I41a70a881160bebeeac97ff4e8b74c002d6224d8 Depends-on: I1de1da708146427ada3f9cc4e1977dd608172cf4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28107 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> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Move some reset logic from INVOKE_HWP to EXEC_HWPDan Crowell2016-09-112-3/+3
| | | | | | | | | | | | | | | There are a couple places where we call FAPI_EXEC_HWP directly and we don't want to miss these global variable resets in those cases. Change-Id: I227d392623df019a0943f9ab0f59fff5ab322527 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29390 Reviewed-by: Christian R. Geddes <crgeddes@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> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Plat support for getTarget(ordinal)Lateef Quraishi2016-09-021-4/+48
| | | | | | | | | | Change-Id: I996c7f0e02c38f9657b4cd3c37bf15d4300abd31 RTC: 157141 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28318 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> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Host infrastructure for FAPI ATTR dumpDean Sanner2016-08-312-0/+114
| | | | | | | | | | | Change-Id: I4714564ccdf365916c2fd7ed52d00d3509af2d3d RTC:127348 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25929 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: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add minimal compile support for fapi2::specialWakeupDan Crowell2016-08-301-0/+32
| | | | | | | | | | | | Put in empty implementation for platSpecialWakeup to allow HWPs to compile. Change-Id: I1c33c822f58f9692a47799cd3c602e7232170816 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28909 Tested-by: Jenkins Server <pfd-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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove last of old hwpf directoryDan Crowell2016-08-303-6/+0
| | | | | | | | | | | | | | 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>
* Convert FAPI_DBG into TRACSCOMP tracesLateef Quraishi2016-08-301-2/+4
| | | | | | | | | | | Change-Id: I98a39b15ce37e48af910dd9801fc7f6c305177ed RTC: 159352 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28684 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@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: Matthew A. Ploetz <maploetz@us.ibm.com>
* Enable p9_build_smp hardware procedure call in call_proc_build_smpMatt Derksen2016-08-221-0/+1
| | | | | | | | | | | Change-Id: Icb710fce7f82f6f079982d975132543e72d5f7d8 RTC:158758 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28239 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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Ensure fapi2::Target honors platform value type.Patrick Williams2016-08-041-11/+13
| | | | | | | | | | | | | | | | | | | | | | | The fapi2::Target template is as follows: template<TargetType K, typename V = plat_target_handle_t> In many places the code was using the default V type instead of preserving the type of the template. As an example: Target<T> getParent(void) const; // old vs Target<T,V> getParent(void) const; // new With the old variant, a Target<ANY, V> is converted to a Target<ANY, plat_target_handle_t> by the getParent() function instead of maintaining the V type. Added associated ecmd release ver-14-4-2-ekbonly for testing Change-Id: Ie613d658c59f5f6d3ce7be95f3b1e816b52582e0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27036 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>
* Add fake_vpd supportBrian Silver2016-08-041-1/+2
| | | | | | | | | | | | | | Fix vpd generation script to check freq errors Change-Id: I106e30090fb0cd6d4fcaa5c3e006a629ac6906d3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27082 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27103 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Make ATTR take generic target typesDean Sanner2016-08-031-1/+4
| | | | | | | | | | | Change-Id: I5c996feaae8180d2093ef400d23b7548836aadae RTC:127348 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27416 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add getChipletNumber to Target ClassLateef Quraishi2016-07-301-0/+20
| | | | | | | | | | | | | | | | | | | | | | | Chiplet Ids are as follows: - EQ 0-5 Ids: 0x10 - 0x15 - EX 0-11 Ids: 0x10, 0x10, 0x11, 0x11, --- (parent's id) - Cores 0-23 Ids: 0x20 - 0x37 - Pervasive Id: 0x01 - Xbus Id: 0x06 - Mcbist 0-1 Ids: 0x07 - 0x08 - Mcs 0-3 Ids: 0x07, 0x07, 0x08, 0x08 (parent's id) - Mca 0-3 Ids: 0x07, 0x07, 0x07, 0x07 (parent's id) - Mca 4-7 Ids: 0x08, 0x08, 0x08, 0x08 (parent's id) - Obus0 Id: 0x09 - Obus3 Id: 0x0C Change-Id: I89be032654c191b8930fac07a1b64061e381fe14 RTC: 156120 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27339 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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>
* Refactor fapi2 scom interface to use pib_err_maskcrgeddes2016-07-284-7/+36
| | | | | | | | | | | | | | 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>
* Enable HBRT targeting testsCorey Swenson2016-07-261-0/+9
| | | | | | | | | | Change-Id: I3aea0d203548809401b83fb853e4aeeb86095f22 RTC:153123 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26794 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>
* Refactor plat_getScom and plat_putScom to use opMode paramcrgeddes2016-07-251-0/+1
| | | | | | | | | | | | | | | | 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>
* Attribute override support in hostbootAndrew Geissler2016-07-181-61/+0
| | | | | | | | | | | | | | | This provides full attribute override support in Hostboot and also adds in a required attribute for the reconfig loop testing. Change-Id: I06a8213bc3b56d20b0817477a84014d89250ec25 RTC: 157097 CMVC-coreq: 999873 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26923 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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: William G. Hoffa <wghoffa@us.ibm.com>
* Update overload putRing funtion in hw_access to accept 3 paramcrgeddes2016-07-131-0/+14
| | | | | | | | | | | | | | | | Note that I did not implement this function yet but I am declaring the interface so we can mirror HWPs over. Apparently this functionality isnt critical until we run on real hw and another team member is working on the implementation of this this sprint. Change-Id: Id3deabc266a08394591540cfcbd336f23c5ce7a9 RTC:132654 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26860 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Vitaly Marin <mvitaly@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Changes related to packaging of memory vpd on Nimbus - part 2whs2016-06-303-1/+112
| | | | | | | | | | | | | | | | Add the "upper" half of the NIMBUS direct memory support. Add ATTR_MEMVPD_FREQS_MHZ and ATTR_MEMVPD_POS attributes. Implement plat_vpd_access to call p9_getmem_vpd_keyword which decodes which vpd keyword to read for MR and MT. Update dvpd DD with record and keyword list. Update dvpd.dat simics vpd file to include MR and MT that map to J0 and X0. Change-Id: Ife00aa4266a7c16dcff2f0f72837f4d547988b82 RTC: 144519 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23245 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>
* Generate error log when FAPI get or set attribute failsAndrew Geissler2016-06-301-0/+3
| | | | | | | | | | | Change-Id: I77b193010c6038cfab9a2dfd98f3a39a8270506f RTC: 154397 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24863 Tested-by: Jenkins Server <pfd-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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add getOpMode and setOpMode functions to fapi2 namespacecrgeddes2016-06-303-8/+23
| | | | | | | | | | | | | | | | This commit adds functions to get and set the opMode for the current thread. Opmode is to have specific reaction to events triggered by different operations such as scoms or attribute reads. These reactions include things like ignoring all errors, or specific ones. RTC:144505 Change-Id: Ieb5e6b9e1cce9ae548c6ac20314751e9b1ebcd05 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26011 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update FAPI_INVOKE_HWP to reset current_err before falling funccrgeddes2016-06-241-0/+1
| | | | | | | | | | | | | | | | Previously current_err was not getting reset to SUCCESS. This causes issues when we have expect errors occur (such as test cases) or have non-fatal errors occur. This commit makes it so that before any function is called with the FAPI_INVOKE macro, current_err is set back to SUCCESS so we can be sure are getting valid errors. Change-Id: I51f137d5b0c30be56e911d5a0e2228db3d609949 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26010 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Implement < operator to fapi2::target's platform implementationcrgeddes2016-06-151-4/+19
| | | | | | | | | | | | | This is needed for doing lookup operations on a vector of fapi2 targets. Change-Id: I941b0f1e95507f506f9735739c95685afa371083 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25682 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Collect FAPI traces for all FAPI_INVOKE_HWP callsDan Crowell2016-06-151-3/+7
| | | | | | | | | | | | | Automatically add the FAPI and FAPI_I traces to all error logs that result from a HWP invocation. Change-Id: Id91df9ca29574669410d0a5b8053cacf3a9ec754 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25411 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: Matthew A. Ploetz <maploetz@us.ibm.com>
* Add in required plat support for chip EC attribute functionAndrew Geissler2016-06-142-1/+5
| | | | | | | | | | | Change-Id: Iad08b364437d4766d720a973f2ab755e6ef8bf23 RTC: 154852 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25733 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Add support for fapi2::getChildren with additional const TargetFilterMike Baiocchi2016-06-092-0/+75
| | | | | | | | | | | | | | | In addition to adding support for fapi2::getChildren with additional const TargetFilter input parameter, this commit also adds a test_fapi2GetChildrenFilter to the automatic simics testcases. Change-Id: I82e34c001ebb0af8eacb3c8f244391504ed424ae RTC:149115 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24813 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* add platform support for fapi2::Target<K>.isFunctional()Andres Lugo-Reyes2016-06-061-1/+13
| | | | | | | | | | | | Change-Id: I265f34327c5bd593ee1d6f13f6cd19d191db66fd RTC:154321 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24991 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
OpenPOWER on IntegriCloud