3893 Commits

Author SHA1 Message Date
Eric Anholt
a5846bff27 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.
2010-02-01 15:02:57 -08:00
Chris Wilson
65f1f881b7 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>
2010-01-28 22:57:37 +00:00
Zhenyu Wang
6c1125d958 Remove extra aclocal flag after replace dolt and shave
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-01-21 09:39:29 +08:00
Zhao Yakui
7daa481bb7 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>
2010-01-15 14:38:34 -08:00
Zhenyu Wang
97ffee66ae Pull bios_reader program from Xorg driver
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-01-12 14:04:43 +08:00
Zhenyu Wang
087d74b335 gitignore intel_audio_dump and intel_reg_read
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
2010-01-06 13:50:14 +08:00
Zhenyu Wang
4cc8b0543a 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>
2010-01-06 13:50:08 +08:00
Chris Wilson
5afb8ff68b gpu_dump: Parse INSTDONE if seen inside a file.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-01-05 12:35:02 +00:00
Chris Wilson
e30f06fbb9 reg: Include INSTPM in dump.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-01-05 12:35:02 +00:00
Chris Wilson
55950195da decode/i965: Show byte lengths for buffers.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-01-05 12:35:02 +00:00
Shuang He
7f63b95c06 intel_gpu_top: Fix broken clock reporting.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-12-15 12:53:39 -08:00
Eric Anholt
4e6400c4bb Replace dolt and shave with using current autotools. 2009-12-15 12:39:04 -08:00
Kenneth Graunke
b4b8aafc61 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>
2009-12-10 14:02:25 -08:00
Chris Wilson
94a180c0c9 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>
2009-11-30 15:55:03 +00:00
Wu Fengguang
9e9c9f24f5 Add: tools/intel_audio_dump
Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
2009-11-06 14:01:57 +08:00
Chris Wilson
b4ddf71a4a 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>
2009-10-08 06:48:02 +01:00
Eric Anholt
40bff5071c Add intel_gpu_dump from the 2D driver. 2009-10-06 17:49:05 -07:00
Eric Anholt
d48fc144ca Bump to 1.0.2 for release. 2009-09-21 15:02:54 -07:00
Carl Worth
15ba3a5fc6 Print unmatched opcode value for all 3D UNKNOWN messages
This just simplifies one step for fixing up an incompletely-parsed
dump.
2009-09-17 15:28:19 -07:00
Xiang, Haihao
bbebf6b1c9 Add support for new chips
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2009-09-08 09:41:48 +08:00
Xiang, Haihao
b20efcf585 CS FENCE in URB_FENCE is 11-bits wide
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2009-09-08 09:31:46 +08:00
Xiang, Haihao
84a877511f Fix the length of CONSTANT_BUFFER
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2009-09-08 09:31:38 +08:00
Eric Anholt
61237b98bb intel_gpu_dump: Don't pretend we understand vertex formats on 8xx. 2009-09-04 12:19:25 -07:00
Eric Anholt
b66d2feb69 intel_gpu_dump: Parse LOAD_STATE_IMMEDIATE_2 for 830. 2009-09-04 12:19:25 -07:00
Eric Anholt
7bc13bc00c intel_gpu_dump: Add IPEIR and PGTBL_ER to output. 2009-09-04 12:19:25 -07:00
Eric Anholt
56bdcd1d6b Add INSTDONE bits for 830-865. 2009-09-04 12:19:25 -07:00
Eric Anholt
1cbfe0ea6a intel_gpu_dump: Fix decode for LOAD_STATE_IMMEDIATE_1 with S8 set. 2009-09-04 12:19:25 -07:00
Eric Anholt
d9e28e63e5 Add a manpage for intel_reg_write 2009-09-04 12:19:25 -07:00
Chris Wilson
d83a417c01 dump: Minor typo 2009-09-03 10:58:59 +01:00
Chris Wilson
8f3f862b96 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.
2009-09-01 11:53:47 +01:00
Ben Gamari
4839ee9787 Add CS_USB_STATE decoding 2009-07-07 10:49:33 -07:00
Ben Gamari
147f07b5c2 Add CONSTANT_BUFFER decoding 2009-07-07 10:49:15 -07:00
Ben Gamari
357e43a4f1 Fix gs_fence output in URB_FENCE output 2009-07-07 10:48:52 -07:00
Ben Gamari
e302d0fe89 add realloc bits to URB_FENCE decoding 2009-07-07 10:48:16 -07:00
Carl Worth
3fda98b4db Fix error message for case of kernel prior to 2.6.30
The error message was falsely claiming that a debugfs directory
didn't exist, when it was supposed to report that the ringbuffer
file did not exist within that directory.
2009-07-07 10:46:17 -07:00
Eric Anholt
324428ca82 .gitignore: catch up to intel_reg_write addition 2009-06-30 18:05:57 -07:00
Eric Anholt
eb239afeb7 intel_gpu_dump: Add instdone register values and decoding. 2009-06-30 18:04:53 -07:00
Eric Anholt
3904b7c6a2 intel_gpu_top: Move instdone bit definitions to lib to share with _dump. 2009-06-30 18:04:50 -07:00
Eric Anholt
21b6f2600d intel_gpu_dump: Use the correct IPEHR on pre-965. 2009-06-23 19:35:19 -07:00
Eric Anholt
eafbad3707 intel_gpu_dump: Add details on URB_FENCE. 2009-06-23 18:43:59 -07:00
Eric Anholt
bf3b1a3da9 Oops, fix up printed hw offset since the HEAD pointer fixup 2009-06-23 18:16:42 -07:00
Eric Anholt
a18af8ed43 Add more 965 INSTDONE bits.
This shows off the units that are stuck busy in the ut2004 hang.
2009-06-23 17:18:52 -07:00
Eric Anholt
da2c7f35c7 Correctly flag the acthd when it points within a packet. 2009-06-23 16:36:32 -07:00
Eric Anholt
12ceecf971 Add the acthd to the GPU dump. 2009-06-23 16:36:32 -07:00
Ben Gamari
c25532cc61 Add register writing tool
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-23 16:36:32 -07:00
Jesse Barnes
bbafc3d0bf Four new tests for error handling
Add four new tests for error the error handling cases:
  - gem_bad_address - store to a bad address, should generate a protection or
    page table error
  - gem_bad_batch - try to execute a bad batch, should generate a protection,
    invalid instruction or page table error
  - gem_bad_blit - blit to an invalid location, should generated a protection
    or page table error
  - gem_hang - hang the GPU on an event that will never happen, test hang
    detection & recovery code
2009-06-18 18:10:23 -07:00
Eric Anholt
49c564ec2f Make the precentage bars fit in 80 columns.
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:52 -07:00
Robert Bragg
8c7be93544 A pedantic addition of a format string to a printf call
The printf used to clear the screen didn't have a format string, this
adds one to avoid a compiler warning.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:37 -07:00
Robert Bragg
700e45a522 Adds unicode bars for quickly visualizing the busy percentages
It can be a bit easier to digest the percentages with bar graphs than by
scanning continually changing numbers.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:30 -07:00
Robert Bragg
2f0c0aa8ae Increases the sample frequency from 100/sec to 10,000/sec
For a typical vsync locked application running at 60fps, sampling at just
under twice a frame doesn't seem to give very stable lists of relevent hardware
units because there are a number of units involved that may not be sampled one
second to the next.

This bumps the sample rate to 10,000 instead which is ~ 170 samples per
frame so we tend to hit all the units involved.

It also changes the report threshold to a sample count >= 1, so you don't
see as many units with a percentage of 0.

Signed-off-by: Eric Anholt <eric@anholt.net>
2009-06-09 11:31:24 -07:00