platform/upstream/intel-gpu-tools.git
10 years agogem_close_race: Tidy up call to execbuffer
Chris Wilson [Tue, 29 Oct 2013 08:38:30 +0000 (08:38 +0000)]
gem_close_race: Tidy up call to execbuffer

Pass the right pointer to the execlist would be a good start.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
10 years agotests/kms_cursor_crc: Use igt_exit
Daniel Vetter [Tue, 29 Oct 2013 06:47:33 +0000 (07:47 +0100)]
tests/kms_cursor_crc: Use igt_exit

Otherwise the exit codes are all bogus.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests: Convert the ctx test to use render nodes when possible
Damien Lespiau [Thu, 24 Oct 2013 14:27:12 +0000 (15:27 +0100)]
tests: Convert the ctx test to use render nodes when possible

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests/gem_render_copy: Use render nodes
Damien Lespiau [Thu, 24 Oct 2013 14:21:59 +0000 (15:21 +0100)]
tests/gem_render_copy: Use render nodes

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add a drm_open_any_render() that will try to use render nodes
Damien Lespiau [Thu, 24 Oct 2013 14:19:32 +0000 (15:19 +0100)]
lib: Add a drm_open_any_render() that will try to use render nodes

I was fedup with having to run my tests as root and not being able to
use my usual setup for tests that only exercise the GT part of the GPU.

Render nodes to the rescue!

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Close non intel fds in drm_get_card()
Damien Lespiau [Thu, 24 Oct 2013 14:04:26 +0000 (15:04 +0100)]
lib: Close non intel fds in drm_get_card()

When going through card%u devices, close the ones that we were able to
open but weren't intel devices.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Remove stale comment
Damien Lespiau [Thu, 24 Oct 2013 13:08:17 +0000 (14:08 +0100)]
lib: Remove stale comment

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests: Add gem_close_race
Chris Wilson [Mon, 28 Oct 2013 09:10:46 +0000 (09:10 +0000)]
tests: Add gem_close_race

The intention is to exercise #70784. Yet the first challenge is make the
test suite happy.

10 years agogem_render_linear_blits: Remove aub dump support
Damien Lespiau [Tue, 22 Oct 2013 14:03:48 +0000 (15:03 +0100)]
gem_render_linear_blits: Remove aub dump support

It's much easier to follow the new gem_render_copy test and acquire a
aub dump from it.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests/gem_render_copy: Add aub dump support
Damien Lespiau [Tue, 22 Oct 2013 13:57:57 +0000 (14:57 +0100)]
tests/gem_render_copy: Add aub dump support

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests/gem_render_copy: Only dump pngs when the -d option is given
Damien Lespiau [Tue, 22 Oct 2013 13:26:38 +0000 (14:26 +0100)]
tests/gem_render_copy: Only dump pngs when the -d option is given

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests/gem_render_copy: Add a simple render copy test
Damien Lespiau [Tue, 22 Oct 2013 13:20:10 +0000 (14:20 +0100)]
tests/gem_render_copy: Add a simple render copy test

The goal is here to both: demonstrate a simple usage of render copy with
the possibility to write pngs to visualize what it's doing and to
provide a test bed to port the render copy function to new
architectures.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add a function to dump a scratch buf into a png
Damien Lespiau [Tue, 22 Oct 2013 13:18:26 +0000 (14:18 +0100)]
lib: Add a function to dump a scratch buf into a png

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agobuild: include intel_l3_parity.h to its _SOURCES to fix make distcheck
Rodrigo Vivi [Tue, 22 Oct 2013 14:35:59 +0000 (12:35 -0200)]
build: include intel_l3_parity.h to its _SOURCES to fix make distcheck

and make sure intel_l3_parity.h will be included in tarball.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
10 years agobuild: Fix small typo that was breaking make distcheck
Rodrigo Vivi [Tue, 22 Oct 2013 13:28:56 +0000 (11:28 -0200)]
build: Fix small typo that was breaking make distcheck

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
10 years agokms_flip: Add test for -ENOENT
Ville Syrjälä [Wed, 16 Oct 2013 20:07:34 +0000 (23:07 +0300)]
kms_flip: Add test for -ENOENT

Make sure we get -ENOENT when we pass a non-existing fb_id to
the page flip and setcrtc ioctls.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
10 years agokms_cursor_crc: Add a cursor test using CRCs
Ville Syrjälä [Fri, 18 Oct 2013 14:44:42 +0000 (17:44 +0300)]
kms_cursor_crc: Add a cursor test using CRCs

Use the display CRC support to validate cursor plane functionality.
The test will position the cursor plane either fully onscreen,
partially onscreen, or fully offscreen, using either a fully opaque
or fully transparent surface. In each case it then reads the PF CRC
and compares it with the CRC value obtained when the cursor plane
was disabled.

v2: Loop over all connectors and crtcs
    Use igt_wait_for_vblank
    Test more corner cases
    Add some progress indication ala. kms_flip
    Make it work for pf and pipe sources

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
10 years agolib: Check pipe source validity in igt_pipe_crc_new()
Ville Syrjälä [Mon, 21 Oct 2013 15:45:03 +0000 (18:45 +0300)]
lib: Check pipe source validity in igt_pipe_crc_new()

Have igt_pipe_crc_new() check whether the selected source is actually
supported.

v2: Make debugfs_pipe_crc.c not crash

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
10 years agolib: Allow pipe_crc_free(NULL)
Ville Syrjälä [Mon, 21 Oct 2013 16:37:33 +0000 (19:37 +0300)]
lib: Allow pipe_crc_free(NULL)

Prevent pipe_crc_free() from segfaulting on NULL ptr.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
10 years agolib/drmtest: Add kmstest_paint_color_alpha()
Ville Syrjälä [Fri, 18 Oct 2013 18:43:14 +0000 (21:43 +0300)]
lib/drmtest: Add kmstest_paint_color_alpha()

kmstest_paint_color_alpha() just like kmstest_paint_color() except you
also get to specify the alpha channel.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
10 years agointel_reg_dumper: fix "enable" at hsw_debug_lp_wm
Paulo Zanoni [Mon, 21 Oct 2013 15:19:57 +0000 (13:19 -0200)]
intel_reg_dumper: fix "enable" at hsw_debug_lp_wm

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
10 years agogitignore: Ignore intel_opregion_decode
Damien Lespiau [Mon, 21 Oct 2013 14:55:52 +0000 (15:55 +0100)]
gitignore: Ignore intel_opregion_decode

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agointel_opregion_decode: decipher bclm table
Jani Nikula [Tue, 8 Oct 2013 18:18:14 +0000 (21:18 +0300)]
intel_opregion_decode: decipher bclm table

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_opregion_decode: new tool for decoding graphics opregion
Jani Nikula [Tue, 8 Oct 2013 18:18:13 +0000 (21:18 +0300)]
intel_opregion_decode: new tool for decoding graphics opregion

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_bios_reader: dump all sections, including unknown ones
Jani Nikula [Tue, 8 Oct 2013 18:15:28 +0000 (21:15 +0300)]
intel_bios_reader: dump all sections, including unknown ones

We still need to dump some of the known sections explicitly due to
dependencies on information extracted, such as LFP data pointers and
panel_type.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_bios_reader: dump all edp device info structs
Jani Nikula [Tue, 8 Oct 2013 18:15:29 +0000 (21:15 +0300)]
intel_bios_reader: dump all edp device info structs

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_bios_reader: prepare for dumping all sections
Jani Nikula [Tue, 8 Oct 2013 18:15:27 +0000 (21:15 +0300)]
intel_bios_reader: prepare for dumping all sections

Dump sections through a table based on the section id.

Hex dump the section. This works also for unknown sections.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_bios_reader: add size temp variable as a shorthand for finfo.st_size
Jani Nikula [Tue, 8 Oct 2013 18:15:26 +0000 (21:15 +0300)]
intel_bios_reader: add size temp variable as a shorthand for finfo.st_size

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
10 years agointel_error_decode: Fix X/Y fence for gen2/3
Chris Wilson [Mon, 21 Oct 2013 08:31:18 +0000 (09:31 +0100)]
intel_error_decode: Fix X/Y fence for gen2/3

10 years agotests/kms_flip: More leeway for dummy load tests
Daniel Vetter [Sun, 20 Oct 2013 18:37:21 +0000 (20:37 +0200)]
tests/kms_flip: More leeway for dummy load tests

At least on my old atom i945 they take forever. Also, metric tons of
pipe B underruns while running rcs-flip-vs-panning. No idea why that
happens.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agokmstest: don't pollute stderr for impossible output configs
Daniel Vetter [Sun, 20 Oct 2013 17:24:08 +0000 (19:24 +0200)]
kmstest: don't pollute stderr for impossible output configs

Otherwise on machines where the only output available is restricted to
one pipe we'll have tons of "warn" results for no gain in the piglit
runner. All tests that use the kmstest helpers already check the
return value and do something sensible (like skip the tests if there's
really no config available).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/kms_flip: Unconfuse the framenumber step checking
Daniel Vetter [Sun, 20 Oct 2013 14:11:49 +0000 (16:11 +0200)]
tests/kms_flip: Unconfuse the framenumber step checking

We run flips and vblank waits in parallel, which means the step
for each is the maximum. If we'd switch to an interleaved scheme
(to be able to check the correlation) we'd need to add them instead.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/kms_flip: no absolute vblank wait on the first frame
Daniel Vetter [Sun, 20 Oct 2013 14:10:32 +0000 (16:10 +0200)]
tests/kms_flip: no absolute vblank wait on the first frame

We don't have a reference value for the vblank counter yet, so
will end up waiting for a long time for the vblank counter to
wrap around again.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotets/kms_flip: disable correlation check
Daniel Vetter [Sat, 19 Oct 2013 14:21:18 +0000 (16:21 +0200)]
tets/kms_flip: disable correlation check

It's broken since it doesn't take the order the events arrived into
account and so will fall over for longer seq_step values in the vblank
event: Since the flip completes right away, but the vblank later on
they won't have the same timestamp.

For now just give up, we could resurrect this by strictly alternating
between a flip and a vblank wait.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/debugfs_pipe_crc: new subtest to check CRC frame numbers
Daniel Vetter [Fri, 18 Oct 2013 16:43:30 +0000 (18:43 +0200)]
tests/debugfs_pipe_crc: new subtest to check CRC frame numbers

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agorendercopy: Add a way to dump an .aub file with the rendercopy bos
Damien Lespiau [Wed, 27 Feb 2013 14:51:29 +0000 (14:51 +0000)]
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>
10 years agolib: fix the assert in igt_stop_helper
Daniel Vetter [Fri, 18 Oct 2013 15:53:05 +0000 (17:53 +0200)]
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>
10 years agolib: Don't wait for a vblank when enabling the CRCs
Damien Lespiau [Fri, 18 Oct 2013 13:29:20 +0000 (14:29 +0100)]
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>
10 years agotests/debugfs_pipe_crc: Test the read CRCs are not null
Damien Lespiau [Fri, 18 Oct 2013 11:27:21 +0000 (12:27 +0100)]
tests/debugfs_pipe_crc: Test the read CRCs are not null

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotests/debugfs_pipe_crc: test all connectors
Daniel Vetter [Thu, 17 Oct 2013 12:18:35 +0000 (14:18 +0200)]
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>
10 years agotests/debugfs_pipe_crc: test all pipes
Daniel Vetter [Thu, 17 Oct 2013 12:10:43 +0000 (14:10 +0200)]
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>
10 years agotests/debugfs_pipe_crc: fix fb leak
Daniel Vetter [Thu, 17 Oct 2013 12:09:52 +0000 (14:09 +0200)]
tests/debugfs_pipe_crc: fix fb leak

Also remove the unused connector_t->mode.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/debugfs_pipe_crc: fall back to PIPE source
Daniel Vetter [Wed, 16 Oct 2013 20:49:24 +0000 (22:49 +0200)]
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>
10 years agolib/drmtest: Check that helper processes have died correctly
Daniel Vetter [Wed, 16 Oct 2013 17:52:00 +0000 (19:52 +0200)]
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>
10 years agotests/ZZ_missed_irq: Fixup SOURCE_PATH handling
Daniel Vetter [Thu, 17 Oct 2013 08:48:29 +0000 (10:48 +0200)]
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>
10 years agogem_ctx_bad_exec: skip vebox when appropriate
Ben Widawsky [Thu, 17 Oct 2013 05:01:34 +0000 (22:01 -0700)]
gem_ctx_bad_exec: skip vebox when appropriate

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agoREADME: list some of the dependencies
Jani Nikula [Tue, 8 Oct 2013 18:19:06 +0000 (21:19 +0300)]
README: list some of the dependencies

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
10 years agotests/debugfs_pipe_crc: correctly skip on unsupported platforms
Daniel Vetter [Wed, 16 Oct 2013 12:12:49 +0000 (14:12 +0200)]
tests/debugfs_pipe_crc: correctly skip on unsupported platforms

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agodebugfs_pipe_crc: Let's check CRCs!
Damien Lespiau [Wed, 9 Oct 2013 10:47:43 +0000 (11:47 +0100)]
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>
10 years agolib: Add igt_wait_for_vblank() helper
Damien Lespiau [Fri, 11 Oct 2013 17:31:20 +0000 (18:31 +0100)]
lib: Add igt_wait_for_vblank() helper

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Make igt_debugfs_open() take the mode as argument
Damien Lespiau [Wed, 9 Oct 2013 22:53:15 +0000 (23:53 +0100)]
lib: Make igt_debugfs_open() take the mode as argument

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add a igt_display.h with a few enums and defines from the kernel
Damien Lespiau [Wed, 9 Oct 2013 16:54:11 +0000 (17:54 +0100)]
lib: Add a igt_display.h with a few enums and defines from the kernel

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add kmstest_paint_color()
Damien Lespiau [Wed, 9 Oct 2013 16:42:52 +0000 (17:42 +0100)]
lib: Add kmstest_paint_color()

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add a igt_assert_cmpint()
Damien Lespiau [Wed, 9 Oct 2013 12:42:13 +0000 (13:42 +0100)]
lib: Add a igt_assert_cmpint()

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add igt_debugfs_fopen()
Damien Lespiau [Wed, 9 Oct 2013 10:45:31 +0000 (11:45 +0100)]
lib: Add igt_debugfs_fopen()

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Add a small helper to open debugfs files
Damien Lespiau [Tue, 8 Oct 2013 22:39:33 +0000 (23:39 +0100)]
lib: Add a small helper to open debugfs files

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agoDepend on libdrm_intel >= 2.4.47.
Matt Turner [Sat, 12 Oct 2013 00:34:13 +0000 (17:34 -0700)]
Depend on libdrm_intel >= 2.4.47.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
10 years agoconfigure: Don't bail if libdrm_nouveau isn't available.
Matt Turner [Fri, 11 Oct 2013 03:54:25 +0000 (20:54 -0700)]
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>
10 years agotests/pc8: Readd verbose error message
Daniel Vetter [Mon, 14 Oct 2013 17:10:56 +0000 (19:10 +0200)]
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>
10 years agotests/kms_flip: fix igt_assert
Daniel Vetter [Fri, 11 Oct 2013 18:53:40 +0000 (20:53 +0200)]
tests/kms_flip: fix igt_assert

I've blown the conversion in

commit 37e5b318c5dac290611099e2eec21df1e49fa71f
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>
10 years agotests/kms_flip: Skip if the kernel doesn't let y-tiled bo slip through
Daniel Vetter [Fri, 11 Oct 2013 18:22:19 +0000 (20:22 +0200)]
tests/kms_flip: Skip if the kernel doesn't let y-tiled bo slip through

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/kms_flip: exit handler needs a fixture
Daniel Vetter [Fri, 11 Oct 2013 17:58:43 +0000 (19:58 +0200)]
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>
10 years agotestdisplay: Allow getopt to print error messages
Thomas Wood [Thu, 10 Oct 2013 11:23:19 +0000 (12:23 +0100)]
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>
10 years agotests/gem_suspend: test debugfs/sysfs reads while s/r
Daniel Vetter [Thu, 10 Oct 2013 12:20:43 +0000 (14:20 +0200)]
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>
10 years agotests/module_reload: fail if the module didn't unload
Daniel Vetter [Thu, 10 Oct 2013 09:22:09 +0000 (11:22 +0200)]
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>
10 years agogem_pin: Use iterator for blit batch setup
Ben Widawsky [Wed, 9 Oct 2013 16:07:55 +0000 (09:07 -0700)]
gem_pin: Use iterator for blit batch setup

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_exec_blt: Use iterator for blit batch setup
Ben Widawsky [Wed, 9 Oct 2013 15:55:24 +0000 (08:55 -0700)]
gem_exec_blt: Use iterator for blit batch setup

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_evict_*: Use iterator for blit batch
Ben Widawsky [Wed, 9 Oct 2013 15:37:48 +0000 (08:37 -0700)]
gem_evict_*: Use iterator for blit batch

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_linear_blits: Use iterator for blit batch setup
Ben Widawsky [Wed, 9 Oct 2013 16:07:55 +0000 (09:07 -0700)]
gem_linear_blits: Use iterator for blit batch setup

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_exec_faulting_reloc: use iterator for batchbuffer
Ben Widawsky [Wed, 9 Oct 2013 00:36:21 +0000 (17:36 -0700)]
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>
10 years agotests: add kms_addfb
Daniel Vetter [Wed, 9 Oct 2013 19:20:40 +0000 (21:20 +0200)]
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>
10 years agolib/drmtest: extract rawer __gem_set_tiling
Daniel Vetter [Wed, 9 Oct 2013 18:50:50 +0000 (20:50 +0200)]
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>
10 years agopwrite_pread: Get devid only once
Ben Widawsky [Wed, 9 Oct 2013 02:47:53 +0000 (19:47 -0700)]
pwrite_pread: Get devid only once

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agopwrite_pread: Extract batch building
Ben Widawsky [Wed, 9 Oct 2013 02:45:30 +0000 (19:45 -0700)]
pwrite_pread: Extract batch building

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agopwrite_pread: use execbuf.batch_len for size
Ben Widawsky [Wed, 9 Oct 2013 02:41:49 +0000 (19:41 -0700)]
pwrite_pread: use execbuf.batch_len for size

This will make an upcoming change easier.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_tiled_blits: Squash bo leak on simulation
Ben Widawsky [Wed, 9 Oct 2013 03:32:12 +0000 (20:32 -0700)]
gem_tiled_blits: Squash bo leak on simulation

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agogem_tiled_blits: Squash memory leak on simulation
Ben Widawsky [Wed, 9 Oct 2013 01:30:13 +0000 (18:30 -0700)]
gem_tiled_blits: Squash memory leak on simulation

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
10 years agotests/kms_flip: Skip if no clone configuration could be found
Daniel Vetter [Mon, 7 Oct 2013 20:55:14 +0000 (22:55 +0200)]
tests/kms_flip: Skip if no clone configuration could be found

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agoconfigure.ac: require dri2proto for overlay
Ben Widawsky [Sat, 5 Oct 2013 23:21:11 +0000 (16:21 -0700)]
configure.ac: require dri2proto for overlay

With the introduction of

commit f9a50de3dcc501e930de6c60983a4feb57121e7e
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>
10 years agotests/pc8: Fail harder
Daniel Vetter [Fri, 4 Oct 2013 17:55:56 +0000 (19:55 +0200)]
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>
10 years agotests/pc8+: Only skip i2c subtest if i2c /dev interface is unavailable
Daniel Vetter [Fri, 4 Oct 2013 17:49:36 +0000 (19:49 +0200)]
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>
10 years agotests/kms_flip: use igt_assert more
Daniel Vetter [Fri, 4 Oct 2013 16:42:26 +0000 (18:42 +0200)]
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>
10 years agotests/kms_flip: check flip count in both directions
Daniel Vetter [Fri, 4 Oct 2013 16:11:37 +0000 (18:11 +0200)]
tests/kms_flip: check flip count in both directions

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agoNEWS: Mention gen7 perf counters release
Daniel Vetter [Fri, 4 Oct 2013 09:10:48 +0000 (11:10 +0200)]
NEWS: Mention gen7 perf counters release

This is too great to be omitted!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests: Simulate missed breadcrumb irqs
Chris Wilson [Fri, 23 Aug 2013 11:32:43 +0000 (12:32 +0100)]
tests: Simulate missed breadcrumb irqs

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
10 years agointel_perf_counters: Add support for Gen7 platforms.
Kenneth Graunke [Wed, 3 Apr 2013 05:54:08 +0000 (22:54 -0700)]
intel_perf_counters: Add support for Gen7 platforms.

We finally received permission to release this; the counters should be
properly documented in the Haswell PRMs.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
10 years agotests/kms_flip: use igt_assert in the dpms helpers
Daniel Vetter [Thu, 3 Oct 2013 20:45:53 +0000 (22:45 +0200)]
tests/kms_flip: use igt_assert in the dpms helpers

No need to route the error code around really.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/kms_flip: Check the dpms confusion
Daniel Vetter [Thu, 3 Oct 2013 16:30:56 +0000 (18:30 +0200)]
tests/kms_flip: Check the dpms confusion

Some kernels inadvertedly forwarded dpms changes to crtcs connected to
shared encoders even though that specific output wasn't enabled.
Hilarity ensued.

Note that we only have shared encoders on hsw (DP+HDMI) and with sdvo
cards (multi-function encoders).

v2: Do a full OFF->ON->OFF transition to make sure something actually
happens.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agoNEWS: testdisplay now with 3d support!
Daniel Vetter [Tue, 1 Oct 2013 20:20:38 +0000 (22:20 +0200)]
NEWS: testdisplay now with 3d support!

10 years agotests/kms_flip: scale test runtime
Daniel Vetter [Mon, 30 Sep 2013 19:38:09 +0000 (21:38 +0200)]
tests/kms_flip: scale test runtime

On machines with many outputs and many crtcs it takes too long.
So scale the runtime by the number of output combinations we're trying
to light up.

Compensate the test runtime a bit by doubling most subtests' duration.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotests/kms_flip: fail harder
Daniel Vetter [Mon, 30 Sep 2013 19:35:47 +0000 (21:35 +0200)]
tests/kms_flip: fail harder

At least for pipe A/B we should always fail the test if we can't light
up the preferred mode - the kernel should filter out impossible modes
and for our hw pipe A/B are the least constrained.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 years agotestdisplay: Print the stereo mode being tested
Damien Lespiau [Mon, 30 Sep 2013 17:03:33 +0000 (18:03 +0100)]
testdisplay: Print the stereo mode being tested

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Make -o and -3 work together
Damien Lespiau [Mon, 30 Sep 2013 16:42:33 +0000 (17:42 +0100)]
testdisplay: Make -o and -3 work together

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Remove mode resetting now that we don't adjust the timings
Damien Lespiau [Mon, 30 Sep 2013 16:41:56 +0000 (17:41 +0100)]
testdisplay: Remove mode resetting now that we don't adjust the timings

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Respect specified_disp_id in the stereo loop
Damien Lespiau [Mon, 30 Sep 2013 16:02:21 +0000 (17:02 +0100)]
testdisplay: Respect specified_disp_id in the stereo loop

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Remove printing out the eyes geometry
Damien Lespiau [Mon, 30 Sep 2013 15:56:29 +0000 (16:56 +0100)]
testdisplay: Remove printing out the eyes geometry

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agolib: Adjust dump_modes() to the new stereo encoding
Damien Lespiau [Thu, 26 Sep 2013 17:34:06 +0000 (18:34 +0100)]
lib: Adjust dump_modes() to the new stereo encoding

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Use DRM_MODE_FLAG_3D_MASK
Damien Lespiau [Thu, 26 Sep 2013 16:56:01 +0000 (17:56 +0100)]
testdisplay: Use DRM_MODE_FLAG_3D_MASK

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agotestdisplay: Remove the timing adjustements now that the kernel does it
Damien Lespiau [Tue, 17 Sep 2013 17:59:52 +0000 (18:59 +0100)]
testdisplay: Remove the timing adjustements now that the kernel does it

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
10 years agointel_infoframe: Display the VIC in decimal
Damien Lespiau [Mon, 16 Sep 2013 16:52:41 +0000 (17:52 +0100)]
intel_infoframe: Display the VIC in decimal

It's not customary to display the VIC in hexadecimal and lead me to
scratch my head for a couple of seconds. Print it in decimal instead.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>