summaryrefslogtreecommitdiffstats
path: root/src/build/debug/simics-debug-framework.py
Commit message (Collapse)AuthorAgeFilesLines
* Force a Hostboot dump on any TI in SimicsDan Crowell2020-01-071-1/+17
| | | | | | | | | | | | | | | Execute a magic instruction in the TI path to force a hostboot dump to be collected on any TI while running in Simics. Change-Id: I8aeffb2b646bbe8480568e8af33a658400fa01a5 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/88831 Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@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: William G Hoffa <wghoffa@us.ibm.com>
* Developer Improvement: Get code coverage tool working with HostbootZach Clark2019-05-131-2/+3
| | | | | | | | | | | | | | | This commit fixes GCOV code coverage for P9 with GCC 4.9.2 Change-Id: Ie1e7c35f67414531dbd6e7a771ac1529a9ebd59d RTC: 208351 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76812 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@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>
* Fix issues w/ axone updates to simics scriptsChristian Geddes2019-02-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Simics teams were hitting a problem trying to boot older simics models because our scripts relied on $MACHINE being set to CEC_MODEL. This value gets set by linux so we cannot rely on it. Instead use the old way to lookup MODEL for older version of simics, and for new way, (axone and beyond) just force MODEL to be "AXONE" for now. Eventually simics team needs to provide interface to lookup MODEL. Also in this commit we need to write "0x5A5A5A5A" to the SBE seeprom images to avoid updates, update the simics backing build, and change the CLI args for hb startsimics in axone to no longer use -o and always pass in the path to the combined SBE image/ HBBL image Change-Id: Ib477e86b0b8aa1a4d44545c62b16fc2cbed2034b CQ: SW453806 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71323 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: CALEB SCHLOSSIN <calebs@us.ibm.com> Reviewed-by: VIJAY F. LOBO <vflobo@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: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Axone Simics Updates -- Finds Functional Master ProcBill Hoffa2018-12-141-45/+40
| | | | | | | | | | | | | | | | | - Updates for new Simics infrastructure - Finds Functional Master Proc - Finds TPM - Boots to istep6.9 before failing target verification (more Axone FW changes needed) Change-Id: Ib3f44008ed12202777c2edacea42d5cb20a4a7a3 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67206 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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
* Disable automatic collection of SIM logs with MAGIC_SET_LOG_LEVELChristian Geddes2018-11-011-4/+6
| | | | | | | | | | | | | | | | | | | | While we were trying to trace down some PSU simics bugs we added a new feature where HB can elevate log levels of simics components and copy out simics traces to a file which can be used for FFDC. We found the bug which prompted this and we are seeing issues where attempting to set the log level on procs in node2 is problematic. This commit makes it so no logs are captured unless the env var ENABLE_HB_SIMICS_LOGS is set in simics env. Change-Id: Icc049b86daf89ff037edb1b5a1cf99c9ce551a2d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68140 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: CALEB SCHLOSSIN <calebs@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> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add way for developers to disable hb sim logging via env variableChristian Geddes2018-10-251-1/+8
| | | | | | | | | | | | | | | | | | | | There was a request to add a way to disable a new feature that was added to allow hostboot to temporarily elevate and capture simics component logs. When hostboot puts the magic instructions to enable log capture and elevate log levels it causes log spam and adds to IPL time in simics. Simics devs can now set DISABLE_HB_SIMICS_LOGS = 1 and the magic instruction will look for that env var and skip collecting or elevating the logs. Change-Id: Ib31bad3485833f642533dfd52af9cf941a2772d6 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67882 Reviewed-by: CALEB SCHLOSSIN <calebs@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> Reviewed-by: Ilya Smirnov <ismirno@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: William G. Hoffa <wghoffa@us.ibm.com>
* Elevate log levels for simics during PSU opsChristian Geddes2018-10-181-0/+60
| | | | | | | | | | | | | | | | | | | | This commit introduces some new magic instructions one which will temporarily elevate the log levels for given components and another which will start and stop collection of these simics logs. This was added so we can temporarily increase log levels during PSU operations in hopes of catching a timeout we have been seeing in simics and getting more info for the simics teams. Change-Id: I990a4b5413f7ff14796dee36e39199f785aef458 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67359 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: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Hieu C. Nguyen <hieu.nguyen@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Use Simics CPU Object passed in when executing hap handler codeBill Hoffa2018-09-271-29/+39
| | | | | | | | | | | | | Change-Id: I589529f3550e7c9a11f0e0027a75edd0eec48e25 CQ: SW445281 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66677 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@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>
* Avoid SIMICS exception if SBE tracMERG not availableAndrew Geissler2018-07-271-1/+4
| | | | | | | | | | | | | | | | It's not clear what's causing the failure to retrieve SBE traces but do not want to cause SIMICS to fail when this happens. Best to allow SIMICS to continue so further FFDC can be gathered. Change-Id: Icbde1065769a3755e0a4276a06ce627af0edcb3a CQ: SW437459 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63172 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Always use last valid SIMICS object for traceAndrew Geissler2018-06-291-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The script should always use the last SIMICS object it finds that covers the required memory area. This fix was required because there is a scenario where there are 2 nodes booting in parallel in an SMP based system. node1 reached istep15 and exited cache contained mode which removed its D2Proc0.l3_cache_ram object. node0 however was still in cache contained mode. The cache objects in SIMICS have a priority of 0 (the highest) and the memory objects have a priority of 1. Therefore when we hit this situation, the SIMICS object for D1Proc0.l3_cache_ram was used incorrectly for node1 memory. The fact this script uses node0 by default, and then looks for a higher priority object that covers the correct memory region is confusing. But, there are historical reasons it had to be done that I'd rather not revisit. Change-Id: I46521b6252c25f3ca77022c41e0035a065ca2bfb CQ:SW435477 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61511 Tested-by: Jenkins Server <pfd-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>
* Use last l3 cache object for SIMICS traceAndrew Geissler2018-06-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | The logic used in this script to choose the correct l3_cache_ram object is complex. Currently in a multi-node SIMICS system, the first l3_cache_ram object is always used because it always has an HRMOR that is at 0x8000000 and all l3_cache_ram objects have the same priority (0). This change just adjusts the logic to always use the last l3_cache_ram object in the list that fits the required memory region and has the same or higher priority. Change-Id: I960a5b9f04d934a8823f541c0a95133700cc0120 CQ: SW431167 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60050 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add some MAGIC instructions to aid Simics optimizationDan Crowell2018-05-301-42/+0
| | | | | | | | | | | | | | | | 8001 - Tell Simics we are waiting on the FSP 8006 - Tell Simics we shutdown 8020 - Tell Simics which istep we're running CQ: SW423959 Change-Id: Icea13d2ed7ff73de04400c46b9b1855e94db7c84 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58104 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: Hieu C. Nguyen <hieu.nguyen@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Modify Continuous Trace Address Calculation for SimulationBill Hoffa2018-04-251-4/+5
| | | | | | | | | | | | | | | | | | | | - In Multi-Node simulation the address calculated after exiting cache-contained mode was negative which resulted in errors in simulation Change-Id: I84fa9e0b40be00d046bba5dbf766aa98ea50092f CQ: SW425380 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57499 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> CI-Ready: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> CI-Ready: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Expand Hostboot to 64MBDan Crowell2018-01-151-3/+3
| | | | | | | | | | | | | | | | | | | | We hit out-of-memory errors while trying to boot a Opal system due to the large amount of memory used by the PM procedures and the pinning of memory in secure mode. Also did some other rearranging of the pinned memory sections to get some space back. Change-Id: I61f219d7f32871a39b236d963bae893a6ef0ce0e CQ: SW413191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51724 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: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Continue to run simics on lack of write access for trace filesJaymes Wilks2018-01-111-1/+15
| | | | | | | | | | | | | | | | | | For situations like continuous integration, it is helpful to have simics continue to run even without write access for hbTracMERG and hbTracBINARY. This change will handle the exception via printing the error to the simics console and then move on. Change-Id: If672c5c99fd2804a40e4d56687e16535cf7bf867 CQ:SW380662 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50716 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: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Log traces to error logs in HBRTMatt Derksen2017-10-191-0/+7
| | | | | | | | | | | | | | | | This enables buffer tracing at hostboot runtime. Will add these traces to runtime errors for better debug Change-Id: I795bb7deafdd02adea4588ebf8dfb11cbce116a0 RTC:172770 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48084 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Increase max hostboot memory to 48 MBNick Bofferding2017-08-311-2/+2
| | | | | | | | | | | | | | | | - Extends hostboot memory from 32 to 48 MB to handle large code loads - Dump 48 MB in hostboot dump script - Support 48 MB hostboot size in debug framework Change-Id: I3e64e85a7e2455bc4add2f2db9b48f57db433c7d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43735 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@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>
* Support for SMM in HB debug toolsDan Crowell2017-08-141-4/+12
| | | | | | | | | | | | | Fix a bug related to handling mirrored memory (SMM) in our simics debug framework Change-Id: I28c659081efb1fc742a4e7a2baf6bba314ef0e3a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44297 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add timestamps to Simics Istep messagesDan Crowell2017-05-221-1/+3
| | | | | | | | | | | | | | | | Also added entries for -kernel startup -cxx testcase start (99.1) -shutdown Change-Id: I870961ae8ea0b43003db6bafb21addf660ab99ef Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40346 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* More istep debug outputDan Crowell2017-04-171-0/+6
| | | | | | | | | | | | | | | | Write current istep out to mbox scratch reg 5 Print istep out to simics console Change-Id: I14d8a9afba12b627a0b1880e0818b5b16f317d7c RTC: 171748 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39292 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: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Update Simics tooling to support version 5.0Bill Hoffa2017-01-251-2/+1
| | | | | | | | | | | Change-Id: If35d404f7733364d0d26137ec47b5e0c2cd3612f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35317 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Tweak meaning of START_OCC_DURING_BOOTBill Hoffa2017-01-101-2/+3
| | | | | | | | | | | | | | | | - Instead of forcing to start when set, query payload type and when off, never start - Update bbuild to recent build - Remove sim workarounds due to old level - Add simics debug hack to workaround mambo hrmor sim bug Change-Id: Ic1aa35c60b4ccd7679c0f3b08bd3b180b7b289c6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34545 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@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>
* Fix bug with simics-debug-framework.pycrgeddes2016-12-201-2/+5
| | | | | | | | | | | | | | A fix was put in to handle the HRMOR at different addresses but it broke the MPIPL path. We are trying to find the base memory region, we do this by checking if a memory map entry encompasses the HRMOR + 32MB Change-Id: I6daf1af9d93acffdf84cbfa914a38162112c2bce Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34071 Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix simics continuous trace to handle non-zero HRMORDan Crowell2016-12-131-3/+9
| | | | | | | | | | | | | | Changes needed to boot from a HRMOR that is not part of the lowest memory range that we define. For example, booting from proc1 that starts at 4TB. Change-Id: I6625b3b34830ac9f85b1eae8be52499ffd1eb432 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32258 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Tweaks for supporting p9so_sim OP build targetDean Sanner2016-10-181-5/+9
| | | | | | | | | | | | | - Remove Simics PAYLOAD load optimization - Distribute simics_NIMBUS.xml Change-Id: I80e5ce61d0c0fa3be9254bdbb0e04fc2439ea6c4 RTC:143500 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30085 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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove print statement when skipping hap handlerDan Crowell2016-10-141-2/+2
| | | | | | | | Change-Id: Iea7677aac045f1f73eedb93f4308444e63ce4bc3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31262 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>
* Log SBE Traces on error (simics only)Dan Crowell2016-09-281-0/+17
| | | | | | | | | | | | | | | A quick change to add a new magic instruction that collects the SBE traces any time we hit an error from the SBE. If multiple errors occur they will all be appended to the same file. Data will be saved to $sb/simics/sbetrace.hb.txt. Change-Id: I27575c1565c0089e847e19c3e51cb2926833e387 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30206 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add support to disable hap handler for MAGIC instructionsDan Crowell2016-09-281-1/+13
| | | | | | | | | | | | | If the HB_DISABLE_MAGIC environment variable is set to 1, we will skip all of the handling in our hap handler. Change-Id: I56e84ea160a6345497a505f7bcaeb6c8b20b60c3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30175 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: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Do not lose traces during cache to mem transitionDan Crowell2016-09-161-4/+8
| | | | | | | | | | | | | | | | | There is a window in the simics ipl when we have two objects covering the same physical addresses. Our continuous trace logic needs to pull the data from the same object that is catching the memory accesses in the model. This is indicated by a priority field in the map structure. (Note - in our case we want to use the cache object until it goes away in proc_exit_cache_contained istep.) Change-Id: I6fc89c142a5fa48b2577867fbf5056ee0bb13289 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29607 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Sort traces in debug toolsDan Crowell2016-09-141-1/+1
| | | | | | | | | | Change-Id: I836cc42746c8b5369b469534cce713b44885e93c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29468 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: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Add simics breakpoint for exceptionsDan Crowell2016-05-241-3/+8
| | | | | | | | | | | | | | | | | | | Created a new magic instruction handler that can be enabled via environment variable to stop the simulation for Hostboot exceptions. This is useful when we want to get a backtrace at the failing spot without recompiling code or having to manually insert breakpoints in simics directly. Enable the function by setting HB_BREAK_ON_ERROR The trigger call is MAGIC_BREAK_ON_ERROR Change-Id: I17e008281d010e3f8c5e5817e5f30fd0ccb624d0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24600 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Enable startDeadmanLoop in host_activate_master.Ccrgeddes2016-03-311-17/+1
| | | | | | | | | | | | | Change-Id: I04c7d38860f042e392026f81f9f3772212dfe14f Depends-on:Ib0db5ac2b9b5d5f5c2967ff97794493d867fb04b Depends-on:Ic8bac9940b00eae01c175f51dd1872b2bb128b95 RTC:133832 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21901 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* HOSTBOOT: Support fused coresBrian Stegmiller2015-12-111-2/+56
| | | | | | | | | Change-Id: I2ad133be733ee9e41590b3b8bd60bd6abe69d1a9 RTC: 126786 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22054 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Load PAYLOAD from FFS partition.Thi Tran2014-06-301-1/+11
| | | | | | | | Change-Id: Ib4f3b0631a9afb92fd5950b1636b8a3077684dbc Origin: Google Shared Technology Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11553 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Hostboot memory mirroring supportDoug Gilbert2014-06-021-4/+19
| | | | | | | | | Change-Id: I20a5de367b33c657abdc5c6aef29cecab940a8ca RTC: 102529 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10641 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Move mailbox area to leave more room for Sapphire.Patrick Williams2014-05-091-2/+2
| | | | | | | | | | Change-Id: If39241fbbc110400177b3ef3a5e895f5ed14f2a4 RTC: 81670 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10588 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove phys_mem hardcoding to handle map changesDan Crowell2014-01-071-8/+23
| | | | | | | | | | | | Fixes 2 issues: -Memory map changes broke 2-node Brazos -P8_NO_SP config busted because HRMOR=0 CQ: SW239593 Change-Id: Id62f1d707b59849d8633a51bb4f74905e7318d78 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7883 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Add multinode support to HB continuous traceDoug Gilbert2013-12-091-3/+39
| | | | | | | | Change-Id: I0eb3d33992d821fc1f1fced189553c73c7778929 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7332 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fixed performance issues in SIMICS IPLStephen Cprek2013-10-311-0/+4
| | | | | | | | Change-Id: Iccce5b641d0e2dc414bacc143a6b3e186f4e49ab CQ: SW224728 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6960 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Tweaks for simics scriptsDan Crowell2013-08-091-1/+2
| | | | | | | | | | | | 1) Moved hardcoded cpu to 1 place only 2) Attempt to use Simics commands for masterproc Change-Id: If6bb1f60342d16da54cb558a4092425da2ed1215 RTC: 51267 CQ: SW214903 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5509 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support Brazos Simics model names in debug toolsDan Crowell2013-04-171-1/+1
| | | | | | | | | | | | | | Quick fix to support the new object names in the Brazos Simics model. There are more changes required to support multinode (see RTC: 61853) but this should work for single node bringup. Change-Id: If0c591a2ae7c6665dcf76aa4a2e5a904455da4dd RTC: 68898 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3955 Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support multi-core in standalone and move to new build.Andrew Geissler2013-04-051-1/+1
| | | | | | | | | | Change-Id: I5e69a15be0117b007dc343fcba5fa7e1493331fc RTC: 68317 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3841 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Allow trace magic instrs to succeed when fsp-trace missing.Patrick Williams2013-01-151-2/+2
| | | | | | | | | | | | | | The PHYP environment does not have the fsp-trace executable in their environment and so the magic instruction handlers for continuous trace were failing. Allow the fsp-trace invocation to succeed by running 'fsp-trace || true'. The side effect is that tracMERG will be empty if there really is an issue with fsp-trace. Change-Id: I5bef846591252fd63500b354768c8a23f29ff9ec Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2932 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Lockless trace implementationPatrick Williams2012-12-141-46/+8
| | | | | | | | | RTC: 35396 Change-Id: I96ea0d95606f04abb4dc2b0470345ca475b53912 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2520 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support code coverage in extended modules.Patrick Williams2012-10-091-0/+14
| | | | | | | | | | | | | | | | | - Reduce optimization (to -Os) to fit when doing coverage profile. - Remove errl storage area from base image. - Add GCC function attributes to sys library functions. RTC: 36933 Change-Id: Ic83011a2444ef5b735db0446a14a0af34187eebf Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1908 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Melissa J. Connell <missyc@us.ibm.com> Reviewed-by: Paul Nguyen <nguyenp@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for Non-zero HRMORDan Crowell2012-09-161-0/+24
| | | | | | | | | | | | | | | | | | Changes to kernel code to support detection and use of HRMOR offset in memory Changes to tooling to handle the real memory offset New interface to retrieve the physical address that corresponds to a virtual address To test, run these commands before starting up Hostboot: system_cmp0.cpu0_0_05_0.write-reg HRMOR 0x8000000 proc_venicechip_cmp0.phys_mem.del-map p8Proc0.l3_cache_ram 0 0 RTC: 46032 Change-Id: I50ab248f941218a3a14a8f0fc12a551b56dc7cf3 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1553 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Memory profiling tools.Patrick Williams2012-09-071-14/+87
| | | | | | | | | | Change-Id: I4a9cfc1f55c09ff6d02dce80889ac2e3150ab137 RTC: 44504 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1619 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initial attention handler support.Brad Bishop2012-07-161-0/+4
| | | | | | | | RTC: 40764 Change-Id: Ic5b5b3e80915cb4f0ee543baa6fe4abc51e07ad2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1079 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update HB simics calls to new PHYP model names.Patrick Williams2012-06-281-7/+9
| | | | | | | | | | | | | | | See SW149779. The PHYP simics model is changing the location of phys_mem to be under system_cmp0 and renaming venice_cec_chip_cmp0 to proc_venicechip_cmp0. Change our debug and startup scripts to match these new naming conventions. Change-Id: I32b2ff8fa3467806ac4d7fac1b8b2e1db0796259 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1256 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud