Chris Wilson [Fri, 3 Dec 2010 00:41:43 +0000 (00:41 +0000)]
decode: Add some missing protection against short buffers for gen6 instr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 2 Dec 2010 23:05:16 +0000 (23:05 +0000)]
dump-decode: allow specification of devid, i.e. gen
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 1 Dec 2010 21:51:59 +0000 (21:51 +0000)]
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>
Chris Wilson [Mon, 29 Nov 2010 16:06:46 +0000 (16:06 +0000)]
decode: Improve parsing of i915 fixed-length indexed primitives
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 26 Oct 2010 09:59:18 +0000 (10:59 +0100)]
Prepare for split BLT ring on Sandybridge.
Depends on libdrm
057fab3382c02af54126ce395c43d4e6dce9439a
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31123
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Fri, 22 Oct 2010 10:33:08 +0000 (11:33 +0100)]
Decode PGTBL_ER for i965
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Fri, 1 Oct 2010 21:22:28 +0000 (22:22 +0100)]
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>
Zhenyu Wang [Wed, 29 Sep 2010 01:47:46 +0000 (09:47 +0800)]
decode: fix PS sample state change bit on sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Mon, 27 Sep 2010 05:34:52 +0000 (13:34 +0800)]
intel_decode: decode 3d commands for sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Mon, 27 Sep 2010 05:24:52 +0000 (13:24 +0800)]
Add all sandybridge device ids
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Jesse Barnes [Mon, 20 Sep 2010 21:37:07 +0000 (14:37 -0700)]
intel_reg_dumper: eDP port is on the CPU, not PCH
Made me think there was another register until I checked the offset.
Adam Jackson [Wed, 8 Sep 2010 18:39:12 +0000 (14:39 -0400)]
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>
Chris Wilson [Sun, 5 Sep 2010 11:05:52 +0000 (12:05 +0100)]
reg dumper: Dump ILK panel fitting control debug registers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Sun, 5 Sep 2010 09:53:12 +0000 (10:53 +0100)]
reg dumper: Fix ilk panel fitter filter shift
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 25 Aug 2010 10:56:59 +0000 (11:56 +0100)]
tests: Fix fallout from s/EBADF/ENOENT/ in 2.6.36
After
bf79cb914dbfe848add8bb76cbb8ff89110d29ff, drm uses ENOENT to
report unknown handles buffer objects, update the tests accordingly.
Fixes:
Bug 29794 - some intel_gpu_tools cases fail
https://bugs.freedesktop.org/show_bug.cgi?id=29794
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 25 Aug 2010 10:55:25 +0000 (11:55 +0100)]
decode: Handle errors during parsing.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 25 Aug 2010 10:54:54 +0000 (11:54 +0100)]
reg dumper: Add panel backlight detailed information
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Mon, 19 Jul 2010 15:27:32 +0000 (08:27 -0700)]
intel_gpu_top: Fix the "limit printing to terminal height" again.
Eric Anholt [Fri, 9 Jul 2010 20:26:57 +0000 (13:26 -0700)]
intel_decode: Fix decode for gen6's moved VERTEX_ELEMENTS valid bit.
Chris Wilson [Thu, 15 Jul 2010 18:31:21 +0000 (19:31 +0100)]
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>
Chris Wilson [Thu, 15 Jul 2010 18:18:39 +0000 (19:18 +0100)]
error: Decode i915 PGTBL errors
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Thu, 8 Jul 2010 19:13:08 +0000 (12:13 -0700)]
intel_decode: Fix whitespace for importing to Mesa.
Jesse Barnes [Wed, 30 Jun 2010 09:02:49 +0000 (02:02 -0700)]
intel_reg_dumper: add some 945 MI reg dumping
Adam Jackson [Wed, 30 Jun 2010 15:18:00 +0000 (11:18 -0400)]
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>
Adam Jackson [Wed, 5 May 2010 15:46:27 +0000 (11:46 -0400)]
fix reg_dumper on systems without intel gpus
Chris Wilson [Tue, 15 Jun 2010 12:05:48 +0000 (13:05 +0100)]
intel_reg_dump: Off-by-one in calculation of i965 fence pitch
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Zhenyu Wang [Thu, 3 Jun 2010 02:31:04 +0000 (10:31 +0800)]
bios_reader: Fix SSC frequency parse for Ironlake/Sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Wu Fengguang [Mon, 19 Apr 2010 05:13:06 +0000 (13:13 +0800)]
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>
Adam Jackson [Thu, 22 Apr 2010 19:37:49 +0000 (15:37 -0400)]
bios reader: Decode device type from child device table
Signed-off-by: Adam Jackson <ajax@redhat.com>
Chris Wilson [Fri, 16 Apr 2010 21:23:44 +0000 (22:23 +0100)]
decode; Parse 3DSTATE_BUFFER_INFO
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 15 Apr 2010 08:53:00 +0000 (09:53 +0100)]
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>
Chris Wilson [Thu, 15 Apr 2010 08:48:00 +0000 (09:48 +0100)]
decode: Use a valid S4 mask [VERTEX_XY] for 3DPRIM_CLEAR_RECT
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Zhenyu Wang [Thu, 15 Apr 2010 15:22:06 +0000 (23:22 +0800)]
update PCH HDMI debug info
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Wed, 14 Apr 2010 17:25:50 +0000 (01:25 +0800)]
reg dump update for SNB/CPT
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Thu, 15 Apr 2010 14:57:02 +0000 (22:57 +0800)]
Add PCH chipset type check for Cougarpoint
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Chris Wilson [Sun, 4 Apr 2010 23:26:35 +0000 (00:26 +0100)]
decode: There are 4 unpreserved registers on i915, not 3.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 14 Apr 2010 21:30:58 +0000 (22:30 +0100)]
decode: CLEAR_RECT uses a fixed VERTEX_XY format.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Wed, 14 Apr 2010 21:25:57 +0000 (22:25 +0100)]
decode: CLEAR_PARAMETERS has a fixed length bias of 5.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 8 Apr 2010 11:00:00 +0000 (12:00 +0100)]
gitignore: Add missing intel_reg_snapshot
Chris Wilson [Thu, 8 Apr 2010 10:56:57 +0000 (11:56 +0100)]
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>
Adam Jackson [Wed, 31 Mar 2010 21:25:23 +0000 (17:25 -0400)]
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>
Chris Wilson [Sun, 4 Apr 2010 23:26:35 +0000 (00:26 +0100)]
decode: There are 4 unpreserved registers on i915, not 3.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Wed, 24 Mar 2010 19:01:00 +0000 (12:01 -0700)]
Fix INSTDONE1 bits on g4x, and use those on Ironlake too.
Eric Anholt [Wed, 24 Mar 2010 18:40:07 +0000 (11:40 -0700)]
Add Ironlake INSTDONE bits.
Eric Anholt [Tue, 9 Mar 2010 06:51:40 +0000 (22:51 -0800)]
intel_reg_dumper: Fix the i915 fence reg decode to not be pure lies.
Chris Wilson [Sun, 21 Mar 2010 19:33:45 +0000 (19:33 +0000)]
decode: Parse i915 MAP_STATE texture sizes and tiling
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 4 Mar 2010 21:56:04 +0000 (21:56 +0000)]
intel_error_decode: Pretty print i830 PGTBL_ER
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Thu, 4 Mar 2010 09:14:56 +0000 (09:14 +0000)]
decode: Fix length mask for LOAD_REGISTER_IMM.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Thu, 25 Feb 2010 20:48:00 +0000 (12:48 -0800)]
intel_gpu_top: Print stats lines even when there's no done bit on the line.
Eric Anholt [Thu, 25 Feb 2010 20:18:11 +0000 (12:18 -0800)]
intel_gpu_top: Print the vertex/primitive statistics on gen4+.
This requires that the window be much wider. I'm not sure how we
really want to lay out this interface usably, but so far giant windows
are working well enough for me.
Chris Wilson [Thu, 25 Feb 2010 18:52:15 +0000 (18:52 +0000)]
man: Add manpage for intel_error_decode
A rudimentary manpage based on intel_gpu_dump for the simple tool
for the post-processing of i915_error_state, intel_error_decode.
Eric Anholt [Wed, 24 Feb 2010 01:04:29 +0000 (17:04 -0800)]
Fix a typo in intel_gtt(1).
Eric Anholt [Wed, 24 Feb 2010 01:00:54 +0000 (17:00 -0800)]
Add manpages for a bunch of recently-added tools.
Eric Anholt [Mon, 1 Feb 2010 18:47:19 +0000 (10:47 -0800)]
Add decode for more Sandybridge packets.
Eric Anholt [Fri, 15 Jan 2010 22:28:16 +0000 (14:28 -0800)]
Add support for Sandybridge INSTDONE regs.
Eric Anholt [Fri, 15 Jan 2010 22:28:02 +0000 (14:28 -0800)]
Add support for Sandybridge mobile chipset.
Eric Anholt [Fri, 15 Jan 2010 22:27:41 +0000 (14:27 -0800)]
intel_gpu_dump: More SNB packets.
Eric Anholt [Fri, 15 Jan 2010 22:26:43 +0000 (14:26 -0800)]
intel_gpu_dump: Use the spec's names for the INSTDONE regs printed out.
Eric Anholt [Thu, 17 Dec 2009 22:21:28 +0000 (14:21 -0800)]
Add Sandybridge decode for CMD_VIEWPORT_STATE_POINTERS
Eric Anholt [Tue, 15 Dec 2009 20:38:23 +0000 (12:38 -0800)]
Add Sandybridge STATE_BASE_ADDRESS decode.
Eric Anholt [Wed, 4 Nov 2009 00:15:25 +0000 (16:15 -0800)]
intel_gpu_dump: Add support for sandybridge DEPTH_BUFFER and BINDING_TABLEs.
Eric Anholt [Thu, 22 Oct 2009 22:52:02 +0000 (15:52 -0700)]
Add some initial definitions for Sandybridge.
Chris Wilson [Thu, 25 Feb 2010 11:05:16 +0000 (11:05 +0000)]
decode: Parse MI_BATCH_BUFFER for i8xx
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Fri, 19 Feb 2010 17:23:16 +0000 (12:23 -0500)]
Add intel_bios_dumper from the 2D driver. Last of the tools, finally!
Eric Anholt [Fri, 19 Feb 2010 17:12:04 +0000 (12:12 -0500)]
Move the intel_lid tool from the 2D driver to here.
Chris Wilson [Fri, 12 Feb 2010 13:28:40 +0000 (13:28 +0000)]
Add intel_error_decode.
A simple variant of intel_gpu_dump that explicitly handles parsing of
i915_error_state.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Mon, 1 Feb 2010 23:02:24 +0000 (15:02 -0800)]
intel_gtt: Add intel_gtt from the 2D driver.
We've used it several times in bringing up the AGP driver, so it seems
useful to have aronud.
Chris Wilson [Thu, 28 Jan 2010 22:52:50 +0000 (22:52 +0000)]
intel_gpu_dump: Parse ringbuffer info from i915_error_state
Distinguish an inline ringbuffer [-- ringbuffer] dump, from batch
buffers [-- gtt_offset] and separate it in the decoded output.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Zhenyu Wang [Thu, 21 Jan 2010 01:39:29 +0000 (09:39 +0800)]
Remove extra aclocal flag after replace dolt and shave
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhao Yakui [Tue, 5 Jan 2010 14:13:43 +0000 (14:13 +0000)]
reg_dump: Dump display port register on Ironlake
Dump the display port register on Ironlake.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Zhenyu Wang [Tue, 12 Jan 2010 06:04:43 +0000 (14:04 +0800)]
Pull bios_reader program from Xorg driver
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Wed, 6 Jan 2010 05:43:54 +0000 (13:43 +0800)]
gitignore intel_audio_dump and intel_reg_read
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Zhenyu Wang [Wed, 6 Jan 2010 05:39:05 +0000 (13:39 +0800)]
Add 'intel_reg_read' tool
This is a handy tool to just check state of one register, which might
not bother to be included in intel_reg_dumper tool. And also take in Ben's
original full range register dump with '-f' option.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Chris Wilson [Tue, 5 Jan 2010 12:33:17 +0000 (12:33 +0000)]
gpu_dump: Parse INSTDONE if seen inside a file.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 5 Jan 2010 12:32:32 +0000 (12:32 +0000)]
reg: Include INSTPM in dump.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Chris Wilson [Tue, 5 Jan 2010 12:31:12 +0000 (12:31 +0000)]
decode/i965: Show byte lengths for buffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Shuang He [Mon, 14 Dec 2009 06:10:02 +0000 (14:10 +0800)]
intel_gpu_top: Fix broken clock reporting.
Signed-off-by: Eric Anholt <eric@anholt.net>
Eric Anholt [Mon, 2 Nov 2009 19:20:23 +0000 (11:20 -0800)]
Replace dolt and shave with using current autotools.
Kenneth Graunke [Wed, 9 Dec 2009 06:38:18 +0000 (22:38 -0800)]
Limit printing to terminal height in intel_gpu_top.
When using intel_gpu_top in a small terminal, the most important
information (ring idle/busy units) scrolls off the top of the screen.
This patch limits the number of lines printed to the terminal height
so that the most idle units (at the bottom) are truncated instead.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Chris Wilson [Mon, 30 Nov 2009 15:20:29 +0000 (15:20 +0000)]
decode: Split decoder and reuse outside of intel_gpu_dump
Introduce a second decoder that simpler operates on a file so that it
can be run on dumped batchbuffers independent of the gpu.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Wu Fengguang [Fri, 6 Nov 2009 03:06:22 +0000 (11:06 +0800)]
Add: tools/intel_audio_dump
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Chris Wilson [Thu, 8 Oct 2009 05:48:02 +0000 (06:48 +0100)]
Add: tools/intel_gpu_time
A simple variant on time crossed with intel_gpu_top to estimate the
amount of GPU activity during a program's execution time.
The resource usage (sys+user, i.e. CPU %) is for the child, but the
GPU measure is global. Hmm.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Eric Anholt [Wed, 7 Oct 2009 00:25:10 +0000 (17:25 -0700)]
Add intel_gpu_dump from the 2D driver.
Eric Anholt [Mon, 21 Sep 2009 22:00:56 +0000 (15:00 -0700)]
Bump to 1.0.2 for release.
Carl Worth [Thu, 17 Sep 2009 22:05:24 +0000 (15:05 -0700)]
Print unmatched opcode value for all 3D UNKNOWN messages
This just simplifies one step for fixing up an incompletely-parsed
dump.
Xiang, Haihao [Thu, 3 Sep 2009 01:50:00 +0000 (09:50 +0800)]
Add support for new chips
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 3 Sep 2009 01:35:50 +0000 (09:35 +0800)]
CS FENCE in URB_FENCE is 11-bits wide
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Xiang, Haihao [Thu, 3 Sep 2009 01:33:36 +0000 (09:33 +0800)]
Fix the length of CONSTANT_BUFFER
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Eric Anholt [Mon, 20 Jul 2009 18:46:11 +0000 (11:46 -0700)]
intel_gpu_dump: Don't pretend we understand vertex formats on 8xx.
Eric Anholt [Mon, 20 Jul 2009 18:44:56 +0000 (11:44 -0700)]
intel_gpu_dump: Parse LOAD_STATE_IMMEDIATE_2 for 830.
Eric Anholt [Mon, 20 Jul 2009 16:14:43 +0000 (09:14 -0700)]
intel_gpu_dump: Add IPEIR and PGTBL_ER to output.
Eric Anholt [Mon, 20 Jul 2009 16:07:16 +0000 (09:07 -0700)]
Add INSTDONE bits for 830-865.
Eric Anholt [Thu, 16 Jul 2009 21:15:47 +0000 (14:15 -0700)]
intel_gpu_dump: Fix decode for LOAD_STATE_IMMEDIATE_1 with S8 set.
Eric Anholt [Mon, 13 Jul 2009 17:03:17 +0000 (10:03 -0700)]
Add a manpage for intel_reg_write
Chris Wilson [Thu, 3 Sep 2009 09:58:59 +0000 (10:58 +0100)]
dump: Minor typo
Chris Wilson [Tue, 1 Sep 2009 09:09:55 +0000 (10:09 +0100)]
Add gem_fence_thrash test
This is a test case that overcommits fence registers between threads, which
are copying from one fenced bo to another. In earlier versions of the driver
this would cause excessive spinning as the first inactive (i.e. not in use
by the GPU) would be used to service the next page. After all the fence
registers had been allocated, in effect only the very first fence would then
be used for all subsequent faults.
Ben Gamari [Wed, 1 Jul 2009 20:52:20 +0000 (16:52 -0400)]
Add CS_USB_STATE decoding
Ben Gamari [Wed, 1 Jul 2009 20:52:19 +0000 (16:52 -0400)]
Add CONSTANT_BUFFER decoding
Ben Gamari [Wed, 1 Jul 2009 20:52:18 +0000 (16:52 -0400)]
Fix gs_fence output in URB_FENCE output
Ben Gamari [Wed, 1 Jul 2009 20:52:17 +0000 (16:52 -0400)]
add realloc bits to URB_FENCE decoding