summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep14/call_host_mpipl_service.C
Commit message (Collapse)AuthorAgeFilesLines
* Enable copying of architected registers for OPALMurulidhar Nataraju2020-01-071-2/+2
| | | | | | | | | | | | based systems. Modified the check to be based on the hypervisor type. Change-Id: I2df21339160e0658feb1797dbcd7e3c4ae33c2f3 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89285 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>
* Automatically include config.hDan Crowell2019-12-061-2/+1
| | | | | | | | | | | | | | | | | | Rather than having to remember to include config.h anywhere we reference a CONFIG variable (and usually forgetting), this adds it to the default compiler flags so that it gets included in every source file we build. Change-Id: I53622ab4d46c55d942e98cae6ec03049fd5b3d08 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/87475 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: Zachary Clark <zach@ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com> Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com>
* OPAL/MPIPL: Processor Dump Area Table interfacesRaja Das2019-03-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support to collect processor architected register data. SBE <--> Hostboot : ------------------- During first boot, hostboot reserves memory to copy architected register data by SBE and sends address to each SBE (see commit 9f49d11b). During MPIPL SBE collects architected register data and copies to reserved memory. Hostboot <--> Hypervisor : -------------------------- HDAT/SPIRAH has new ntuple (Processor Dump Area) to pass various architected register data. During IPL/runtime hypervisor reserves memory for architected register data and updates SPIRAH. During MPIPL (istep 14.8), hostboot converts SBE formated architected registers data to HDAT format and copies to hypervisor reserved memory. It uses NACA/SPIRAH pointers to get hypervisor reserved memory details. Hostboot has to update SPIRAH ntuple after loading new LID to memory. Hence this patch introdues below new attributes: - PDA_CAPTURED_THREAD_REG_ARRAY_ADDR - PDA_CAPTURED_THREAD_REG_ARRAY_SIZE - PDA_THREAD_REG_ENTRY_SIZE - PDA_THREAD_REG_STATE_ENTRY_FORMAT Change-Id: Idc7489e8cf6fc68fe80f028ba6deb97aa72486bf CC: Sampa Misra <sampmisr@in.ibm.com> CC: Daniel M. Crowell <dcrowell@us.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/61627 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 Attr to Save/Fetch MDRT CountRaja Das2018-07-201-74/+57
| | | | | | | | | | | | | | | | | | | | MDRT count is saved out into an attribute in istep14 and the same is fetched out in istep21 for Phyp as well as Opal(ZZ-L) system. Added libruntime.so to istep14, Since Dump relies upon runtime module Moved 'useRelocatedPayloadAddr' setting to call_host_mpipl_service(), So that we have everything set before calling doDumpCollect() Change-Id: I5d30135d86a1477a68509aaff0516efb4d620410 Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/58636 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: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Cleanup the fix for "zero length dump on single node systems".Rick Ward2018-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | The attribute, IS_MASTER_DRAWER, was being set in the function host_sys_fab_iovalid_processing() (istep 18.9), unfortunately that function is not called on single node systems. Had to reverse the logic on the previous IS_MASTER_DRAWER attribute, and make it an IS_SLAVE_DRAWER attribute. The reason is that there is a limitation (bug?) which requires hb-only, volatile attributes to have a default value of zero. Change-Id: Ib27349f18b2738b405649723cdcb11e2ec919991 CQ:SW423016 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56883 CI-Ready: Richard Ward <rward15@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: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Dump collection should only be run on the master node and skipped on slaves.Rick Ward2018-03-221-138/+150
| | | | | | | | | | | | | | | | | | | Added an attribute, IS_MASTER_DRAWER, and a utility function, isCurrentMasterNode(). The attribute is set in host_sys_fab_iovalid_processing which is called during istep 18.9. isCurrentMasterNode() is called by call_host_mpipl_service() to ensure that memory dump collection is only performed on the master node during a MPIPL. Change-Id: I7fd48476c3cd7cf4697eafed6705d158a9c54dcf RTC: 116089 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55162 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Do Not Unload libruntime.so on MPIPLsMike Baiocchi2018-02-031-14/+1
| | | | | | | | | | | | | | | | | When Hostboot processes MPIPL information on istep 14.8 host_mpipl_service, it needs to preserve that information until it can write it back into the Payload structure after PHYP's HDAT and PAYLOAD are reloaded later in the IPL (istep 20 and 21). Change-Id: I8d629dd268d61c9a4c417c4acc1d6f719f157cae Backport: release-fips910 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53282 Reviewed-by: Stephen M. Cprek <smcprek@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: Nicholas E. Bofferding <bofferdn@us.ibm.com>
* Always collect dump data during MPIPLscrgeddes2017-05-111-18/+1
| | | | | | | | | | | | | | We can always collect dumps during MPIPL so we can remove this check Change-Id: Ie35109ac3c9019502350c9c318c6190430d07c4b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40274 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: William G. Hoffa <wghoffa@us.ibm.com>
* Support DRTM RIT protectionNick Bofferding2017-03-031-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added mailbox scratch register 7 definition - Added DRTM functions - Added set/clear security switch register functions - Added additional security switch bit definitions - Added secureboot extended library to host DRTM functions - Inhibited TPM start command in DRTM flow - Added new config options for DRTM and DRTM RIT protection - Added new DRTM attribute to indicate if DRTM is active - Added new DRTM attribute to hold DRTM payload address - Added new DRTM attribute to initiate DRTM in lieu of loading payload - Updated target service init to determine DRTM settings - Updated host start payload step to initiate DRTM if conditions are met - Updated host MPIPL service to verify DRTM payload and clean up DRTM HW state - Updated host gard step to verify DRTM HW state - Rerouted PCR extensions to PCR 17 in DRTM boot - Use locality 2 for all PCR extensions in DRTM boot - Inhibit extension logging (for now) in DRTM boot - Only extend seperator to PCR 17 in DRTM boot Change-Id: Id52c36c3a64ca002571396d605caa308d9dc0199 RTC: 157140 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35633 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Timothy R. Block <block@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Integrate p9_mpipl_chip_cleanup HWP for P9crgeddes2016-10-301-34/+8
| | | | | | | | | | | | | | | Although the procedure is turned on at this point we are not able to test if it works because we are not this far in MPIPL HB development yet. Change-Id: I8e61e69d928f69900c53021f0683db21eeb46562 RTC: 157653 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31904 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: Matt Derksen <v2cibmd@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Istep 14 Infrastructure and memory attribute additioncrgeddes2016-05-061-5/+5
| | | | | | | | | | | | | | | This commit turns on a lot of functionality for istep 14. In addition it updates HB's attributes with the new memory fapi attributes after this commit memory_mcs_attributes.xml , memory_spd_attributes.xml , and p9_htm_setup_attributes.xml can be mirrored from the ekb. RTC: 134082 Change-Id: If09e3089eef110517002abcd78d4c6368aa0a8e7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24001 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* P9 Isteps: Created directory structure for istep 14 wrappersPrachi Gupta2015-12-111-0/+270
Change-Id: Idad8c430afef013a91e0c206d4fff80fc45053c0 RTC:137652 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21501 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud