summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-enable fapi2 test case moduleChristian Geddes2017-10-311-8/+34
| | | | | | | | | | | | | | | | | | | | We determined the problem to be with the getVPD test case when we tried to get the section info for the MEMD pnor section the section was not currently loaded. The reason this was sometimes passing was because the PNOR tests were loading and unloading the MEMD module. My guess was that we were getting lucking and reading MEMD while the pnor test has the section loaded Change-Id: I50c12993d639554ab919ec01bba45e5f4aae761c RTC: 181401 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48955 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: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Implement FAPI_PLAT_CALL_SUBROUTINE macroChristian Geddes2017-10-171-0/+215
| | | | | | | | | | | | | | | | | | | 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>
* Enable fapi2 runtime test casesChristian Geddes2017-10-131-2/+1
| | | | | | | | | | Change-Id: I0cad695f717d686a514ee6d9ac0ca45a4441461b RTC: 179069 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46702 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* EKB: HWP Fail Isolation Fapi HooksBrian Stegmiller2017-09-191-21/+0
| | | | | | | | | | | | | | | | | Change-Id: I67a30a6a5bf0af4db40d85ec6406481dd286bb75 RTC: 178331 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45165 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@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/45184 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
* HWP Fail Isolation Fapi HooksBrian Stegmiller2017-09-052-0/+178
| | | | | | | | | | | | | Change-Id: I5ce1002e9a07382e209b23574fdf8905bdbebf2c RTC: 178331 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45130 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: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Allow deconfig without a callout in error log.Matt Derksen2017-06-234-0/+134
| | | | | | | | | | | | Change-Id: Ia2ce6f89b4fbc4bbafa355cb1da07bdbd360c317 RTC: 174701 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42085 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>
* Enable Unit Tests for variable buffer support.Donald Washburn2017-06-213-34/+14
| | | | | | | | | | | | | | | | | The unit tests in usr/src/fapi2/test that were witten to test ffdc variable buffer functionality were uncommented as the variable buffer support is now enabled. Change-Id: I7bb78d836807adaf9038f2b6d576879cbf3b6444 RTC: 175239 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42068 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: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Verify buffer support for error log.Donald Washburn2017-06-094-16/+719
| | | | | | | | | | | | | | | | | | | | | | | Added Unit Tests to verify that a caller buffer is propageted to the error log through an FAPI_INVOKE_HWP call. The Unit Tests use both a fapi2::buffer<uin64_t> and a fapi2::variable_buffer types. Presently, support for using fapi2::variable_buffer is disabled in the code base. The unit tests for the variable_buffer is also disabled. To enable fapi2::variable buffer support the parseErrorInfo.pl script must be invoked with the --use_variable_buffers option. This can be done by adding the --use_variable_buffers option to the parseErrorInfo_RUN macro located in import/hwpf/fapi2/tools/parseErrorInfo.mk. RTC: 161195 Change-Id: I0e372dc72e749f635517eb1752e3ca1ec4d2195b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41310 Tested-by: Jenkins Server <pfd-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: 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>
* Verify callouts, gard and decofig recordsIlya Smirnov2017-05-314-1/+526
| | | | | | | | | | | | | | | | Created a test suite to verify that the callouts, deconfig, and gard records are processed correctly after HWP errors Change-Id: I3ae4b93ec81b237abffa8c72835208a90fffa1f5 RTC:161196 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40809 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> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Re-enable test casesIlya Smirnov2017-05-312-7/+7
| | | | | | | | | | | Turn on the test cases that were disabled with mirror fix Change-Id: I619a31e39d5e130942de17766fb9bafa60903231 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41066 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>
* Remove proc_example_errors to fix mirrorIlya Smirnov2017-05-262-9/+9
| | | | | | | | | | | Change-Id: If593c4d0ad0025f73b9242cf0b9431a016285902 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41002 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@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>
* Changing NV target to OBUS_BRICK and mark it a child of OBUSPrachi Gupta2017-05-239-101/+103
| | | | | | | | | | | | 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-291-0/+75
| | | | | | | | | | | 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>
* Enable testing of getChildren for MCBIST/MCA targetscrgeddes2017-04-271-15/+15
| | | | | | | | | | | | | | | Was updating other code and noticed this was commented out. Just adding it back in and updating some comments Change-Id: I309c750f996a1108eb607266b41536e25e853913 RTC:148761 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39653 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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>
* Ensure correct # of EX returned from fapi2::proc.getChildren()crgeddes2017-04-261-2/+17
| | | | | | | | | | | | | | | | There was a story saying we were getting the wrong # of EX targets back when we called fapi2's getChildren on a nimbus proc trying to get EX targets. I don't think that we actually were getting wrong Change-Id: I0b7643cde4bd791aaba4e6956c5ade1f1275f294 RTC:161587 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39655 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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>
* Change RingID to RingId_t in putRingKahn Evans2017-04-113-6/+6
| | | | | | | | | | | | | | | | 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>
* Move bbuild up to b0302a_1710.910Dan Crowell2017-03-061-0/+3
| | | | | | | | | | | | | | | | Need to move forward to pick up some new hw image stuff Had to disable the p9_platPutRingWRingID_pass test due to an error. Change-Id: Ia593d25dc903d4c46eabe4ffc7d4a48f868aa8d1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37491 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Final Support for VDM data from #W keyword of VPD in HostbootMarty Gloff2017-03-011-6/+2
| | | | | | | | | | | | | | | Finalize MVPD additions and updates to add support for #W keyword. Change-Id: Ic377beaf40bffdf525b7358ab1d37d01a377f65e RTC:162011 Depends-on: Ib5548f6128c677c9258edcde153334be217225ee Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37022 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* gerrit35857> Fix for missing symbolMarty Gloff2017-02-282-2/+2
| | | | | | | | | | | | | | | | | Re-enable the #V tests in fapi2MvpdTestCxx.H and correct errors from running those tests. Place p9_pm_get_poundv_bucket.mk back in fapi2.mk. Change-Id: I9d4518727034caf80c23a5e8c8990e65c894051a RTC: 168957 Depends-on: I1b41fa0a175aaf9a2a6d43ce0fb7c938f203e9b4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36855 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: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Initial Support for VDM data from #W keyword of VPD in HostbootMarty Gloff2017-02-221-0/+102
| | | | | | | | | | | | | | 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>
* Fix for missing symbolKahn Evans2017-02-221-1/+2
| | | | | | | | | | | | | Change-Id: I1b41fa0a175aaf9a2a6d43ce0fb7c938f203e9b4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35843 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@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/35857 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
* Enforce single-threaded rule for Hardware ProceduresDan Crowell2017-01-233-111/+105
| | | | | | | | | | | | | | | | | | | | 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>
* Improve testcase for MR dataDan Crowell2017-01-171-17/+44
| | | | | | | | | | | | | | | Needed a way to verify the FFDC from the HWP call so I added a failure path. I also fixed the test data and a bad if check that didn't notice a change to the data format. Change-Id: I2b5428099ddbd9fc85ee40b77820c3c927a70029 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34524 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix HUID in simics.NIMBUS.system.xmlPrachi Gupta2016-11-091-2/+2
| | | | | | | | | | | | Core/EX/MCA/OBUS/PERV/PHB/PPE/XBUS had incorrect HUID values Change-Id: I5511ddefdf3301f217d48a7dc3b7b377971e94c3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32183 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> 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: William G. Hoffa <wghoffa@us.ibm.com>
* Test fapi2 returncode supportMatt Derksen2016-11-046-228/+434
| | | | | | | | | | | | Change-Id: I4abe424e5a5d8b73e19e3cec9cf162b426a6e7b4 RTC:143127 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31477 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@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>
* Update dvpd.dat file and the code that parses the vpdcrgeddes2016-09-281-12/+14
| | | | | | | | | | | We got an updated version of DVPD for p9 nimbus. The supported frequencies changed so we had to update some verification code to handle that Change-Id: I3fd0ed943252d878f0dd7467aea163dad9866eff Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30429 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* getChipletNumber support for more target typesLateef Quraishi2016-09-212-154/+364
| | | | | | | | | | | - Types added: CAPP, PEC, PHB, and NV Change-Id: I10effd492331b0439ca27df8c6ea80f6581b5899 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29587 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>
* Added support for 'Put Ring from Image' command on HB for SBEVitaly Marin2016-09-183-3/+44
| | | | | | | | | | | | | 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>
* Support DQ and CKE maps for the memory busMatt Derksen2016-09-161-0/+4
| | | | | | | | | | | | | | getVPD() should now work with DQ and CK keywords. Also, updated dvpd.dat with new keyword data. Change-Id: Ib425f8b595dee589e5f770e84a8d8be7e76d05e7 RTC:159347 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29353 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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Added CK and DQ vpd accessorsMatt Derksen2016-09-162-10/+128
| | | | | | | | | | | | | | | | Change-Id: Ic72c985b1fe064273bc39f14bcc31595117c6a08 RTC:159347 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29421 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt K. Light <mklight@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/29426 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Christian R. Geddes <crgeddes@us.ibm.com>
* Add support for getTarget<T>(type, instance)Richard J. Knight2016-09-141-78/+139
| | | | | | | | | | | | | | -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>
* Re-enable testMvpdGetPoundvBucket test after new mvpd is mergedAndres Lugo-Reyes2016-09-061-3/+1
| | | | | | | | | | | | | Change-Id: Idfc80784fd784bc72d956c7586d641f21f7e5619 RTC: 157185 Depends-on:I597bee1667b2f2259ad5decdf57ef846d2a9412b CMVC-Prereq:1003108 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27642 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Plat support for getTarget(ordinal)Lateef Quraishi2016-09-021-0/+120
| | | | | | | | | | 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>
* Update parseErrorInfo.pl to support collectFfdc tags for SBERichard J. Knight2016-08-121-0/+1
| | | | | | | | | | | | | | | | | | | | | -Modified script to enable passing back from the SBE parameters for the collectFfdc fuction -Added sample code for collectFfdc tags to proc_example_errors.xml -Added sample collectFfdc function p9_collect_some_ffdc -Fixed compile issue in fapi2_variable_buffer_test which was a result of changes to the hwp_ffdc_classes generated by the script. Change-Id: I6abbbc05ed38e368eb0ff586a22cc5aba824bad4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27048 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Deepak Kodihalli <dkodihal@in.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27459 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add getChipletNumber to Target ClassLateef Quraishi2016-07-302-6/+628
| | | | | | | | | | | | | | | | | | | | | | | 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-283-0/+104
| | | | | | | | | | | | | | 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>
* Refactor plat_getScom and plat_putScom to use opMode paramcrgeddes2016-07-253-0/+79
| | | | | | | | | | | | | | | | 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>
* Update proc mvpd with version #v bucket datacrgeddes2016-07-251-1/+3
| | | | | | | | | | | | | | This change bring in a new MVPD from the engd team and tags our header on the front of it so we can find the sections. Also we updated the PG and PR keywords from Hostboot's previous mvpd Change-Id: I9629eb29ac9edb4cbf9e2a0ce2a43e49a267a69c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26496 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>
* variable_buffer: Support get<OT>() / put<OT>() for incomplete buffer tailsJoachim Fenkes2016-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | Support getting and putting the last incomplete OT in a buffer that's not an integer multiple of the OT's size. Values will be treated left-aligned. Also add an assertion to get<OT>() to make sure we don't read beyond the end of the buffer. Change-Id: I527d21209c1694598526bfc815bfd7de38d0fb10 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26048 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26054 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Changes related to packaging of memory vpd on Nimbus - part 2whs2016-06-304-0/+752
| | | | | | | | | | | | | | | | 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>
* Add getOpMode and setOpMode functions to fapi2 namespacecrgeddes2016-06-303-0/+60
| | | | | | | | | | | | | | | | 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>
* Add in NV and remove PCI,PORE unit referencesAndrew Geissler2016-06-302-2/+2
| | | | | | | | | | | | | Note this also handles RTC 116091 (PCI targets data driven) Change-Id: I92508623be7a56694d22a9aad250a2af94c9e60f RTC: 149326 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26042 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: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Test case for FAPI2 EC Chip attributesAndrew Geissler2016-06-231-0/+124
| | | | | | | | | | | | Change-Id: I2a76bcd51ec74d25114b542a20fd7c23688c0ada RTC: 154852 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25812 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Jay M. Azurin <jmazurin@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Add support for fapi2::getChildren with additional const TargetFilterMike Baiocchi2016-06-091-1/+153
| | | | | | | | | | | | | | | 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-0/+197
| | | | | | | | | | | | 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>
* FAPI2: FFDC Error XML Hostboot IntegrationPrasad Bg Ranganath2016-06-023-0/+1963
| | | | | | | | | | Change-Id: If5c82101d973ad8fb383252d93af3aa0bd97aea7 RTC: 124673 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22194 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Clean up MVPD plat supportcrgeddes2016-06-021-285/+267
| | | | | | | | | | | | | | Update fapi2 MVPD accessor tests to be more robust. Reworked error handling for accessor functions Change-Id: I54bcbedb81728b2c50b17e3c02018269669d5401 RTC:152953 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24204 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Move p9_ringId.H from chips/p9/utils to chips/p9/utils/imageProcsPrachi Gupta2016-06-021-0/+1
| | | | | | | | | | | | to sync with ekb and use the latest copy RTC:154163 Change-Id: I1a6ffccd8358f2e385802b5aeccf10a0e4d9c05d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25174 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Build FAPI2 into HBRT imageCorey Swenson2016-05-254-26/+57
| | | | | | | | | | Change-Id: I3567d4d534a26edd33810f6b3a5c033507ffc119 RTC:145237 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23441 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove references to deprecated Target::getOtherEnd() methodMike Baiocchi2016-05-251-70/+1
| | | | | | | | | Change-Id: I06da5293307b7a6604a817ff96af4778698fbbe0 RTC: 154453 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24928 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud