433 Commits

Author SHA1 Message Date
Daniel Vetter
6a860b7507 gem_stress: ad-hoc tile tracing
Signed-off-by: root <daniel.vetter@ffwll.ch>
2011-03-29 22:49:05 +02:00
Daniel Vetter
130daf9cd0 gem_stress: optin to set num_buffers
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27 15:37:26 +02:00
Daniel Vetter
294c78f4ab gem_stress: variable gpu busy load
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27 15:25:12 +02:00
Daniel Vetter
22fe098bf5 gem_stress: getoptification
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27 14:26:43 +02:00
Daniel Vetter
874163d5c8 gem_stress: dump complete failed tile
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-27 14:02:49 +02:00
Daniel Vetter
ad515f817a Move gen5 blitter work-around to lib
Suggested by Chris Wilson to prevent utterly strange gpu hangs.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25 22:09:28 +01:00
Daniel Vetter
bfa6f5d94f gem_stress: limit gtt_size to 256
gem_stress maps all buffers, so more only results in trashing (which
should be handled with an option).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25 21:54:02 +01:00
Daniel Vetter
2aac22358f gem_stress: implement gen5 blitter work-around
ddx and mesa assume that this is issued after every blit command.
Breaking that invariant results in a dying gpu.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25 21:53:07 +01:00
Daniel Vetter
cfba9dd371 gem_stress: fix blitter_copy on gen4+
Utter fail at copy&pasting.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-25 20:42:57 +01:00
Forest Bond
d641f0fd42 intel_bios_dumper: handle rom_size == 0
Some versions of libpciaccess on Linux set rom_size to 0 for VGA
devices.  While this behavior may change, intel_bios_dumper should
handle this situation to be compatible with current versions of the
library.

This fixes segmentation faults on affected systems.

Signed-off-by: Forest Bond <forest.bond@rapidrollout.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-22 14:44:25 +00:00
Daniel Vetter
3f10ff85bd gem_stress: submit batch if there's only one fence left
... for a copy might use up to two fences!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-21 22:13:18 +01:00
Chris Wilson
652d9eb983 stress: Distinguish between busy_bo and scratch_bo creation sizes
The busy bo has a fixed size (1024x256, 32bpp) whereas the scratch bo
may need to vary their size to exercise different features of fence
allocation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-21 07:58:51 +00:00
Daniel Vetter
80aae9b424 gem_stress: pwrite/pread support
And a few other things:
- inline checking when copying tiles with the cpu, fails _much_ faster.
- bo size seems to have a tremendous effect, put on the TODO.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-20 21:12:32 +01:00
Daniel Vetter
08cf53703e Add gem stress test
Not where I want it to be, yet. And not as good as I've hoped in detecting
broken kernels.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-20 21:12:32 +01:00
Daniel Vetter
02014cee2a Decode map state on gen2
At least the important stuff.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-14 13:03:48 +01:00
Daniel Vetter
cf5db1161a Decode gen2/gen3 fences in the error_state
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-14 11:20:17 +01:00
Daniel Vetter
afe492549d Decode 3DSTATE_CLEAR_PARAMETERS
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-06 00:12:10 +01:00
Daniel Vetter
ad27fac946 Small cleanups for immediate state S5
And a tiny fix.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-06 00:12:10 +01:00
Chris Wilson
84c32bd85c test: Mark gem_bad_batch as a known hang
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-05 09:01:46 +00:00
Daniel Vetter
03c1e334b8 Fully decode sampler state
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-04 16:41:07 +01:00
Daniel Vetter
f14877f2de Fully decode map state
A few odd things were missing.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-04 15:58:00 +01:00
Daniel Vetter
673d5bcea0 Decode 3DSTATE_LOAD_INDIRECT
The remaining stuff + cleanups.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-04 14:31:04 +01:00
Daniel Vetter
75c403e923 Decode 3DSTATE_LOAD_INDIRECT S0-S4
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-04 12:50:48 +01:00
Daniel Vetter
1e8713fdaa Decode scissor state
Not absolutely paranoid, who cares.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-03 21:29:27 +01:00
Daniel Vetter
01ac8b9099 Decode 3DSTATE_DRAWING_RECTANGLE
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-03 21:23:22 +01:00
Daniel Vetter
05309ebfe4 Decode MS3 tex format
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-03 21:23:22 +01:00
Chris Wilson
1f35267948 decode: Fix pretty printing of 3DSTATE_URB allocation size
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-02 16:06:00 +00:00
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