summaryrefslogtreecommitdiffstats
path: root/src/build/debug/ecmd-debug-framework.pl
Commit message (Collapse)AuthorAgeFilesLines
* Another fix to symsmode parms for debug modeDan Crowell2018-08-301-1/+1
| | | | | | | | | | | | | | Fixed the mismatched default parm between hb-dump-debug and the framework. Change-Id: Id3af424ed65ed371d9c9dfc09be00212bfe87acb Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/65367 Reviewed-by: Christian R. Geddes <crgeddes@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>
* Make processing of hrmor value in MemStateInfo consistentChristian Geddes2018-08-011-5/+1
| | | | | | | | | | | | | | | | There was some confusion on whether the value in core scratch 1 that told us where Host HRMOR lives was in MB or just Bytes. Going forward this value will be in bytes. CQ: SW440425 Change-Id: I5e7e5efdd584c3a8c050091b32d5443dff3cd417 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63627 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: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Fix symsmode check to allow in-memory lookupDan Crowell2018-07-241-1/+1
| | | | | | | | | | | | | | Switched the default value from empty string to 'default' and fix the associated checks. Change-Id: If8379ad02854fd46b800e5dbfdfef41558ee745e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63154 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: 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>
* Modify debug framework to be build-independentDan Crowell2018-06-261-0/+15
| | | | | | | | | | | | | | | | | During boot, Hostboot will push key pointers into memory. This allows the debug tools to find the pointers (using a known static memory address) to base memory accesses on. This replaces the existing symbol lookup that we use now. That means we don't need to have the exact symbol file for the build we're debugging against. Change-Id: I4618e15a3dc90acc3a89520a502eb818c1b4258c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56097 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>
* Write Hostboot HRMOR into core scratch reg 1Dan Crowell2018-06-041-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | Hostboot code will write the current HRMOR value into core scratch reg 1 (scom=xx010A87, spr=0x08) at initial boot. This data is ORed into the memory size data that was already present. The bootloader code will do the same. Also updated the debug tools to key off of this data if it is available to avoid any HRMOR hardcoding. The purpose of this change is to provide a method for the FSP code to handle various memory remapping scenarios that are currently in plan without needing any explicit communication from Hostboot. Change-Id: Ia3c81980ebd780ae182956cddae785dd408fbed9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59699 Reviewed-by: Prachi Gupta <pragupta@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: William G. Hoffa <wghoffa@us.ibm.com>
* Better debug for weird PIR issuesDan Crowell2018-05-071-3/+10
| | | | | | | | | | | | | | | | | | | | | | Ran into a case where Hostboot was getting booted with the wrong fabricid for the node it was on. In the process I realized it was hard to tell what was going on. Added printk output to show the PIR of the boot core. Modified how force-hrmor option is consumed in ecmd-debug-framework so that you can force unnatural lookups. Change-Id: I77fc614889aa3cedcc8ccd39cac9ebc36f239b56 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57910 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: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Dynamic ATTR Override support via debug interfaceDean Sanner2017-06-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | -Supported by debug tools (ecmd-debug-framework/Cronus) Only in istep mode and between isteps Requires HB to be running -Uses output of attributeOverride tool (same format as ATTR_TMP) -Introduces two new "debug" isteps 255,4,set_attr_overrides 255,5,clear_attr_overrides -Once istep is triggered Hostboot sends down address/size and the debug tool uses putmempba to push data to cache/mem. Then Hostboot consumes just like ATTR_TMP Change-Id: I4ade7b85acac077a15bdb36bba1ef9df4263b428 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41271 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update ecmd-debug-framework for P9Dean Sanner2016-10-171-13/+4
| | | | | | | | | | | - P9 always uses pba mode for memory access Change-Id: I7a2455c8244e58ce283ce51ea37a9979b2798d48 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31374 Reviewed-by: Prachi Gupta <pragupta@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>
* FSPless continous tracing supportDean Sanner2016-06-241-9/+1
| | | | | | | | | | | | | | | | - 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>
* Allow ADU access to memory instead of PBA in ecmd debug toolDan Crowell2014-12-031-5/+58
| | | | | | | | | | | | The mempba access procedures use PBA BAR3 to get to memory. The OCC also uses BAR3 so there is a collision with the tool if the OCC is running. Added an option to the ecmd framework to allow a user to force a method (pba/adu) and for the tool to check by default. Change-Id: I403cf1f08a8f753ea7f29e59501d80fb2daf432f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14677 Tested-by: Jenkins Server 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>
* Add node support to ecmd debug frameworkDan Crowell2014-02-271-8/+17
| | | | | | | | Change-Id: Ibbbcf74218b66aea04d33064655b7f196545d8fa Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8849 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Allow Hostboot Debug tools that do unaligned writes to work on CronusMike Jones2013-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | The ecmd debug framework support uses cipputmempba to write to Hostboot memory, this was changed some time ago to disallow non cache-line aligned writes. But some tools (e.g. HwpfAttrOverride) do unaligned writes and they therefore fail. Also any tool that calls a Hostboot function using CallFunc will fail because that also does unaligned writes. The emcd team changed cipputmempba to do a read-modify-write for unaligned writes if the inj mode is specified. Also a small fix to HwpfAttrOverride here, it was interpreting a decimal value (the attribute id) as hex which must be due to something changing because this used to work. Change-Id: I6535340e41d802489070bc6cffff85b9e33337db RTC: 70350 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6362 Reviewed-by: Donald E. Dahle <dedahle@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Base SPLess istep on SP attribute flagsDean Sanner2013-05-151-5/+3
| | | | | | | | Change-Id: I69250fd57b264d507b0fb4f2c82f4752f83c4329 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4091 Reviewed-by: Van H. Lee <vanlee@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* ECMD-based debug framework.Patrick Williams2013-01-141-0/+405
RTC: 47061 Change-Id: Ie77c553a6f4e67c11927ed8650f81ab80ae1672c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2883 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