summaryrefslogtreecommitdiff
path: root/tools/intel_reg_dumper.c
AgeCommit message (Collapse)Author
2015-04-08tools/intel_reg_dumper: fix PIPECONF decodeImre Deak
- decode the register for BXT too - decode interlace on VLV/CHV too - don't decode rotation and bpc on platforms where these fields are not defined Signed-off-by: Imre Deak <imre.deak@intel.com>
2015-04-08tools/intel_reg_dumper: fix DSPCNTR decode for BXTImre Deak
Signed-off-by: Imre Deak <imre.deak@intel.com>
2014-09-17tools/intel_reg_dumper: Shows fences and rp debug regs on BDW+.Rodrigo Vivi
v2: a more generic fix to cover current and future platforms (Damien). Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-04-04tools/intel_reg_dumper: use haswell_debug_regs on BDW tooPaulo Zanoni
Instead of using an older set of registers. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-03-22lib/intel_io: rename mmio setup functionsDaniel Vetter
Makes their intent a bit clearer. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_gpu_tools.h to intel_io.hDaniel Vetter
With the header cleanup we can now give this header a suitable name, since it now really only contains register access and other I/O functions and assorted definitions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: remove uncessary #includes from headersDaniel Vetter
Only include what the header itself needs. The big fish here is intel-gpu-tools.h. More will follow. One ugly thing removed here is the duplicated GEN6_TD_CTL #define, one of which was broken. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib/intel_chipset: intel_ prefix for pch globalDaniel Vetter
Just a bit better namespacing. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-07lib: Use INSTDONE_I965 and INSTDONE_1 for gen6Damien Lespiau
The GEN6_INSTDONE_1 and GEN6_INSTDONE_2 registers are just the old INSTDONE_I965 and INSTDONE_1 registers but renamed. Let's use the old names (this is what the kernel does). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-07intel_reg: Renamed INST_DONE to INSTDONEDamien Lespiau
That's how the registers are named in the kernel defines. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-12-06lib: rename some power well bit namesPaulo Zanoni
I did the same change in the Kernel a few months ago. This should help not getting confused about which bit does what. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-11-20tools/reg_dumper: Add FW_BLC regsDaniel Vetter
Debugging watermark issues on gen2/3 without them is hard ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-10-21intel_reg_dumper: fix "enable" at hsw_debug_lp_wmPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-09-03intel_reg_dumper: Silence GCC for uninitialized clockBen Widawsky
GCC 4.8.1 seems to think clock may be uninitialized. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-07-09tools/intel_reg_dumper: fix up END registerDaniel Vetter
I'm full of fail ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-09tools/intel_reg_dumper: add gen6+ fencesDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-03intel_reg_dumper: enable the power wellPaulo Zanoni
The intel_reg_dumper tool reads a lot of display registers. If we don't turn on the power well, dmesg will get flooded with tons of messages about unclaimed registers. So here we enable the "Debug" power well register and then restore its state later. It's impossible to guarantee that other things won't mess with the debug register between our put and get calls, but at least we're trying our best to keep things working fine, and it's the debug register anyway. As far as I know, nothing else uses the Debug register for anything, so we should be safe for now. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-07-03intel_reg_dumper: add hsw_debug_lp_wmPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-05-08reg_dumper: Shut a warning downDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-04-09intel_reg_dumper: improve the dumping of backlight registersPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-03-22intel_reg_dumper: debug SDEISR on HaswellPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-03-22intel_reg_dumper: dump HSW watermark registersPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-03-22intel_reg_dumper: decode some useful Haswell registersPaulo Zanoni
I've checked the value of these registers many many many times during development. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-03-22intel_reg_dumper: make Haswell dump usefulPaulo Zanoni
It was previously printing ironlake_debug_regs and haswell_debug_regs. Since ironlake_debug_regs contains a lot of registers that don't exist on Haswell, running intel_reg_dumper on Haswell caused "unclaimed register" messages. Now I've copied the existing registers from ironlake_debug_regs to haswell_debug_regs, so we won't print the registers that don't exist anymore. Also removed DP_TP_STATUS_A since it doesn't exist. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-03-22intel_reg_dumper: recognize LPTPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2012-12-01tools/intel_reg_dumper: add some cpt/ppt debug regsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Add more information when dumping single registersDamien Lespiau
Now that we can dump registers giving a partial name, adding more information about the dumped registers seems useful. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Allow partial register names on the command lineDamien Lespiau
Let people give just a part of the register name. Handy when not remembering the exact name or if the register is defined with a different name than the one in the spec being looked at. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Also decode registers given by addressDamien Lespiau
One can now give an address instead of a register name to decode a single register. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-09-04intel_reg_dumper: Add a single register decode modeDamien Lespiau
From time to time, one would like to decode a register value that have been captured at a certain point in time (and say printed out with a printk). intel_reg_dumper has all the knowledge to do that and this patch adds a way to ask it to decode a value. Example usage: $ ./tools/intel_reg_dumper PCH_PP_CONTROL 0xabcd0002 PCH_PP_CONTROL: 0xabcd0002 (blacklight disabled, power... v2: friendlier invocation (Chris Wilson) v3: remove unecessary casts and use strcasecmp (Jani Nikula) Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-30clang: Fix static analysis warnings from clangBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-08-25s/NO_PID/NOP_IDDaniel Vetter
Alan typo'ed it, I've failed to notice :(
2012-08-24Rename NOPID to NO_PID to avoid conflict with Solaris NOPIDAlan Coopersmith
Solaris <sys/types.h> already has #define NOPID (pid_t)(-1) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-08-08tools/reg_dumper: really dump pipe C regsDaniel Vetter
Not just a copy of pipe B. Meh. Also kill a few redudant #define for pipe B - they match pipe A.
2012-08-07tools/reg_dumper: dump pipe C regsDaniel Vetter
Also reorder the pipe B regs a bit to be consisten with pipe A.
2012-06-21intel_reg_dumper: use intel_register_access_init/finiEugeni Dodonov
We need to hold forcewake lock in order to be able to read GT registers. Otherwise, when the GPU is in RC6 mode, we'll read all zeros. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-06-13intel_reg_dumper: dump more PM registersEugeni Dodonov
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-06-07intel_reg_dumper: dump pre-pch-split blc regsDaniel Vetter
2012-05-08tools: add Haswell registers into intel_reg_dumperEugeni Dodonov
For now, only print their content for diffing, but also add the necessary bits that can be used for more verbose output in the fugure. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-22intel_reg_dumper: Add dumping of GPU turbo regs.Eric Anholt
I was interested in finding why my IVB system is not getting GPU turbo after suspend/resume. The piece that looks weird to me is that INTERRUPT_THRESHOLD is sitting at 0, whereas pre-suspend it's 0x12000000.
2012-02-22reg_dumper: Refactor duplicated reg-dumping code.Eric Anholt
2012-02-16tests/intel_reg_dumper: s/pipe/disp_pipe/ to shut off the compilerDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: change and fix behavior when using dump filesPaulo Zanoni
Before this patch, handling dump files was wrong: - when HAS_PCH_SPLIT was specified, intel_reg_dumper segfaulted inside intel_check_pch() - the "devid" variable was used but not set - there was no way to specify the device id of the machine used to generate the dump file This patch fixes this behavior with the following changes: - the HAS_PCH_SPLIT variable is gone - there is now a '-d' argument that can be used to specify the device id used to interpret the results - when a dump file is used but the '-d' argument is not provided, an Ironlake machine is assumed Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: add interlaced information to TRANSCONFPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-16reg_dumper: add interlaced and rotation information to PIPECONFPaulo Zanoni
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-27intel_reg_dumper: add TRANS_VSYNCSHIFTDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-09tools/intel_reg_dumper: fixup new warningsDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-03tools/intel_reg_dumper: retrieve rc6 residency valuesEugeni Dodonov
This allows to check if rc6 works, and how long have we been in each state. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-01-03tools/intel_reg_dumper: Add support for debug registerEugeni Dodonov
Right now, we only check for hardware DRRS support. But much more can be done with it. Some day. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-10-28intel_reg_dumper: handle 3 pipe configs when dumping HDMI configJesse Barnes
Could be on pipe A, B, or C. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>