1873 Commits

Author SHA1 Message Date
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
Paulo Zanoni
e450cf6d8a Add missing files to .gitignore
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:14 +02:00
Paulo Zanoni
19fef544eb testdisplay: fix compiler warnings
testdisplay.c:117:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:125:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:145:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:1060:16: warning: comparison between signed and unsigned
integer expressions

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:04 +02:00
Daniel Vetter
733a1d9f34 tests/gem_mmap_gtt: also test gtt pwrite paths
This needs a properly pre-faulted dst bo.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 18:47:21 +02:00
Daniel Vetter
ba2255a7e4 tests: build all tests by default
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 14:59:23 +02:00
Daniel Vetter
d6ac159ba1 tests: separate testcases in gem_bad_length
Creating a zero-length bo should fail, so check that. Still run
the minimal batchbuffer, but without the zero-length reloc.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 14:59:23 +02:00
Daniel Vetter
2c380c2eac tests: disable gem_bad_blit
Hangs gen3 and simply writes garbage into the unmappable part of
gtt on gen4+, which might cause issues later on.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 11:06:03 +02:00
Daniel Vetter
bbe635f0dc tests/gem_bad_length: dont throw garbage at the gpu
It doesn't like it. Really.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 21:05:10 +02:00
Ben Widawsky
a5abe17746 intel: we don't do distcheck for the debugger 2011-09-13 08:55:01 -07:00
Daniel Vetter
f91e2c2b7e intel_gpu_dump: really kill it
This is getting a bit hilarious ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 17:20:12 +02:00
Daniel Vetter
c7a98ae251 intel_gpu_dump: also kill manpage
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 12:05:58 +02:00
Daniel Vetter
8d9792ce23 tools: remove intel_gpu_dump
Superseded by the kernel's i915_error_state dumping facility.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 11:43:06 +02:00
Daniel Vetter
e855dc2223 tools: beef up intel_dump_decode
- now also handles ascii dumps like i915_ringbuffer_data
- getoptified
- totally lazy binary detector

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 11:41:42 +02:00
Daniel Vetter
19d69955d2 tests: exit(77) to properly mark tests as SKIP
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 11:05:13 +02:00
Daniel Vetter
21ec8c78b3 tests: mark gen3-only tests as such
... instead of hanging the gpu.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12 20:56:13 +02:00
Daniel Vetter
b8245e18fe tests: add basic test for missed irqs
Didn't catch any known bug, but can't hurt.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12 20:45:49 +02:00
Daniel Vetter
fbf8950f6e tests: check pipe_control coherency
v2: proper support for gen6+

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12 20:40:10 +02:00
Daniel Vetter
bf9f149a6d tools: add intel_gen
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12 20:39:45 +02:00
Daniel Vetter
61b9806f4e tests: basic ring<->cpu and ring<->ring tests
Using a dummy reloc that doesn't matter to trick the kernel into
synchroizing the rings.

v2: properly apply MI_NOOP workaround to MI_FLUSH_DW and
switch to MI_COND_BATCH_BUFFER_END as a dummy command on the
render ring to avoid PIPE_CONTROL errata.

v3: somebody clever decided that in C, you cound from 1,
i.e. I915_EXEC_RENDER == 1. It works now ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12 09:39:16 +02:00
Daniel Vetter
32f49c7c0d tests: split up gem_storedw_loop into ring specific variations
Also start to shortly explain testcases with an easily-greppable
header like this:

/*
 * Testcase:
 *
 * [Possible further explanation.]
 *
 */

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-09 22:57:16 +02:00
Daniel Vetter
d1aae145a7 tests/gem_storedw: disable on pre-gen6
Doesn't work.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-09 22:57:16 +02:00