summaryrefslogtreecommitdiffstats
path: root/src/include
Commit message (Collapse)AuthorAgeFilesLines
* Apply BOOT_FLAGS onto slave sbeDan Crowell2016-08-292-16/+29
| | | | | | | | | | | | | | | | | Need to get the BOOT_FLAGS (scratch3) bits set into the slave sbe Also consolidated other code to use a single set of interfaces and structures. Change-Id: I670acb5cee1ab4fcebaa7be72aa3b986598873d3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28003 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update Bootloader to handle moving the TOC of PNOR aroundcrgeddes2016-08-252-8/+17
| | | | | | | | | | | | | | | | | | | Moved 1 of the PNOR TOCs from 0x8000 to TOP_OF_FLASH - 64KB. Updated bootloader and pnor access code to handle new toc location. Update the defaultPnorLayout to reflect these changes Also added a FSP default pnor xml that will generate a 128 MB image for FSP boxes to use. RTC: 154286 Change-Id: I0253590299ff9714b0d5ab12a02ac9d653b115fa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27461 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: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Remove hdat attribute sync hack from mss_eff_configcrgeddes2016-08-241-13/+6
| | | | | | | | | | | | | This was needed initially in bringup because attributes were not being populated by hardware procedures (because they didnt exist yet) Change-Id: If199a695440a4e5342044910f9e9ced38b796788 RTC:143191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28135 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-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>
* Honor ISTEP/MPIPL MODE flag in mbox scratch 3 regDean Sanner2016-08-242-0/+9
| | | | | | | | | | | Change-Id: Ia83f1abfe28d0418659aec7d0e2cd38a013fe8a9 RTC: 134431 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26730 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>
* Fix pib err mask to actually look at the Userdetails section datacrgeddes2016-08-241-4/+7
| | | | | | | | | | | | | | | | Previously there was a bug with pib_err_mask where we incorrectly tried to cast a userdetails object into an incorrect structure. This caused an issue when we tried to access members of the struct that we were casting to. This commit changes the function that provides lookup of userdetails sections so it only returns the user data that the user details section contains. Change-Id: I38d6bbef8525a177b3f1baf72ea042c8e756c34d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28105 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: Daniel M. Crowell <dcrowell@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>
* Trustedboot support for using TPM targetChris Engel2016-08-224-21/+18
| | | | | | | | | | Change-Id: I362085fd81663b9b8ec56ed9e0670cf71fc851e4 RTC: 153386 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28482 Reviewed-by: Christopher J. Engel <cjengel@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>
* VPO updates for constrained mem, hbbl, simicsDean Sanner2016-08-172-1/+9
| | | | | | | | | | Change-Id: I2302776822f9aa599adb3d134514149c4468f32e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26577 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Utility functions for mbox scratch reg accessDean Sanner2016-08-171-0/+100
| | | | | | | | | | | Change-Id: If262e891934b5228ea1fa9081a0c85a40a52036d RTC:127348 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26346 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Updates for new scratch registers in P9Andrew Geissler2016-08-162-20/+9
| | | | | | | | | | | | | | | P9 moves us from 8 scratch registers to 4. This commit handles this change and also adds the base support for partial cache. Change-Id: Ibe050c663744285dd3e77850649236a669dadbd6 RTC: 150923 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27462 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: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Handle 8MB reduced cache modeMarty Gloff2016-08-103-6/+13
| | | | | | | | | | | | Check scom register (0x1001181B) for reduced cache mode and expand the memory footprint appropriately, reduced 8MB or full 10MB. Change-Id: I5920572077cdcee317e7b3b9abe999e6de295459 RTC:152954 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27522 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 ekb mirror libmss.so for istepsLateef Quraishi2016-08-083-0/+3
| | | | | | | | | | | | makefile compiles all files under sub-direcotries and creates the library. isteps 07, 13 & 14 are including it Change-Id: I6171b9a1416c1b6ceab6d4e658cd37097d1bd70a RTC: 157095 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27798 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>
* Replace NAP with STOP instructionBrian Stegmiller2016-08-072-10/+8
| | | | | | | | | Change-Id: I58a382cfc285e37cc8748fe8e23f71c877850263 RTC: 130186 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/816 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>
* Update pnor section names WINK -> HCODE and PAYLOAD -> POWERVMcrgeddes2016-08-041-1/+3
| | | | | | | | | | | Change-Id: I66cc8a060f0eb7b50275a42970661247d2916035 RTC:154286 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27228 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: Elizabeth K. Liner <eliner@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>
* Update istep lists to match the new mpipl flow for p9crgeddes2016-08-034-9/+9
| | | | | | | | | | | | | | | The MPIPL flow has changed slightly between p8 and p9 systems. The major change comes in istep 15 where now all of the steps are being called. RTC: 157653 Change-Id: I32725bc5fbc5b56d77cd23728964128415bbc647 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27597 Tested-by: Jenkins Server <pfd-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: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@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>
* Limit checkForIplAttentions to master in early IPLBrian Stegmiller2016-07-311-3/+12
| | | | | | | | | Change-Id: I74f3c6c00fdb7ea30bdf06d4be37c1a717fc6210 RTC: 154658 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27342 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 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-287-9/+101
| | | | | | | | | | | | | | 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>
* MDIA: restore processCommandTimeoutCaleb Palmer2016-07-261-2/+0
| | | | | | | | | | | | | Change-Id: If2b48e5f1553498998b2d11869ed16f4cb0e72b3 RTC: 145132 Depends-on: Ief6d926673bf32e27056862ecd5043d86c000ace Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24221 Reviewed-by: Zane C. Shelley <zshelle@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: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Brian J. Stegmiller <bjs@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>
* Add support for Indirect Scom Form 1Matt Ploetz2016-07-241-0/+4
| | | | | | | | | | 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>
* Compute Nest Freq during 6.12 host_voltage_configAndres Lugo-Reyes2016-07-241-0/+4
| | | | | | | | | | | | | Change-Id: I8c6a8aac1a683b1b3c4defefa06ea22e3d8c564e Depends-on:I358109f01732fdb4d75409693d5a1866bcd57866 RTC:151649 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26269 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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* PNOR driver changes for 128MB supportcrgeddes2016-07-221-2/+2
| | | | | | | | | | | | Minimum set of changes to support a 128MB PNOR chip RTC: 154286 Change-Id: I0e4a5cf5aa06bfe6e8aef65be4ccc180d15a2d01 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27143 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Minor PG tweaksDan Crowell2016-07-211-1/+2
| | | | | | | | | | | | | | Change bit to check for PERV targets (use bit3) Set ATTR_PG based on VPD data Make ATTR_PG writeable Change-Id: Id31b39667ae66f274761402e1369c56d4817565f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27219 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Trustedboot PCR Extend reworked to use task message queueChris Engel2016-07-182-2/+10
| | | | | | | | | | | | | | Removed TPM log manager and required functions from HBB and replaced with a simple message queue Change-Id: I5f5a418b6ea8c0228229e8c45523385b488e2b6b RTC: 155519 ForwardPort: yes Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27133 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Avoid visible errors during SBE updatePrasad Bg Ranganath2016-07-181-0/+64
| | | | | | | | | | RTC: 135822 Backport: yes Change-Id: I9581abc5f1d0cb4812743190c9914b11c63c0089 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/764 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>
* 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>
* Changing XZ decompressor to verify without pnor changesElizabeth Liner2016-07-182-3/+0
| | | | | | | | | | | | | This patch set is reverting previous pnor changes for XZ verification, and instead is checking the MAGIC_HEADER to verify if a section is XZ compressed. Change-Id: I17c6ec76aef0261e07042f91df550ef34c3d60b3 RTC:149915 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26728 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>
* 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>
* Deconfig-by-association updateLateef Quraishi2016-07-121-0/+19
| | | | | | | | | | | | | | | | | | New De-Config Rules: - EX with no good cores be de-configured. - EQ with no good EXs be de-configured - In fused core mode, cores must be de-configured in pairs Change-Id: I74ffa50055287589c58faff3d788b6a71575440e RTC: 130099 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25955 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* IStep changes and HWP integration for 8.7 host_set_voltagesAndres Lugo-Reyes2016-07-081-3/+14
| | | | | | | | | | | Change-Id: I0fb1c5ddfdefee742b0fd1cd7907b2f4cbeba2a6 RTC:144620 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26437 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: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Register verify_container runtime interfaceNick Bofferding2016-07-071-0/+42
| | | | | | | | | | | | | | | - Added verify_container API to runtime interface for secureboot - Added testcase to test API registration - Created common secureboot tracing files Change-Id: If755644ff6507f14fd0463f4accf05301fc91832 RTC: 156119 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26104 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: Christopher J. Engel <cjengel@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Support secure load and unload API prototypeNick Bofferding2016-07-061-0/+31
| | | | | | | | | | | | | | | | | | - Implement API for load and unload of secure section - Implement test to ensure API is callable Change-Id: Ie82d7e39b6adca703c4cfa4f79fb77be54d0c88b Forwardport: yes RTC: 156118 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26358 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: Stephen M. Cprek <smcprek@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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26658
* Support new verification failure procedure calloutNick Bofferding2016-07-041-0/+1
| | | | | | | | | | | | | | | | | | | - Added new procedure callout for verification failure - Mapped callout to firmware subsystem - Added procedure decoder to error parser Change-Id: Ie94790df68c15ba100723a9eb8a7688a7e7612a2 Forwardport: yes CMVC-Prereq: 998934 RTC: 93870 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26481 Reviewed-by: Martin Gloff <mgloff@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: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26585 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
* PM Complex Implementation Deferred to Pass 2Marty Gloff2016-07-032-1/+94
| | | | | | | | | | | | | | | Load a given LID only once from pnor/fsp. Make a publicly accessible version of convertHomerPhysToVert() for HTMGT to consume and have it handle the non-runtime case. Use constants defined by HWP or FAPI. Change-Id: I554d57a0b74ca674be9fa9a5b527f6bb53f9a4d6 RTC: 155384 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25273 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>
* MDIA: re-enable use of maint cmds - general changesCaleb Palmer2016-07-011-4/+8
| | | | | | | | | | | Change-Id: Ief6d926673bf32e27056862ecd5043d86c000ace RTC: 145132 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24220 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@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-74/+219
| | | | | | | | | | | | | | | | 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>
* Adding support for EFFECTIVE_ECElizabeth Liner2016-06-301-0/+7
| | | | | | | | | | | | | | | | For OpenPower systems hostboot needs to add support for the EFFECTIVE_EC attribute that the FSP normally fills. This commit implements the same logic as the FSP, but without processor cards. Change-Id: I6688a5fa5509b1ee65df2454c4ab101ba0fc65de RTC:121686 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25907 Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26391 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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>
* Add cstdlibDan Crowell2016-06-302-2/+45
| | | | | | | | | | | | Need file to define std::size_t Also add size_t to cstddef (per spec) Change-Id: Ic436ea2bcbc75173c89fde2a14d70662b29cdc83 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26360 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>
* Create User Details section so we can record PIB err if applicablecrgeddes2016-06-302-0/+71
| | | | | | | | | | | | | 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>
* MDIA: Updated supported command events in MDIA.Zane Shelley2016-06-282-81/+36
| | | | | | | | | | | Change-Id: I27e3c31602f869d705c1efef8ad74cc442b932ae RTC: 155877 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25679 Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Benjamin J. Weisenbeck <bweisenb@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>
* Make HB and HW Mailbox Scratch reg numbering consistentDean Sanner2016-06-241-5/+5
| | | | | | | | | | Change-Id: I74dde172f66e910f40f0fd4ffe981e0932c9ae4e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24564 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins 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>
* FSPless continous tracing supportDean Sanner2016-06-242-0/+113
| | | | | | | | | | | | | | | | - Updated trace daemon to output trace buf addr, size to mbox scratch 1, 2 - Moved enable disable of continous trace to "istep" control - Updated istep tool to dump traces to file and commandline Change-Id: I2d9f48f5ed9878591ff9ab45fa18a98fc286ac1f RTC:127346 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24565 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
OpenPOWER on IntegriCloud