3893 Commits

Author SHA1 Message Date
Jesse Barnes
9c29be40bc testdisplay: find planes for each pipe
Fixes a bug where we were masking against the wrong value.
2011-11-03 17:38:55 -07:00
Jesse Barnes
3afb7b22d6 testdisplay: update to new addfb2 definition 2011-11-03 17:38:55 -07:00
Daniel Vetter
6f7e6c9100 cargo-cult the build system into shape
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 17:20:01 +01:00
Daniel Vetter
593cb1874a always require libdrm
... and also add the missing files to lib/Makefile.am

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 17:04:44 +01:00
Daniel Vetter
37c6400734 tests/gem_tiled_pread: fixup detiler for gen2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 12:10:35 +01:00
Daniel Vetter
6b4f5c7ad8 tests/gem_largeobject: accomodate for puny apertures
... like on my i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 11:52:53 +01:00
Ben Widawsky
7c8d41f4d9 i-g-t/debugger - make the debugger work with distcheck
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2011-10-31 17:34:16 -07:00
Ben Widawsky
15830ea54b i-g-t/debugger: Only allow the shader debugger if the user has specified a gen4asm
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2011-10-31 17:34:16 -07:00
Daniel Vetter
3291023151 tests: mark gem_bad_address as HANG
Kills my little i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 23:19:08 +01:00
Daniel Vetter
efd3a5d0b5 tests/debugfs_reader: fight bashism
debian's dash doesn't like this.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 17:40:37 +01:00
Daniel Vetter
cc85c4efb7 tests: actually add the drm client check script
Ooops.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 16:08:02 +01:00
Daniel Vetter
d4cc95b457 tests: check for other drm clients
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 16:07:02 +01:00
Daniel Vetter
899496ba41 tests/gem_bad_length: disable broken batchbuffer
Submitting random crap hangs the gpu. Suprise!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 23:20:12 +01:00
Daniel Vetter
20ff3839e4 tests: don't run kernel check from make check
Add a new target test for that.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 22:27:19 +01:00
Daniel Vetter
931aa17754 tools: script to gather bug report data
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 22:04:39 +01:00
Daniel Vetter
91b3c7f333 make distcheck fixes
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 21:24:12 +01:00
Daniel Vetter
f361664df0 tests: add test to read all debugfs files
Catches a bunch of forcewake warnings on snb+

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 20:54:18 +01:00
Daniel Vetter
5b8bbc950d testdisplay: compile fix for !DRM_PLANES
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 20:45:42 +01:00
Daniel Vetter
5ef806bb5d tests: add gem_unref_active_buffers
The crucial trick to reproduce the bug is that we need to have
a decent pile of active bos to retire. Because we unref the bo
after having it moved off the active list, our recursion depth
in fdo bug #42180 is limited by the number of active objects that
can retire at the same time.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42180
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28 17:40:23 +02:00
Jesse Barnes
1f4c37a6e9 testdisplay: allow overlay plane to be moved & scaled at runtime
For additional testing.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-28 18:06:23 +02:00
Jesse Barnes
2b484c16dd intel_reg_dumper: handle 3 pipe configs when dumping HDMI config
Could be on pipe A, B, or C.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-28 08:54:50 -07:00
Jesse Barnes
234b5c40b1 testdisplay: add stub disable_planes() function
To fix the compile with non-plane libdrms.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-27 17:47:58 -07:00
Daniel Vetter
28d1be3f9b tools/decode: decode XY_SCANLINES_BLT 2011-10-25 12:24:17 +02:00
Daniel Vetter
c2657e865f tools/decode: decode XY_SETUP_* cmds
And extract decode code for br00 and br01.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-25 12:15:27 +02:00
Jesse Barnes
24e60385fe testdisplay: add sprite scaling and location support
Allow testdisplay to locate the sprite on the screen and potentially
scale it using different crtc width/height vs the source width/height
(determined by the resolution on the target pipe).

Also fix exit, making sure we properly disable all the planes.

Signed-off-by: Jesse Barnes <jbarnes@virtuougseek.org>
2011-10-24 17:18:42 +02:00
Daniel Vetter
d510953ef3 tools/intel_error_decode: decode gen4+ fences
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-21 19:06:08 +02:00
Daniel Vetter
982d14e34b tools/decode: properly decode gen6+ PIPE_CONTROL flags
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-21 10:14:05 +02:00
Chris Wilson
e0b2645730 top: Avoid FPE by removing meaningless metric 2011-10-19 10:32:37 +01:00
Eric Anholt
d2c95d1183 intel_reg_checker: New tool to accumulate checks for HW workarounds.
The goal of this tool is to be usable as a test for whether something
(suspend/resume, GPU reset, bugs, whatever) may have lost various
required hardware setup specified in the docs.

