956 Commits

Author SHA1 Message Date
Chris Wilson
1c05f89ceb decode: fix gen6 PS binding table update bit
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-02 14:48:20 +00:00
Daniel Vetter
eb777071d7 Decode MS3 tex format
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01 00:01:34 +01:00
Daniel Vetter
8348e69561 Decode depth buffer format
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-28 22:51:47 +01:00
Ben Widawsky
14bed666f4 Add MI_SUSPEND_FLUSH instruction decode
Signed-off-by: Ben Widawsky <bwidawsk@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-24 00:35:36 +00:00
Chris Wilson
41570d9bf5 Remove confusing use of IS_9XX
... and test for what we mean instead.

Reported-by: Diego Celix <dcelix@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-14 15:57:40 +00:00
Hai Lan
dac602b7b3 correct a mistyping for testdisplay
For testing all mode, the sleep time should be sleep_between_modes

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-11 15:35:05 +00:00
Chris Wilson
28032382bc testdisplay: Remove deprecated GIO functions
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-11 11:22:53 +00:00
Chris Wilson
5534cb1c75 testdisplay: Clarify
Move the loop operations around for test_all_modes so that it is clearly
split up into the desired phases.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-11 11:22:53 +00:00
Hai Lan
62d516813a Add a test case into intel-gpu-tools for intel display driver validation.
We have not a unified tool to check Intel display driver and we plan to use
intel-gpu-tools/testdisplay to check Intel display driver even though some
function tests can be found in libdrm/test. 3 new features are added:test
all supported modes, force mode and dump mode info(dump mode info is based on
libdrm/tests/modetest).

[ickle: attack the whitespacing!]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-11 11:02:07 +00:00
Chris Wilson
d75f2632c1 intel_stepping: Include clocks in summary
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 11:20:20 +00:00
Chris Wilson
592b1a51ff tools/intel_bios_reader: use correct printf format for size_t
intel_bios_reader.c: In function ‘dump_backlight_info’:
intel_bios_reader.c:192:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 11:00:49 +00:00
Chris Wilson
73dd92f85b tools/intel_disable_clock_gating: Remove unused variable
intel_disable_clock_gating.c: In function ‘main’:
intel_disable_clock_gating.c:38:11: warning: unused variable ‘temp’ [-Wunused-variable]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 10:59:54 +00:00
Chris Wilson
56167d8bfd tools: Do not install intel_gpu_dump
It has been supersede by intel_error_decode for the user-facing role of
obtaining debug info after a crash.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 10:56:27 +00:00
Chris Wilson
c407041ebb tools/intel_gpu_dump: Replace asprintf with snprintf
The maximum filename is limited so we can simply use a large buffer
rather than fail to check the error return from asprintf.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 10:54:39 +00:00
Chris Wilson
2c9b293927 tests/intel_reg_dumper: Replace asprintf with snprintf
Stops the compiler warning about not checking the potential error return
from asprintf, which was a false positive anyway.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-10 10:50:48 +00:00
Chris Wilson
d4127e0e68 tests: Move potential machine killers away from distcheck
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-09 10:24:39 +00:00
Chris Wilson
a5bbd5ea71 tests/gem_exec_blt: Compile fix 2011-02-09 10:21:27 +00:00
Javier Jardón
68b64f1b39 build: Update autotools configuration
Replace deprecated macros and use the new libtool syntax
Also use silent-rules to make the build option less verbose.
2011-02-09 10:19:51 +00:00
Chris Wilson
293dd478d7 configure: Bump the libdrm dependency
Whoops, should have done this ages ago for I915_EXEC_BLT

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-08 12:04:17 +00:00
Chris Wilson
c91951de0e gem_linear_blits,gem_tiled_blits: Add optional count
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-06 10:18:53 +00:00
Chris Wilson
0995b56334 Fix basic blt test for SNB
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-06 10:14:41 +00:00
Chris Wilson
0e50b972de Fix typo excluding Ironlake from IS_INTEL
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-06 10:12:42 +00:00
Chris Wilson
74895a2344 gem_tiled_blits: Minor enhancements
Include a simple series of blits that exhaust the aperture but have the
maximum grace time between reuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-06 10:11:02 +00:00
Chris Wilson
91b1c62a9c gem_linear_blits: Minor enhancements
Include a simple series of blits that exhaust the aperture but have the
maximum grace time between reuse.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-06 10:10:52 +00:00
Chris Wilson
f343805d16 Simplify gem_linear_blits
By doing everything manually we can indeed exercise the full GTT.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-02 10:39:05 +00:00
Chris Wilson
9fd7e35c39 Simple test to ensure that working sets larger than memory, just work.
Based on gem_tiled_blit, but without the complication of the tiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-01 19:24:41 +00:00
Chris Wilson
68a95f0e38 error decode: Search for first i915_error_state
Handy for multi-GPU systems where the IGFX may not be first.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-01 13:37:56 +00:00
Chris Wilson
3c5c8ba71c Search for the first Intel dri device.
This is vital in a multi-GPU system so that we only test the Intel card
and not the discrete GPUs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-01 13:37:04 +00:00
Chris Wilson
c1e9795050 tests/gem_tiled_fence_blits: Ensure the bo count is odd
In order to avoid a self-copy, the number of bo must not be even.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-01 11:13:36 +00:00
Chris Wilson
371f87f2d8 Exercise the whole aperture with tiled blits
After full-gtt, gem_tiled_blits doesn't allocate enough to force
eviction. So query the total aperture and accommodate.

Also introduce a similar test that utilizes fences rather than
use the BLT to perform the tiling and detiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-02-01 10:56:46 +00:00
Chris Wilson
5fc09c82d4 Time blt vs pwrite
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-29 16:13:38 +00:00
Chris Wilson
07d59b308d Add a simple test to execute n nop batches
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-29 16:13:38 +00:00
Chris Wilson
ed385ea331 Add a GTT timing test
Using for basic benchmarking and diagnosing some mysterious slowdowns.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-29 16:13:38 +00:00
Chris Wilson
281285ec70 bios: Parse SDVO panel DTDs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-01-29 16:13:38 +00:00
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
Chris Wilson
f19a1942c2 Add a GTT timing test
Using for diagnosing some mysterious slowdowns. Should include a variant
for basic benchmarking...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-23 12:47:17 +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
Jesse Barnes
5406c633a0 tests: add display testing program
Just a simple program to light up all detected outputs at their native
mode and respond to hotplug events.
2010-12-21 09:39:07 -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