Daniel Vetter
f698984bae
tests/debugfs_pipe_crc: new subtest to check CRC frame numbers
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-20 16:11:57 +02:00
Damien Lespiau
09e9f0b216
rendercopy: Add a way to dump an .aub file with the rendercopy bos
...
v2 (by Ben): Remove libdrm dependency since intel-gpu-tools now requires
a higher version anyway. Remove associated #ifdef ENABLE_AUB_DUMP
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com >
2013-10-18 09:49:41 -07:00
Daniel Vetter
5038b7e4c2
lib: fix the assert in igt_stop_helper
...
So much for developing different patches on different machines and
then not retesting after rebasing. Reported by Ben on irc.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-18 17:56:02 +02:00
Damien Lespiau
768e32a3ab
lib: Don't wait for a vblank when enabling the CRCs
...
This was a previous attempt to solve the first CRC being bogus. We know
wait for it and discard it at the end of the function.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-18 14:30:53 +01:00
Damien Lespiau
5e3047ce52
tests/debugfs_pipe_crc: Test the read CRCs are not null
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-18 12:27:21 +01:00
Daniel Vetter
43f5384c08
tests/debugfs_pipe_crc: test all connectors
...
Diff looks a bit ugly, but it's just due to the added indentation.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 14:18:35 +02:00
Daniel Vetter
070904bf59
tests/debugfs_pipe_crc: test all pipes
...
And skip them if there's no suitable connector.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 14:10:43 +02:00
Daniel Vetter
e6ad75c1c4
tests/debugfs_pipe_crc: fix fb leak
...
Also remove the unused connector_t->mode.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 14:09:52 +02:00
Daniel Vetter
173a4cf1da
tests/debugfs_pipe_crc: fall back to PIPE source
...
With PLANE1 and PIPE CRC sources the test will work on all currently
shipping (and planed fwiw) platforms.
Also add all the other new sources for non-ivb/hsw chips.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 13:35:51 +02:00
Daniel Vetter
548323c87d
lib/drmtest: Check that helper processes have died correctly
...
If the test gets stopped sometimes a helper process falls over.
We need to report this. Since we currently don't track helper
process to precisely we can't shut up the 2nd test failure messge.
This shouldn't happen anyway.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 13:35:51 +02:00
Daniel Vetter
1cefd198da
tests/ZZ_missed_irq: Fixup SOURCE_PATH handling
...
Copy the trick from ZZ_hangman of just cd'ing into the old working
directory in a subshell.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70561
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-17 10:49:45 +02:00
Ben Widawsky
a12d4a7135
gem_ctx_bad_exec: skip vebox when appropriate
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-16 22:01:34 -07:00
Jani Nikula
befabe241a
README: list some of the dependencies
...
Signed-off-by: Jani Nikula <jani.nikula@intel.com >
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com >
2013-10-16 19:10:48 -07:00
Daniel Vetter
0412f32670
tests/debugfs_pipe_crc: correctly skip on unsupported platforms
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-16 14:12:49 +02:00
Damien Lespiau
4ba97ddf96
debugfs_pipe_crc: Let's check CRCs!
...
Let's add a new test that sets a mode, wait for a few vblanks (3) and
then make sure we read 3 identical CRCs.
Some subtests check for various parsing errors.
In the process, improve the debugfs helpers to deal with CRCs.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:40:07 +01:00
Damien Lespiau
f673775fe8
lib: Add igt_wait_for_vblank() helper
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:32:09 +01:00
Damien Lespiau
d4e7ddf15d
lib: Make igt_debugfs_open() take the mode as argument
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:32:09 +01:00
Damien Lespiau
952d4b0a9c
lib: Add a igt_display.h with a few enums and defines from the kernel
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:32:09 +01:00
Damien Lespiau
252dca1c7b
lib: Add kmstest_paint_color()
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:32:09 +01:00
Damien Lespiau
5a97ea91e1
lib: Add a igt_assert_cmpint()
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:02:08 +01:00
Damien Lespiau
ffa2107abc
lib: Add igt_debugfs_fopen()
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:02:08 +01:00
Damien Lespiau
51b63e334c
lib: Add a small helper to open debugfs files
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2013-10-15 19:02:08 +01:00
Matt Turner
8fed3837c7
Depend on libdrm_intel >= 2.4.47.
...
Reviewed-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-14 11:33:02 -07:00
Matt Turner
cd460f1a2c
configure: Don't bail if libdrm_nouveau isn't available.
...
We were seriously *requiring* libdrm_nouveau unless explicitly disabled?
Acked-by: Ben Widawsky <ben@bwidawsk.net >
Reviewed-by: Chad Versace <chad.versace@linux.intel.com >
2013-10-14 11:33:02 -07:00
Daniel Vetter
d3d371fdf6
tests/pc8: Readd verbose error message
...
I deemed them a bit redundant (assuming that developers are the only
ones that look at them anyway). But Paulo requested that I readd them
for the education of QA.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-14 19:10:56 +02:00
Daniel Vetter
a5d40a9bf2
tests/kms_flip: fix igt_assert
...
I've blown the conversion in
commit 37e5b318c5
Author: Daniel Vetter <daniel.vetter@ffwll.ch >
Date: Fri Oct 4 18:42:26 2013 +0200
tests/kms_flip: use igt_assert more
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70332
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-11 20:55:27 +02:00
Daniel Vetter
98a2b5b01f
tests/kms_flip: Skip if the kernel doesn't let y-tiled bo slip through
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-11 20:55:27 +02:00
Daniel Vetter
9f3794f5fd
tests/kms_flip: exit handler needs a fixture
...
Since it can fail.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70332
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-11 20:55:27 +02:00
Thomas Wood
ce5becbb61
testdisplay: Allow getopt to print error messages
...
By not assigning opterr, getopt will print its own error message that
includes information about whether an option is unknown or just requires
an additional argument.
Signed-off-by: Thomas Wood <thomas.wood@intel.com >
2013-10-11 13:16:07 +01:00
Daniel Vetter
ffdece38e2
tests/gem_suspend: test debugfs/sysfs reads while s/r
...
Just a very quick hack cobbled together with /bin/sh and exec. We
can't use system since that does stupid things with singals ... Still
we need to whack the child process pretty hard to get rid of it.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-10 14:20:43 +02:00
Daniel Vetter
8a9b275b96
tests/module_reload: fail if the module didn't unload
...
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70336
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-10 11:22:09 +02:00
Ben Widawsky
f014878722
gem_pin: Use iterator for blit batch setup
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-09 12:52:09 -07:00
Ben Widawsky
a7934e26ae
gem_exec_blt: Use iterator for blit batch setup
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-09 12:52:09 -07:00
Ben Widawsky
637162d0f7
gem_evict_*: Use iterator for blit batch
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-09 12:52:09 -07:00
Ben Widawsky
aa6fbd18d4
gem_linear_blits: Use iterator for blit batch setup
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-09 12:52:09 -07:00
Ben Widawsky
4de3b1765e
gem_exec_faulting_reloc: use iterator for batchbuffer
...
This will help keep the code clean for new platforms which might have
differently sized relocations.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-09 12:51:21 -07:00
Daniel Vetter
6f8c30d8ed
tests: add kms_addfb
...
Just a bunch of testcase to check that all the addfb sanity checks
work as they should.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-09 21:20:40 +02:00
Daniel Vetter
590f610140
lib/drmtest: extract rawer __gem_set_tiling
...
For tests that expect failures. Also apply the existing gem_set_tiling
helper a bit wider.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-09 20:50:50 +02:00
Ben Widawsky
40599b0779
pwrite_pread: Get devid only once
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-08 20:47:28 -07:00
Ben Widawsky
a2925b0989
pwrite_pread: Extract batch building
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-08 20:47:26 -07:00
Ben Widawsky
41ae28e498
pwrite_pread: use execbuf.batch_len for size
...
This will make an upcoming change easier.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-08 20:33:41 -07:00
Ben Widawsky
96f665cabb
gem_tiled_blits: Squash bo leak on simulation
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-08 20:32:12 -07:00
Ben Widawsky
f75dec0b41
gem_tiled_blits: Squash memory leak on simulation
...
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-08 18:36:32 -07:00
Daniel Vetter
304c458d54
tests/kms_flip: Skip if no clone configuration could be found
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-07 22:55:14 +02:00
Ben Widawsky
bc888c2b42
configure.ac: require dri2proto for overlay
...
With the introduction of
commit f9a50de3dc
Author: Chris Wilson <chris@chris-wilson.co.uk >
Date: Sat Aug 17 11:12:07 2013 +0100
Introduce intel-gpu-overlay
dri2proto became a dependency (and there is no way to disable overlay
explicitly. The actual version chosen was arbitrarily stolen from mesa.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net >
2013-10-05 16:21:11 -07:00
Daniel Vetter
ae599546fa
tests/pc8: Fail harder
...
If the test enviroment isn't properly set up we should fail the
testcase, since otherwise there's no way to make sure a feature
actually works.
To cut down on bug triaging time extract the basic test (which was
previously used to skip all subtests) into a "basic" subtest.
Also fail the test hard if the msr interface isn't available. And
switch all other check in setup_enviroment to igt_require.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69838
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-04 19:59:03 +02:00
Daniel Vetter
3dc91f3242
tests/pc8+: Only skip i2c subtest if i2c /dev interface is unavailable
...
Through the magic of igt_skip we only need to fail this subtest, not
the entire thing.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-04 19:58:11 +02:00
Daniel Vetter
37e5b318c5
tests/kms_flip: use igt_assert more
...
I've left the time delta checks as-is since those are tricky math and
my mind is feeble.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-04 18:42:26 +02:00
Daniel Vetter
54b5f7251a
tests/kms_flip: check flip count in both directions
...
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-04 18:12:39 +02:00
Daniel Vetter
47d0a6fa69
NEWS: Mention gen7 perf counters release
...
This is too great to be omitted!
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch >
2013-10-04 11:10:48 +02:00