Reviewed-By: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-10-18 11:12:39 -07:00
Daniel Vetter
5801e6b911 intel/decode: print out chipset gen
... instead of i965+ for almost everything that Intel is still selling.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-18 16:30:56 +02:00
Daniel Vetter
92b1f2c96e tools/decode: don't move around the display register section
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-18 15:54:31 +02:00
Daniel Vetter
6ed89f47ec tools/decode: don't forget to print the name of the last ring
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-18 15:49:41 +02:00
Eugeni Dodonov
e98f308994 Allow intel_dump_decode to read data from stdin.
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-10-17 17:50:39 -02:00
Daniel Vetter
f312f89f4a tools/intel_dump_decode: make devid parsing more useful
We use hex for these!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-17 19:41:42 +02:00
Daniel Vetter
73c2104070 tools/decode: retain the ring name
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-17 13:46:46 +02:00
Daniel Vetter
1c6511f7fb tests: add gem_hangcheck_forcewake
Provokes the forcewake warning when the hangcheck runs and no
one waits for the gpu (and hence holds the dev->struct_mutex).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-16 21:14:03 +02:00
Daniel Vetter
2e9e27ce6b tests/gem_fence_trash: some retuning
We actually want to test lru behaviour, so do a bit of work with
the fence before yielding to the next thread (we use twice as many
fences as there are, so yielding always is pretty bad, no matter how
clever our fence stealing).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-15 13:46:19 +02:00
Daniel Vetter
b75451838a tests/gem_*_blits: reduce buffer count to not trash swap
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-15 13:23:03 +02:00
Eugeni Dodonov
62c542fd4e Allow to output statistics to stdout.
This allows intel_gpu_top to run both in statistics-collecting mode
(collecting the per-ring statistics in gnuplot-friendly format) and
ncurses top-like mode at the same time.

It also allows to output the statistics directly to stdout, by using "-o
-", so the results can be parsed directly via a popen() parsing.

If you are using intel_gpu_top as previously (without any command-line
arguments), it should change nothing for you. If you were using its
logging facilities (e.g., the '-o file'), note that the logging will keep
running, but the detailed top-like interface will be on the screen at the
same time.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-10-14 16:01:52 -03:00
Adam Jackson
eaaddc794b bios_reader: Allow forcing the device ID with DEVICE=0xNNNN
As a pleasant side effect you can now feed it an opregion dump and it'll
decode without crashing.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-10-11 18:25:26 -04:00
Jesse Barnes
1708580217 intel_reg_dumper: use none instead of NULL if no port is assigned to TRANS_DP
Makes the output a little more readable.
2011-10-11 11:37:25 -07:00
Jesse Barnes
503cfa2707 Treat PPT like CPT as we do in the kernel
Set the pch type to CPT if we detect a PPT as well.
2011-10-10 11:24:42 -07:00
Daniel Vetter
af6a25c187 tests: disable storedw tests on !render
According to docs, this should work with ppgtt and just convert to
noops otherwise. In reality, it hangs the machine.

So just disable these for the moment.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-28 10:05:56 +02:00
Daniel Vetter
a2dfbbf3e7 tools/decode: add missing shift to MI_SEM_MBOX decoder
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-28 10:02:57 +02:00
Paulo Zanoni
17ceccedbf testdisplay: return 0 when successful
We use the "ret" variable to check function return values, and these
values are not necessarily 0 on the successful cases, so we need to
reset "ret" after we finish using it.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-16 22:21:52 +02:00
Paulo Zanoni
a167425b39 getstats: remove useless assertion
getstats.c:48:2: warning: comparison of unsigned expression >= 0 is
always true

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:39:44 +02:00
Paulo Zanoni
ca2800f1d4 drm_open_any: explain why we are abort()ing
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
[danvet: pimped error msg]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:39:25 +02:00
Paulo Zanoni
3ba12bbb2f testdisplay: remove wrong return statement
It seems that the kernel patches required by the TEST_PLANES feature are
still not upstream, so I didn't test this patch.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:29 +02:00
Paulo Zanoni
7ead7ba3e6 testdisplay: don't enter the main loop if dump_info or test_all_modes
If calls inside update_display fail, the function returns and we don't
quit the program if dump_info or test_all_modes. So we enter the main
loop and keep waiting for user input, even on cases where we are not
supposed to require user input. To fix this, we move the check to
outside the update_display function.  As a side effect, we also do
cleanup instead of just exit(0) and we return 1 in case update_display
failed.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:21 +02:00
Paulo Zanoni
9fe1148c4b testdisplay: test all modes if no option is provided
Previously, when called without any arguments, the application required
user input to finish.  However, testdisplay is ran by "make check", and
it is not a good idea to run a program that requires user input in "make
check". So we change the default behavior to something that doesn't
require user input. You can still access the previous behavior using the
"-m" argument.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:18 +02:00