profile/extras/intel-gpu-tools.git
11 years agoFill in type of null register to match Mesa.
Eric Anholt [Tue, 22 Aug 2006 22:21:44 +0000 (15:21 -0700)]
Fill in type of null register to match Mesa.

11 years agoThis code was supposed to be null instead of acc0 (brw_disasm.c gave "a0").
Eric Anholt [Tue, 22 Aug 2006 22:21:28 +0000 (15:21 -0700)]
This code was supposed to be null instead of acc0 (brw_disasm.c gave "a0").

11 years agoFix translation of message registers.
Eric Anholt [Tue, 22 Aug 2006 21:52:14 +0000 (14:52 -0700)]
Fix translation of message registers.

11 years agoFix translation of saturate value, and wire conditionalmod to 0 for now.
Eric Anholt [Tue, 22 Aug 2006 21:46:39 +0000 (14:46 -0700)]
Fix translation of saturate value, and wire conditionalmod to 0 for now.

11 years agoRemove generated source from repo.
Eric Anholt [Tue, 22 Aug 2006 21:43:03 +0000 (14:43 -0700)]
Remove generated source from repo.

11 years agoAdd support for negate and abs to source operands.
Eric Anholt [Tue, 22 Aug 2006 21:42:45 +0000 (14:42 -0700)]
Add support for negate and abs to source operands.

11 years agoFix imm32 translation.
Eric Anholt [Tue, 22 Aug 2006 20:33:41 +0000 (13:33 -0700)]
Fix imm32 translation.

11 years agoFix dest_horiz_stride translation, and destination type.
Eric Anholt [Tue, 22 Aug 2006 20:15:38 +0000 (13:15 -0700)]
Fix dest_horiz_stride translation, and destination type.

11 years agoAnd add a comma. This was supposed to be a minor change.
Eric Anholt [Tue, 22 Aug 2006 20:15:00 +0000 (13:15 -0700)]
And add a comma.  This was supposed to be a minor change.

11 years agoRemove generated file.
Eric Anholt [Tue, 22 Aug 2006 20:14:09 +0000 (13:14 -0700)]
Remove generated file.

11 years agoFix horizontal stride translation.
Eric Anholt [Tue, 22 Aug 2006 20:08:26 +0000 (13:08 -0700)]
Fix horizontal stride translation.

11 years agoC warnings cleanup.
Eric Anholt [Tue, 22 Aug 2006 19:46:37 +0000 (12:46 -0700)]
C warnings cleanup.

11 years agoAdd Wall.
Eric Anholt [Tue, 22 Aug 2006 19:44:28 +0000 (12:44 -0700)]
Add Wall.

11 years agoactually print out last uint32_t of instruction.
Eric Anholt [Tue, 22 Aug 2006 19:42:25 +0000 (12:42 -0700)]
actually print out last uint32_t of instruction.

11 years agoStart correcting the translation.
Eric Anholt [Tue, 22 Aug 2006 19:41:09 +0000 (12:41 -0700)]
Start correcting the translation.

11 years agoGet the wm program to parse.
Eric Anholt [Tue, 22 Aug 2006 18:54:19 +0000 (11:54 -0700)]
Get the wm program to parse.

11 years agoInitial gen4asm code.
Eric Anholt [Tue, 22 Aug 2006 17:15:33 +0000 (10:15 -0700)]
Initial gen4asm code.

11 years agobuild: Guard the inclusions of config.h with HAVE_CONFIG_H
Damien Lespiau [Wed, 20 Feb 2013 14:40:07 +0000 (14:40 +0000)]
build: Guard the inclusions of config.h with HAVE_CONFIG_H

autoconf can be configured to not generate a config.h but to give the
defines with command line arguments instead. In this case, there's no
config.h to include.

To work in both cases autoconf adds a HAVE_CONFIG_H define on the command
line to signal there's a config.h to include.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
11 years agolib: Allow to override the device id at run time
Damien Lespiau [Tue, 19 Feb 2013 00:39:04 +0000 (00:39 +0000)]
lib: Allow to override the device id at run time

Using the same environment variable as libdrm so one doesn't have to
remember two different things. This is helpful to run a test under a
fake identity, to, say, dump an aub file.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
11 years agolib: Factor out a function to check if an environment variable is set
Damien Lespiau [Mon, 18 Feb 2013 23:49:48 +0000 (23:49 +0000)]
lib: Factor out a function to check if an environment variable is set

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
11 years agointel_chipset: Fix Haswell CRW PCI IDs.
Kenneth Graunke [Fri, 1 Mar 2013 23:36:20 +0000 (15:36 -0800)]
intel_chipset: Fix Haswell CRW PCI IDs.

The second digit was off by one, which meant we accidentally treated
GT(n) as GT(n-1).  This also meant no support for GT1 at all.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoquick_dump: prettier printing
Ben Widawsky [Fri, 22 Feb 2013 02:31:20 +0000 (18:31 -0800)]
quick_dump: prettier printing

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agofix arch build: update ax_python_devel.m4
Ben Widawsky [Tue, 19 Feb 2013 17:53:43 +0000 (09:53 -0800)]
fix arch build: update ax_python_devel.m4

I complained about the broken m4 script, and it got fixed. I love the
internet.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agointel_chipset: Add multiple inclusion guards into intel_chipset.h
Ville Syrjälä [Mon, 18 Feb 2013 19:41:10 +0000 (21:41 +0200)]
intel_chipset: Add multiple inclusion guards into intel_chipset.h

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agointel_chipset: Use parens around macro arguments
Ville Syrjälä [Mon, 18 Feb 2013 19:41:09 +0000 (21:41 +0200)]
intel_chipset: Use parens around macro arguments

Protect the macro argument evaluations with parens.

This is already touching most lines, so while at it, fix up all white
space to uniform style throughout the file.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: Forbid to run the blit tests with count of 1
Damien Lespiau [Tue, 12 Feb 2013 14:24:40 +0000 (14:24 +0000)]
tests: Forbid to run the blit tests with count of 1

Invoking say,

  sudo ./tests/gem_render_linear_blits 1

does not make a lot of sense as we're creating a single bo. The test
does not yell at you and passes, even if the rendercopy function does
not do anything. This makes it quite harmful when trying to debug
rendercopy without realizing that count is the number of allocated bos
and must be >= 2.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: Add a quick variant to the gem_storedw_* tests
Damien Lespiau [Wed, 13 Feb 2013 16:29:02 +0000 (16:29 +0000)]
tests: Add a quick variant to the gem_storedw_* tests

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agolib: Add a way to specify values for "quick" runs
Damien Lespiau [Wed, 13 Feb 2013 16:29:01 +0000 (16:29 +0000)]
lib: Add a way to specify values for "quick" runs

In some environments, we don't really want to loop 100000 times or
allocate 152352621 buffers because it makes the tests too long to run.

This adds a way to specify "quick" values to reduce the time taken by
certain tests.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/testdisplay.c: Remove the variable only_one_mode.
Yi Sun [Tue, 12 Feb 2013 15:11:35 +0000 (23:11 +0800)]
tests/testdisplay.c: Remove the variable only_one_mode.

That variable is useless, instead the variables specified_mode_num and specified_disp_id can cover all the situation.
For parameter -o, all three instances should work:

./testdisplay -o 21,4 only test the 4th mode on the connector with id 21.
./testdisplay -o 21   test all the mode lines on the connector wiht id 21.
./testdisplay -o ,4   the -o is ignored, just like -a.

Signed-off-by: Yi Sun <yi.sun@intel.com>
11 years agoquick_dump: Makefile.am best practices and fix distcheck
Matt Turner [Fri, 8 Feb 2013 19:36:54 +0000 (19:36 +0000)]
quick_dump: Makefile.am best practices and fix distcheck

A few changes
  - Put CPPFLAGS in AM_CPPFLAGS instead of a per-target CFLAGS var;
  - Use _LIBS/_CFLAGS from pkg-config instead of hard-coded values;
  - List non-generated scripts in dist_bin_SCRIPTS;
  - Add chipset.py to the run that implicitly generates it, which fixes
    distcheck.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoconfigure.ac: fix autogen.sh
Matt Turner [Fri, 8 Feb 2013 19:36:53 +0000 (19:36 +0000)]
configure.ac: fix autogen.sh

Put -I m4 in ACLOCAL_AMFLAGS so ./autogen.sh just works

[ben: commit message modified by]
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: chdir us to where the text files are
Ben Widawsky [Fri, 8 Feb 2013 02:58:17 +0000 (18:58 -0800)]
quick_dump: chdir us to where the text files are

This is useful if you run out of the quick_dump directory.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoREADME: Add quick_dump info
Ben Widawsky [Thu, 7 Feb 2013 16:35:57 +0000 (08:35 -0800)]
README: Add quick_dump info

Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: Give dumper an AM_CONDITIONAL
Ben Widawsky [Thu, 7 Feb 2013 16:28:14 +0000 (08:28 -0800)]
quick_dump: Give dumper an AM_CONDITIONAL

It may sometimes be undesirable to build or install the quick dumper.
This was requested by Damien.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: Use the register access library
Ben Widawsky [Sat, 2 Feb 2013 19:31:46 +0000 (11:31 -0800)]
quick_dump: Use the register access library

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: Connect libpciaccess and other utils
Ben Widawsky [Sat, 2 Feb 2013 04:13:25 +0000 (20:13 -0800)]
quick_dump: Connect libpciaccess and other utils

Make a register access library with sample to do register reads

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: SWIG chipset interface
Ben Widawsky [Fri, 1 Feb 2013 22:54:31 +0000 (14:54 -0800)]
quick_dump: SWIG chipset interface

This isn't strictly necessary it would have been easy enough to simply
convert intel_chipset.h but this should be nice prep work for directly
doing MMIO. It also serves as a nice review point.

It's demonstrated with an autodetect function in the script. That
autodetect has a hardcoded path that shouldn't be there, but it will go
away in the next patch when we can properly link in libpciaccess.

Thanks to Matt for helping whip the automake stuff into shape.

v2: Switch to $(top_srcdir)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoconfigure.ac: Add swig dependency
Ben Widawsky [Fri, 1 Feb 2013 22:53:19 +0000 (14:53 -0800)]
configure.ac: Add swig dependency

As far as I can tell (and recommended to me by Matt) taking these m4
extension macros from http://www.gnu.org/software/autoconf-archive/
doesn't require the project distribute GPL. I am a bit confused from
reading the license. I'd really hope someone can comment.

The only other solution would be to roll my on m4 macros, or figure out
a way to check that this autoconf-archive package is included from the
configure.ac.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: vlv support
Ben Widawsky [Thu, 31 Jan 2013 19:09:15 +0000 (11:09 -0800)]
quick_dump: vlv support

This patch includes a patch from Jesse which removed a bunch of VLV
registers which were useless in my original RFC.

Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: gen7 support
Ben Widawsky [Thu, 31 Jan 2013 19:08:36 +0000 (11:08 -0800)]
quick_dump: gen7 support

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: gen6 support
Ben Widawsky [Thu, 31 Jan 2013 19:08:06 +0000 (11:08 -0800)]
quick_dump: gen6 support

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoquick_dump: A dump utility different than reg_dumper
Ben Widawsky [Thu, 20 Sep 2012 05:08:46 +0000 (22:08 -0700)]
quick_dump: A dump utility different than reg_dumper

This is the base tool for quick dump. At it's heart, quick dump is
simply a basic text parsing thingie which plugs into intel-gpu-tools to
do something similar to intel_reg_dumper.

The format for the register definition files is very open, so it's just
something simple for now.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoconfigure.ac: Move prime stuff to where it belongs
Ben Widawsky [Thu, 7 Feb 2013 16:29:24 +0000 (08:29 -0800)]
configure.ac: Move prime stuff to where it belongs

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoconfigure: slightly more standard --disable-tests
Ben Widawsky [Thu, 7 Feb 2013 18:30:03 +0000 (10:30 -0800)]
configure: slightly more standard --disable-tests

Cc: Julien Cristau <jcristau@debian.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoBuild: Add --disable-tests configure flag to avoid tests build
Rodrigo Vivi [Tue, 5 Feb 2013 18:17:54 +0000 (16:17 -0200)]
Build: Add --disable-tests configure flag to avoid tests build

Tests are still being built by default. However this request
came from OSVs in order to allow them to include i-g-t in their
distributions by default avoiding adding more and more dependencies
since we are improving and adding more and more tests.

v2: wait for Ben's spacing fixes and adjusted for new space rules.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoconfigure.ac: Add vim magic modeline
Ben Widawsky [Thu, 31 Jan 2013 21:06:17 +0000 (13:06 -0800)]
configure.ac: Add vim magic modeline

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agoconfigure.ac: Fix spacing
Ben Widawsky [Thu, 31 Jan 2013 21:04:18 +0000 (13:04 -0800)]
configure.ac: Fix spacing

Almost all based on vim's config file type. It got it wrong in a few
places which were fixed by hand.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agotests/gem_ctx_exec: properly test destroy_ctx ioctl
Mika Kuoppala [Tue, 5 Feb 2013 10:26:49 +0000 (12:26 +0200)]
tests/gem_ctx_exec: properly test destroy_ctx ioctl

Call context destroy with proper ioctl number and
add test to verify that we can't post batchbuffers
with destroyed context.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agointel_gtt: Fix PTE offsets
Ben Widawsky [Tue, 5 Feb 2013 01:47:53 +0000 (17:47 -0800)]
intel_gtt: Fix PTE offsets

Vincent sent me a patch which I think didn't go far enough.

Honestly, I don't even know what this tool does.

Reported-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agointel_error_decode: Don't barf on a malformed PCI ID line
Chris Wilson [Mon, 4 Feb 2013 21:41:13 +0000 (21:41 +0000)]
intel_error_decode: Don't barf on a malformed PCI ID line

Whoops, someone added UTS_RELEASE with no newline before PCI ID which
upsets our naive parser.

11 years agoadd more VLV PCI IDs
Jesse Barnes [Sat, 2 Feb 2013 10:24:39 +0000 (11:24 +0100)]
add more VLV PCI IDs

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
11 years agokms_flip: Add flip-vs-modeset-vs-hang test
Ville Syrjälä [Wed, 30 Jan 2013 12:52:24 +0000 (14:52 +0200)]
kms_flip: Add flip-vs-modeset-vs-hang test

The flip-vs-modeset-vs-hang test will:
1. simulate a GPU hang
2. exec a nop batch
3. schedule a page flip
4. perform a modeset operation

With the current buggy kernel driver, the modeset operation will
hang indefinitely waiting for the flip to complete. Since the
rings are stopped, that will never happen. The current GPU reset
code doesn't play well with page flips either, so a GPU reset
won't fix things.

Once the kernel driver is fixed, the eventual GPU reset will
save the day.

The nop batch buffer is required only because the kernel can't
currently detect GPU hangs, unless there is at least one user
submitted request pending.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agokms_flip: Make flip events optional
Ville Syrjälä [Wed, 30 Jan 2013 12:52:23 +0000 (14:52 +0200)]
kms_flip: Make flip events optional

Pass an argument to do_page_flip() telling it whether to request flip
events.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/gem_lut_handle: Limit testing LUT interface to recent kernels
Chris Wilson [Thu, 17 Jan 2013 15:07:50 +0000 (15:07 +0000)]
tests/gem_lut_handle: Limit testing LUT interface to recent kernels

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/gem_lut_handle: Expand negative testing
Chris Wilson [Thu, 17 Jan 2013 15:05:20 +0000 (15:05 +0000)]
tests/gem_lut_handle: Expand negative testing

Pass in lots of execs and relocs trying to trick the kernel into making
a mistake.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests: Benchmark new API for using a LUT with the execbuffer
Chris Wilson [Wed, 14 Nov 2012 12:15:01 +0000 (12:15 +0000)]
tests: Benchmark new API for using a LUT with the execbuffer

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests: Exercise new API for using a LUT with the execbuffer
Chris Wilson [Wed, 14 Nov 2012 12:15:01 +0000 (12:15 +0000)]
tests: Exercise new API for using a LUT with the execbuffer

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/testdisplay.c: Fix the issue which don't display anything until '-o' given.
Yi Sun [Sun, 13 Jan 2013 02:10:24 +0000 (10:10 +0800)]
tests/testdisplay.c: Fix the issue which don't display anything until '-o' given.

Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/gem_seqno_wrap: skip if debugfs entry is not there
Mika Kuoppala [Tue, 8 Jan 2013 11:16:06 +0000 (13:16 +0200)]
tests/gem_seqno_wrap: skip if debugfs entry is not there

Return error code 77 to skip test if debugfs entry is not
available.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59116
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: Add basic testing of gem_pin
Chris Wilson [Mon, 7 Jan 2013 11:43:38 +0000 (11:43 +0000)]
tests: Add basic testing of gem_pin

Including exercising races versus interrupts.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agoFix out of bounds memory access
Thomas Jarosch [Tue, 25 Dec 2012 17:06:57 +0000 (18:06 +0100)]
Fix out of bounds memory access

cppcheck reported:
[tools/intel_infoframes.c:836]: (error) Width 31 given in format string
(no. 1) is larger than destination buffer 'option[16]',
use %15s to prevent overflowing it.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/testdisplay: Specify the display.
Yi Sun [Wed, 26 Dec 2012 09:12:39 +0000 (17:12 +0800)]
tests/testdisplay: Specify the display.

It can specify the display by the connector id which list as the first column of ./testdisplay -i.
E.g. command "./testdiplay -o 1,4" means setting number 4 mode line on the display with connector id 1.

v2. Specify the display by id which can be got from option '-i'

Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agotests/gem_seqno_wrap: adapt to new next_seqno debugfs interface
Mika Kuoppala [Fri, 21 Dec 2012 12:06:02 +0000 (14:06 +0200)]
tests/gem_seqno_wrap: adapt to new next_seqno debugfs interface

- adapt to use debugfs interface that can set seqno to arbitrary value
- fix dynamic buffer allocation

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/prime_nv_pcopy: guard output for subtest listing
Daniel Vetter [Thu, 20 Dec 2012 22:30:10 +0000 (23:30 +0100)]
tests/prime_nv_pcopy: guard output for subtest listing

11 years agointel/udl tests;
Dave Airlie [Tue, 14 Aug 2012 04:16:04 +0000 (14:16 +1000)]
intel/udl tests;

basic test to share a BO, add as a udl framebuffer, and call the dirty
ioctl on it so we cause the vmapping to happen

[danvet: Snatched up from Dave's prime branch, ocd name and bikeshed
whitespace a bit.]

11 years agotests: add testcase to check igt runtime enviroment
Daniel Vetter [Tue, 18 Dec 2012 21:55:58 +0000 (22:55 +0100)]
tests: add testcase to check igt runtime enviroment

Now that we've abandonded the autohell testrunner, need to port this
over. Easiest is to just add another testcase ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agokms_flip: Add -lrt back
Ville Syrjälä [Tue, 18 Dec 2012 14:51:27 +0000 (16:51 +0200)]
kms_flip: Add -lrt back

kms_flip doesn't build due to missing -lrt.

The build was broken due to a typo in this commit:

commit acdf7171264a5139caabb78127c9eef5080c0682
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sat Dec 15 00:48:47 2012 +0100

    tests: s/flip_test/kms_flip

    OCD wins!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
For some reason libudev.pc brings in -lrt as well, which probably
caused the typo to go unnoticed.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/kms_flip: don't die on stdin input
Daniel Vetter [Tue, 18 Dec 2012 09:25:15 +0000 (10:25 +0100)]
tests/kms_flip: don't die on stdin input

Seems to be a leftover from fliptest ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agolib: extract kmstest_get_pipe_from_crtc_id
Daniel Vetter [Sat, 15 Dec 2012 00:06:11 +0000 (01:06 +0100)]
lib: extract kmstest_get_pipe_from_crtc_id

11 years agotests/gem_flink: enable flink lifetime subtest
Daniel Vetter [Sat, 15 Dec 2012 00:05:33 +0000 (01:05 +0100)]
tests/gem_flink: enable flink lifetime subtest

Somehow fumbled this.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: s/flip_test/kms_flip
Daniel Vetter [Fri, 14 Dec 2012 23:48:47 +0000 (00:48 +0100)]
tests: s/flip_test/kms_flip

OCD wins!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/flip_test: add flip vs. rmfb testcase
Daniel Vetter [Fri, 14 Dec 2012 23:41:01 +0000 (00:41 +0100)]
tests/flip_test: add flip vs. rmfb testcase

To check that the kernel doesn't fall over when tearing down a life
fb. Confirmed that it exercises the right codepath with printk.

Also fix an issue Imre introduced in

commit fe7fea0be3b5f418b76dc7834e73b31827484429
Author: Imre Deak <imre.deak@intel.com>
Date:   Tue Oct 16 04:09:43 2012 +0300

    flip_test: add event sequence number tracking

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoflip_test: recreate fb
Daniel Vetter [Thu, 13 Dec 2012 20:30:43 +0000 (21:30 +0100)]
flip_test: recreate fb

... to test the latency of rmfb, getfb and addfb. Since if those still
can cause spikes, we have a problem.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/flip_test: split out timestamp checks into subtest
Daniel Vetter [Thu, 13 Dec 2012 20:10:58 +0000 (21:10 +0100)]
tests/flip_test: split out timestamp checks into subtest

This way we can still test basic pageflips on kernels with broken
locking while still failing when the timestamps/framecounts are wrong.

Also disable the delay check on analog tv, timings on those ports are
truely screwed-up

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/gem_seqno_wrap.c: include <signal.h> for definition of kill()
Alan Coopersmith [Sun, 16 Dec 2012 18:38:54 +0000 (10:38 -0800)]
tests/gem_seqno_wrap.c: include <signal.h> for definition of kill()

Fixes build failure on Solaris:
gem_seqno_wrap.c: In function ‘run_cmd’:
gem_seqno_wrap.c:328:3: error: implicit declaration of function ‘kill’ [-Werror=implicit-function-declaration]

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/prime_nv_pcopy: convert to subtests
Daniel Vetter [Sat, 15 Dec 2012 14:38:31 +0000 (15:38 +0100)]
tests/prime_nv_pcopy: convert to subtests

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/prime_nv_tests: convert to subtests
Daniel Vetter [Sat, 15 Dec 2012 14:30:19 +0000 (15:30 +0100)]
tests/prime_nv_tests: convert to subtests

And properly fail the failing ones - bloody hate it when the tests lie
to me ...

11 years agotools: intel_gpu_abrt bug report template.
Rodrigo Vivi [Thu, 13 Dec 2012 16:11:24 +0000 (14:11 -0200)]
tools: intel_gpu_abrt bug report template.

checking if file has been generated and output a template for a good bug report

11 years agotools: intel_gpu_abrt checking for root access
Rodrigo Vivi [Thu, 13 Dec 2012 16:11:23 +0000 (14:11 -0200)]
tools: intel_gpu_abrt checking for root access

needed by other igt tools that are collecting more usefull information.

11 years agotools: intel_gpu_abrt collecting more useful info
Rodrigo Vivi [Thu, 13 Dec 2012 16:11:22 +0000 (14:11 -0200)]
tools: intel_gpu_abrt collecting more useful info

11 years agotools: intel_gpu_abrt "get" function
Rodrigo Vivi [Thu, 13 Dec 2012 16:11:21 +0000 (14:11 -0200)]
tools: intel_gpu_abrt "get" function

A function to make it easy to collect any file or directory needed later.

11 years agotests/gem_seqno_wrap: dont sync when crossing half of seqno space
Mika Kuoppala [Thu, 13 Dec 2012 10:43:35 +0000 (12:43 +0200)]
tests/gem_seqno_wrap: dont sync when crossing half of seqno space

For seqno comparison to work they have to be less than UINT32_MAX/2
apart. So when crossing the half way of seqno space, be careful not
to sync anything as this causes gpu hangs. Do real test with
syncing only when we are about to wrap.

v2: Don't spam if no rendercopy was found, only warn once

11 years agoflip_test: fix link error due to missing -lrt
Imre Deak [Fri, 7 Dec 2012 18:30:28 +0000 (20:30 +0200)]
flip_test: fix link error due to missing -lrt

Needed by clock_gettime(). This isn't a problem if libudev is used,
as that pulles librt with it.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests/gem_*_tiled_blits: Use the vma limiter to present address space exhaustion
Chris Wilson [Wed, 12 Dec 2012 14:33:17 +0000 (14:33 +0000)]
tests/gem_*_tiled_blits: Use the vma limiter to present address space exhaustion

References: https://bugs.freedesktop.org/show_bug.cgi?id=58113
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/gem_tiled_pread_pwrite: Allow the kernel to reap the GTT address space
Chris Wilson [Wed, 12 Dec 2012 13:58:04 +0000 (13:58 +0000)]
tests/gem_tiled_pread_pwrite: Allow the kernel to reap the GTT address space

Otherwise we can not run this test on 32-bit systems.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/gem_tiled_swapping: Don't needless crash on 32-bit systems
Chris Wilson [Wed, 12 Dec 2012 13:56:09 +0000 (13:56 +0000)]
tests/gem_tiled_swapping: Don't needless crash on 32-bit systems

Only 32-bit of mmap address space, but with PAE we may be trying to
allocate more than 4 GiB of memory.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/prime_nv_pcopy.c: fail if nouveau_pushbuf_kick fails rather than spinning
Maarten Lankhorst [Tue, 11 Sep 2012 17:01:46 +0000 (19:01 +0200)]
tests/prime_nv_pcopy.c: fail if nouveau_pushbuf_kick fails rather than spinning

11 years agotests: disable gem_exec_bad_domains/conflicting-write-domain
Daniel Vetter [Fri, 7 Dec 2012 22:34:23 +0000 (23:34 +0100)]
tests: disable gem_exec_bad_domains/conflicting-write-domain

Kernel checks have been eased in

commit c1f093e09c4ceb583b04d11e767bb3201812e4d2
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Dec 3 11:49:07 2012 +0000

    drm/i915: Remove check for conflicting relocation write-domains

11 years agotests: Add a basic test for tiled render copies
Chris Wilson [Thu, 6 Dec 2012 20:36:24 +0000 (20:36 +0000)]
tests: Add a basic test for tiled render copies

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agoImplement a working gen7 rendercopy
Chris Wilson [Thu, 6 Dec 2012 17:18:52 +0000 (17:18 +0000)]
Implement a working gen7 rendercopy

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57825
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests: Add basic test for render blits
Chris Wilson [Thu, 6 Dec 2012 19:32:14 +0000 (19:32 +0000)]
tests: Add basic test for render blits

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agopci: Search for the first Intel GPU, rather than assume a fixed slot
Chris Wilson [Thu, 6 Dec 2012 12:16:12 +0000 (12:16 +0000)]
pci: Search for the first Intel GPU, rather than assume a fixed slot

Everywhere else we search for a match based on an Intel display
device, so if the quick check of the fixed slot fails, fallback to
walking the PCI bus looking for a match.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agotests/gem_exec_nop: implemented correct SKIP reporting
Daniel Vetter [Wed, 5 Dec 2012 18:29:11 +0000 (19:29 +0100)]
tests/gem_exec_nop: implemented correct SKIP reporting

I think I need a testsuite for test writing.

11 years agotests/gem_dummy_reloc_loop: some updates
Daniel Vetter [Wed, 5 Dec 2012 09:09:08 +0000 (10:09 +0100)]
tests/gem_dummy_reloc_loop: some updates

- convert to subtests
- shut up stderr output for successful runs

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: fixup gem_exec_nop subtests
Daniel Vetter [Wed, 5 Dec 2012 03:16:38 +0000 (04:16 +0100)]
tests: fixup gem_exec_nop subtests

Note to self: No more pushing after 12 o'clock midnight. Not a good
idea, too embarassing.

11 years agotests: run no-op batches on all rings
Daniel Vetter [Tue, 4 Dec 2012 16:13:05 +0000 (17:13 +0100)]
tests: run no-op batches on all rings

For Ben ...

11 years agotests: add gem_seqno_wrap
Mika Kuoppala [Tue, 4 Dec 2012 17:43:13 +0000 (19:43 +0200)]
tests: add gem_seqno_wrap

This test uses debugfs entry to set next_seqno close
to a wrapping point and then creates a load with dependant
buffer objects or with specified command to induce the wrap.

v2: Use new get_rendercpy_func as suggested by Daniel Vetter.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoREADME: piglit requires results-file for testruns
Daniel Vetter [Tue, 4 Dec 2012 09:42:15 +0000 (10:42 +0100)]
README: piglit requires results-file for testruns

Noticed by Mika.

11 years agotests/Makefile.am: Add a comment about the subtest infrastructure
Daniel Vetter [Tue, 4 Dec 2012 09:37:55 +0000 (10:37 +0100)]
tests/Makefile.am: Add a comment about the subtest infrastructure

11 years agoREADME: add quick howto for using piglit as testrunner
Daniel Vetter [Tue, 4 Dec 2012 09:34:46 +0000 (10:34 +0100)]
README: add quick howto for using piglit as testrunner