180 Commits

Author SHA1 Message Date
Chris Wilson
afaf5ef27c gpu-top: Correct computation of ring size
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-09 14:48:03 +00:00
Chris Wilson
98eb5a5e24 error: Parse ring name before gtt_offset
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-09 13:27:22 +00:00
Chris Wilson
d9ec63b1a0 intel_gpu_top: Include BLT ring
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-07 19:59:00 +00:00
Chris Wilson
5503ac9e19 intel_gpu_top: Wake the GT power well to read gen6 ring registers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-07 19:58:55 +00:00
Chris Wilson
4f20844247 error decode: print out class of chipset in the error report
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-23 19:44:14 +00:00
Jesse Barnes
322563027c tools/bios_reader: try to dump more child device data
Some of our device class defines were incorrect, and we were missing
several recent ones, so fix those up and dump more child device data if
we have it.
2010-12-21 12:06:00 -08:00
Eric Anholt
253acc34af intel_disable_clock_gating: New tool for turning off clock gating on ILK.
This is something I sometimes want to do in testing, to see if a
mystery bug (say, 29172) is due to broken clock gating.  Sadly, in
this case it isn't.  Note that it isn't supported on non-ILK chipsets
yet.
2010-12-16 16:48:29 -08:00
Eric Anholt
19b412b37c intel_gpu_top: Print stats regs on Ironlake as well. 2010-12-16 16:47:03 -08:00
Chris Wilson
292ae4538a error-decode: stdin is 0 not 1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-10 15:31:59 +00:00
Chris Wilson
94de0b46b5 decode: Add a couple of BLT MI.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-04 14:12:19 +00:00
Chris Wilson
1e4cf7dbbe gpu-dump: Include BLT and BSD ringbuffers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-04 11:42:17 +00:00
Chris Wilson
157207ada5 decode: Add some missing protection against short buffers for gen6 instr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-03 00:41:43 +00:00
Chris Wilson
3dafead3f2 dump-decode: allow specification of devid, i.e. gen
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-02 23:05:16 +00:00
Chris Wilson
a3a78632bd error-decode: Operate as a pipe and accept input from stdin
Useful for feeding in compressed files from bugzilla:

$ bzcat /tmp/i915_error_state.bz | intel_error_decode | less

Next step would be to use gzfopen or bzfopen to automagically handle
compressed files...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-01 21:51:59 +00:00
Chris Wilson
aa0a346deb decode: Improve parsing of i915 fixed-length indexed primitives
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-11-29 16:06:46 +00:00
Chris Wilson
8934395d9d Decode PGTBL_ER for i965
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-22 11:33:08 +01:00
Chris Wilson
8a4fc850a8 intel_gpu_top: Sample BSD rings as well as render
Show how busy the GPU is when decoding video as well as rendering.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-10-01 22:23:16 +01:00
Zhenyu Wang
4eef00a8fb decode: fix PS sample state change bit on sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-09-29 09:47:46 +08:00
Zhenyu Wang
dbc547dbb5 intel_decode: decode 3d commands for sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-09-27 13:35:49 +08:00
Jesse Barnes
7ab19ae6fe intel_reg_dumper: eDP port is on the CPU, not PCH
Made me think there was another register until I checked the offset.
2010-09-20 14:37:07 -07:00
Adam Jackson
4f12d8acba bios_reader: Fix to work on non-Intel machines
Actually, fix to work on _any_ machine where the ROM file doesn't match
the GPU.  Just extract the device ID from the ROM itself rather than
look at the running system.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-09-08 14:39:12 -04:00
Chris Wilson
c09fa38c01 reg dumper: Dump ILK panel fitting control debug registers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-09-05 12:05:52 +01:00
Chris Wilson
a462fa6e29 reg dumper: Fix ilk panel fitter filter shift
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-09-05 10:53:12 +01:00
Chris Wilson
14618620cc decode: Handle errors during parsing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-25 12:00:05 +01:00
Chris Wilson
db91f220da reg dumper: Add panel backlight detailed information
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-08-25 12:00:05 +01:00
Eric Anholt
74c8c8d612 intel_gpu_top: Fix the "limit printing to terminal height" again. 2010-07-19 08:28:10 -07:00
Eric Anholt
9e4ba53014 intel_decode: Fix decode for gen6's moved VERTEX_ELEMENTS valid bit. 2010-07-19 08:28:10 -07:00
Chris Wilson
aa4772c3c1 dump decode: Add a non-installed program for decoding binary batchbuffer dumps.
Rather than add yet another decoder into the drivers, I rather just emit
a binary blob and use the decoder being developed here.

As it is a pure debugging feature, lets not package it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-07-15 19:33:00 +01:00
Chris Wilson
2d1ad95423 error: Decode i915 PGTBL errors
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-07-15 19:33:00 +01:00
Eric Anholt
cf255e382d intel_decode: Fix whitespace for importing to Mesa. 2010-07-08 12:13:08 -07:00
Jesse Barnes
b1e839d026 intel_reg_dumper: add some 945 MI reg dumping 2010-06-30 02:02:49 -07:00
Adam Jackson
be6e1a53fc Use longer string padding in intel_reg_dumper on ironlake
DIGITAL_PORT_HOTPLUG_CNTRL is 26 chars.  Bump out to 30.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-06-30 11:18:00 -04:00
Adam Jackson
439adf7a0a fix reg_dumper on systems without intel gpus 2010-06-30 10:58:32 -04:00
Chris Wilson
040fbc6ea3 intel_reg_dump: Off-by-one in calculation of i965 fence pitch
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-06-15 13:05:48 +01:00
Zhenyu Wang
581205db44 bios_reader: Fix SSC frequency parse for Ironlake/Sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-06-03 10:31:04 +08:00
Wu Fengguang
020abdb7cc intel_audio_dump: add support for IbexPeak and CougarPoint
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2010-04-29 15:29:09 -07:00
Adam Jackson
a52cbcbf56 bios reader: Decode device type from child device table
Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-04-22 15:37:49 -04:00
Chris Wilson
a5b1e98edb decode; Parse 3DSTATE_BUFFER_INFO
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-16 22:24:02 +01:00
Chris Wilson
5b9678e822 decode: Also override S2 for 3DPRIM_CLEAR_RECT
3DPRIM_CLEAR_RECT implicitly uses only VERTEX_XY and no texture coords.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-15 09:53:00 +01:00
Chris Wilson
c8f5ac542c decode: Use a valid S4 mask [VERTEX_XY] for 3DPRIM_CLEAR_RECT
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-15 09:49:39 +01:00
Zhenyu Wang
50b8272d0b update PCH HDMI debug info
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-04-15 15:25:19 +08:00
Zhenyu Wang
eae80edbb3 reg dump update for SNB/CPT
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-04-15 15:25:07 +08:00
Chris Wilson
c3832aefbf decode: There are 4 unpreserved registers on i915, not 3.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-14 22:32:33 +01:00
Chris Wilson
4278dc6e64 decode: CLEAR_RECT uses a fixed VERTEX_XY format.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-14 22:30:58 +01:00
Chris Wilson
3d883c3d25 decode: CLEAR_PARAMETERS has a fixed length bias of 5.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-14 22:25:57 +01:00
Chris Wilson
95374225e8 Enable compilation on non-Intel, non-DRM systems.
A few of the tools can be performed post-mortem from a different system,
so it is useful to be able to compile those tools on those foreign
systems. Obviously, any program to interact with the PCI device or talk
to GEM will fail on a non-Intel system.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-08 12:17:31 +01:00
Adam Jackson
cd64e19329 intel_reg_dumper: Add support for reading register dumps from files
Also add intel_reg_snapshot for creating such snapshots, and relevant
documentation.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-04-05 11:41:24 -04:00
Chris Wilson
2187ec2112 decode: There are 4 unpreserved registers on i915, not 3.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-04-05 00:28:05 +01:00
Eric Anholt
b0ddd0688c Add Ironlake INSTDONE bits. 2010-03-24 12:01:38 -07:00
Eric Anholt
7c9d69de57 intel_reg_dumper: Fix the i915 fence reg decode to not be pure lies. 2010-03-24 12:01:38 -07:00