platform/upstream/intel-gpu-tools.git
11 years agoclang: Fix warnings found through clang.
Ben Widawsky [Thu, 30 Aug 2012 21:03:54 +0000 (14:03 -0700)]
clang: Fix warnings found through clang.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agotests/gem_cacheing: Exercise snoop coherency
Chris Wilson [Mon, 16 Jul 2012 15:41:16 +0000 (16:41 +0100)]
tests/gem_cacheing: Exercise snoop coherency

This is based on tests/gem_partial_pwrite_pread which aims to detect
incoherency between CPU reads and writes to a bo whilst using it as a
source and target for GPU writes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agoAdd bare-metal interface to adjust cacheing (i.e. snoop status) of a bo
Chris Wilson [Mon, 16 Jul 2012 15:39:57 +0000 (16:39 +0100)]
Add bare-metal interface to adjust cacheing (i.e. snoop status) of a bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
11 years agobump to 1.3 release 1.3 intel-gpu-tools-1.3
Daniel Vetter [Mon, 27 Aug 2012 07:37:01 +0000 (09:37 +0200)]
bump to 1.3 release

11 years agommio: Limit the uc- mapping to only map the registers
Chris Wilson [Sun, 26 Aug 2012 20:22:15 +0000 (21:22 +0100)]
mmio: Limit the uc- mapping to only map the registers

In the future, we may like to enable wc mapping of at least the GATT,
and so causing a conflict if we attempt to map the entire bar as uc-
here. Obviously we need a better fallback plan, but for the moment only
attempt to map the portion of the pci space that we use for register
access.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agointel_gtt: Harden against changes to kernel mappings of the GTT
Chris Wilson [Sun, 26 Aug 2012 20:22:14 +0000 (21:22 +0100)]
intel_gtt: Harden against changes to kernel mappings of the GTT

Rather than use the common mmio segment which will be in future
restricted to just the registers and so exclude the GTT portion on all
architectures, explicitly mmap the GTT ourselves. Repeat this mmapping
with a couple of flags until we matching the existing kernel mapping.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agos/NO_PID/NOP_ID
Daniel Vetter [Fri, 24 Aug 2012 22:01:27 +0000 (00:01 +0200)]
s/NO_PID/NOP_ID

Alan typo'ed it, I've failed to notice :(

11 years agoAdd --disable-nouveau option for platforms without nouveau support
Alan Coopersmith [Fri, 24 Aug 2012 21:02:04 +0000 (14:02 -0700)]
Add --disable-nouveau option for platforms without nouveau support

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoflip_test: add cast to pacify Solaris Studio compiler
Alan Coopersmith [Fri, 24 Aug 2012 21:02:03 +0000 (14:02 -0700)]
flip_test: add cast to pacify Solaris Studio compiler

Fixes build error:
"flip_test.c", line 180: improper pointer/integer combination: op "="

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoRename NOPID to NO_PID to avoid conflict with Solaris NOPID
Alan Coopersmith [Fri, 24 Aug 2012 21:02:02 +0000 (14:02 -0700)]
Rename NOPID to NO_PID to avoid conflict with Solaris NOPID

Solaris <sys/types.h> already has #define NOPID (pid_t)(-1)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoFall back to CLOCK_MONOTONIC on systems without CLOCK_MONOTONIC_RAW
Alan Coopersmith [Fri, 24 Aug 2012 21:02:01 +0000 (14:02 -0700)]
Fall back to CLOCK_MONOTONIC on systems without CLOCK_MONOTONIC_RAW

Solaris has not yet adopted this Linux extension

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoRevert "tests: disable nouveau if unavailable"
Daniel Vetter [Fri, 24 Aug 2012 21:18:48 +0000 (23:18 +0200)]
Revert "tests: disable nouveau if unavailable"

This reverts commit dd8325323bfcca1f742e864ca7d87101a0d59936.

I like the patch from Alan Coopersmith with an explicit disable
option better.

11 years agotests: disable nouveau if unavailable
Maarten Lankhorst [Fri, 24 Aug 2012 20:55:20 +0000 (22:55 +0200)]
tests: disable nouveau if unavailable

11 years agotests/prime_nv_test: add missing call for test8
Maarten Lankhorst [Fri, 24 Aug 2012 20:50:21 +0000 (22:50 +0200)]
tests/prime_nv_test: add missing call for test8

11 years agotests/prime_nv_pcopy: kill debug code that's not upstream
Maarten Lankhorst [Fri, 24 Aug 2012 20:49:40 +0000 (22:49 +0200)]
tests/prime_nv_pcopy: kill debug code that's not upstream

11 years agotests/prime_nv: don't enable buffer reuse
Daniel Vetter [Fri, 24 Aug 2012 13:45:09 +0000 (15:45 +0200)]
tests/prime_nv: don't enable buffer reuse

We share these suckers, hence the fd-local libdrn instance does not
have full control over the lifecycle of the object. Prevents the tests
from blowing up with

[drm:i915_gem_mmap_gtt] *ERROR* Attempting to mmap a purgeable buffer

and similar things.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoConverted a display debug script for use by designers
Ben Widawsky [Thu, 23 Aug 2012 18:37:09 +0000 (11:37 -0700)]
Converted a display debug script for use by designers

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agointel_reg_read: use strtol instead of atoi
Ben Widawsky [Thu, 23 Aug 2012 18:32:57 +0000 (11:32 -0700)]
intel_reg_read: use strtol instead of atoi

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agointel_reg_read: support -c option to read multiple dwords
Ben Widawsky [Thu, 23 Aug 2012 18:29:43 +0000 (11:29 -0700)]
intel_reg_read: support -c option to read multiple dwords

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
11 years agotools: Added intel_dpio_read and intel_dpio_write
Vijay Purushothaman [Fri, 17 Aug 2012 12:36:52 +0000 (18:06 +0530)]
tools: Added intel_dpio_read and intel_dpio_write

In Valleyview the DPLL and lane control registers are accessible only
through side band fabric called DPIO. Added two tools to read and write
registers residing in this space.

v2: Moved the core read/write functions to lib/intel_dpio.c based on
Ben's feedback

Signed-off-by: Vijay Purushothaman <vijay.a.purushothaman@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agotests: add gem_gtt_cpu_tlb
Daniel Vetter [Wed, 15 Aug 2012 08:26:08 +0000 (10:26 +0200)]
tests: add gem_gtt_cpu_tlb

This catches tlb invalidation issues on my snb mobile gt2+

11 years agointel_audio_dump: add Haswell audio dump support
Wang Xingchao [Wed, 15 Aug 2012 08:13:38 +0000 (16:13 +0800)]
intel_audio_dump: add Haswell audio dump support

Add Haswell audio registers definition and dump support.

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agointel_audio_dump: fix wrong port definition
Wang Xingchao [Wed, 15 Aug 2012 08:13:37 +0000 (16:13 +0800)]
intel_audio_dump: fix wrong port definition

there're three Ports B/C/D used for selection by each transcoder A/B/C.

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agoFixup previous commit
Maarten Lankhorst [Tue, 14 Aug 2012 16:51:19 +0000 (18:51 +0200)]
Fixup previous commit

ENODEV not being defined and return code wrong

11 years agoAnd add another corner case skip
Maarten Lankhorst [Tue, 14 Aug 2012 16:50:29 +0000 (18:50 +0200)]
And add another corner case skip

11 years agofix crash with insufficient permissions
Maarten Lankhorst [Tue, 14 Aug 2012 16:48:48 +0000 (18:48 +0200)]
fix crash with insufficient permissions

11 years agosatisfy danvet's OC
Maarten Lankhorst [Tue, 14 Aug 2012 16:25:50 +0000 (18:25 +0200)]
satisfy danvet's OC

and add skip codes, but mostly satisfy danvet's OCD

11 years agoAdd intel <-> nouveau prime tests
Maarten Lankhorst [Mon, 13 Aug 2012 13:57:57 +0000 (15:57 +0200)]
Add intel <-> nouveau prime tests

11 years agotools/reg_dumper: really dump pipe C regs
Daniel Vetter [Tue, 7 Aug 2012 16:16:34 +0000 (18:16 +0200)]
tools/reg_dumper: really dump pipe C regs

Not just a copy of pipe B. Meh.

Also kill a few redudant #define for pipe B - they match pipe A.

11 years agoUpdate the image file pass.png with higher correction level
Yi Sun [Wed, 8 Aug 2012 06:35:20 +0000 (14:35 +0800)]
Update the image file pass.png with higher correction level

Signed-off-by: Yi Sun <yi.sun@intel.com>
11 years agotests/testdisplay.c Remove an uncomfortable error output
Yi Sun [Wed, 8 Aug 2012 06:32:04 +0000 (14:32 +0800)]
tests/testdisplay.c Remove an uncomfortable error output

Signed-off-by: Yi Sun <yi.sun@intel.com>
11 years agolib: add more Haswell PCI IDs
Paulo Zanoni [Mon, 6 Aug 2012 18:05:28 +0000 (15:05 -0300)]
lib: add more Haswell PCI IDs

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
11 years agotools/reg_dumper: dump pipe C regs
Daniel Vetter [Tue, 7 Aug 2012 12:50:54 +0000 (14:50 +0200)]
tools/reg_dumper: dump pipe C regs

Also reorder the pipe B regs a bit to be consisten with pipe A.

11 years agotests/gem_reg_read: actually wait a bit between reading TIMESTAMP reg
Daniel Vetter [Sun, 5 Aug 2012 19:40:56 +0000 (21:40 +0200)]
tests/gem_reg_read: actually wait a bit between reading TIMESTAMP reg

QA could only hit this on ilk because the timer increase quite a bit
slower on that platform than on gen6+ (80ns vs 320ns, iirc).

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52937

11 years agotests/testdisplay.c: Add a option '-r'.
Yi Sun [Thu, 26 Jul 2012 06:23:36 +0000 (14:23 +0800)]
tests/testdisplay.c: Add a option '-r'.

With the option '-r', the testdisplay could paint a 2-D bar code(QR
bar code) on the screen. The word "pass" is hiden in the bar code
image.  Further more, with this option, testdisplay will wait until a
system signal 'SIGUSR1' coming after each mode setting. This function
is for another program to control testdisplay.

danvet: Fix up the missing static.

Signed-off-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
11 years agobuild: Make autoreconf honour ACLOCAL_FLAGS
Damien Lespiau [Wed, 25 Jul 2012 15:04:32 +0000 (16:04 +0100)]
build: Make autoreconf honour ACLOCAL_FLAGS

When running autoreconf, it's possible to give flags to the underlying
aclocal by declaring a ACLOCAL_AMFLAGS variable in the top level
Makefile.am.

Putting ${ACLOCAL_FLAGS} there allows the user to set an environment
variable up before running autogen.sh and pull in the right directories
to look for m4 macros, say an up-to-date version of the xorg-util macros.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
12 years agotest/flip_test: don't fail if we can't find a crtc
Daniel Vetter [Tue, 22 May 2012 17:55:21 +0000 (19:55 +0200)]
test/flip_test: don't fail if we can't find a crtc

some connectors are forced to certain crcs ...

12 years agotests: fixup prime test paranoia
Daniel Vetter [Mon, 23 Jul 2012 09:25:47 +0000 (11:25 +0200)]
tests: fixup prime test paranoia

12 years agotests/prime: more paranoia
Daniel Vetter [Mon, 23 Jul 2012 08:06:25 +0000 (10:06 +0200)]
tests/prime: more paranoia

- check the old contents first in check_bo
- drop all GEM handles for the re-import test

12 years agotests: add missing stuff to .gitignore
Daniel Vetter [Mon, 23 Jul 2012 07:51:12 +0000 (09:51 +0200)]
tests: add missing stuff to .gitignore

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: add basic re-importing prime test
Daniel Vetter [Mon, 23 Jul 2012 07:49:06 +0000 (09:49 +0200)]
tests: add basic re-importing prime test

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: s/drm_reg_read/gem_reg_read
Daniel Vetter [Mon, 23 Jul 2012 04:41:10 +0000 (06:41 +0200)]
tests: s/drm_reg_read/gem_reg_read

gem_ is the prefix for low-level kernel tests, drm_ tests
libdrm_intel specific stuff.

12 years agoshut up the compiler a bit
Daniel Vetter [Sat, 21 Jul 2012 15:36:36 +0000 (17:36 +0200)]
shut up the compiler a bit

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agoreg_read: use good offset, and errno
Ben Widawsky [Sun, 22 Jul 2012 23:30:04 +0000 (16:30 -0700)]
reg_read: use good offset, and errno

The test was bonghits.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoreg_read: skip older kernels
Ben Widawsky [Wed, 18 Jul 2012 18:47:42 +0000 (11:47 -0700)]
reg_read: skip older kernels

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoreg_read: basic register read ioctl test
Ben Widawsky [Thu, 12 Jul 2012 00:06:01 +0000 (17:06 -0700)]
reg_read: basic register read ioctl test

This will need to get modified when the ioctl expands, and so is only
here for reference/to make Daniel happy.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotests: improve concurrent blit tests
Daniel Vetter [Fri, 13 Jul 2012 08:35:11 +0000 (10:35 +0200)]
tests: improve concurrent blit tests

By adding another testcase that follows up with a gpu read. This
checks whether the kernel properly tracks the pending write and
doesn't lose it (or sync up to the wrong seqno).

For some odd reason only the cpu mmap variant blows up, the gtt one
works here. I need to look into that some more.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agogem_ctx_basic: fixes
Ben Widawsky [Tue, 3 Jul 2012 18:04:05 +0000 (11:04 -0700)]
gem_ctx_basic: fixes

I must have checked in the wrong version the first time.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoctx_basic: we stopped using rendercopy
Ben Widawsky [Tue, 3 Jul 2012 17:40:32 +0000 (10:40 -0700)]
ctx_basic: we stopped using rendercopy

so get rid of the remants. perhaps we'll use it again someday.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agorendercopy_gen7: add support for haswell
Ben Widawsky [Sun, 1 Jul 2012 02:26:59 +0000 (19:26 -0700)]
rendercopy_gen7: add support for haswell

Only compile tested.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agocontext_basic: the most stressful context test to date.
Ben Widawsky [Thu, 14 Jun 2012 18:04:01 +0000 (11:04 -0700)]
context_basic: the most stressful context test to date.

this context test requiring libdrm updates

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agocontext: libdrm wrappers
Ben Widawsky [Sun, 15 Jan 2012 22:52:33 +0000 (14:52 -0800)]
context: libdrm wrappers

This wraps libdrm functionality to exec with contexts. This patch
shouldn't be applied until libdrm for contexts is updated.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agointel: update libdrm requirement
Ben Widawsky [Fri, 29 Jun 2012 18:23:34 +0000 (11:23 -0700)]
intel: update libdrm requirement

We want context APIs in order to use our super context test.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agogem_stress: use the gen7 rendercopy
Ben Widawsky [Fri, 29 Jun 2012 05:43:47 +0000 (22:43 -0700)]
gem_stress: use the gen7 rendercopy

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agolib: add a gen7 rendercopy
Ben Widawsky [Fri, 29 Jun 2012 05:42:58 +0000 (22:42 -0700)]
lib: add a gen7 rendercopy

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoctx_bad_destroy: danvet changed to ENOENT
Ben Widawsky [Wed, 27 Jun 2012 18:13:23 +0000 (11:13 -0700)]
ctx_bad_destroy: danvet changed to ENOENT

In all fairness if the test worked, he would have found this earlier

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoctx_bad_destroy - ioctl is 2e, not 23
Ben Widawsky [Wed, 27 Jun 2012 18:13:06 +0000 (11:13 -0700)]
ctx_bad_destroy - ioctl is 2e, not 23

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agoctx_bad_destroy: a little more description is nice
Ben Widawsky [Wed, 27 Jun 2012 18:07:09 +0000 (11:07 -0700)]
ctx_bad_destroy: a little more description is nice

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotests/gem_wait_rendering_timeout: needs more fudge
Daniel Vetter [Tue, 26 Jun 2012 17:47:30 +0000 (19:47 +0200)]
tests/gem_wait_rendering_timeout: needs more fudge

Due to the way we calculate the workload by doubling it each time we
might end up with almost twice as much as we want. Hence increase our
fudge by 1.5 to account for that.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50666

12 years agointel_reg_dumper: use intel_register_access_init/fini
Eugeni Dodonov [Thu, 21 Jun 2012 17:31:34 +0000 (14:31 -0300)]
intel_reg_dumper: use intel_register_access_init/fini

We need to hold forcewake lock in order to be able to read GT registers.
Otherwise, when the GPU is in RC6 mode, we'll read all zeros.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agocontext tests not requiring libdrm
Ben Widawsky [Thu, 14 Jun 2012 17:00:57 +0000 (10:00 -0700)]
context tests not requiring libdrm

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agocontext: update for new execbuf2 element
Ben Widawsky [Mon, 19 Mar 2012 01:42:44 +0000 (18:42 -0700)]
context: update for new execbuf2 element

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agointel_reg_dumper: dump more PM registers
Eugeni Dodonov [Wed, 13 Jun 2012 18:34:40 +0000 (15:34 -0300)]
intel_reg_dumper: dump more PM registers

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agoadd VLV PCI ID
Jesse Barnes [Mon, 11 Jun 2012 19:08:32 +0000 (12:08 -0700)]
add VLV PCI ID

This allows the tests to run on the prototype boards.

12 years agotests/debgufs_emon_crash: make it quiet
Daniel Vetter [Fri, 8 Jun 2012 17:35:19 +0000 (19:35 +0200)]
tests/debgufs_emon_crash: make it quiet

12 years agointel_reg_dumper: dump pre-pch-split blc regs
Daniel Vetter [Thu, 7 Jun 2012 14:37:02 +0000 (16:37 +0200)]
intel_reg_dumper: dump pre-pch-split blc regs

12 years agotest/gem_gtt_speed: Add a baseline test for the performance of a CPU mmap
Chris Wilson [Mon, 4 Jun 2012 16:29:20 +0000 (17:29 +0100)]
test/gem_gtt_speed: Add a baseline test for the performance of a CPU mmap

When looking at the pwrite/pread/wc performance, it is useful to judge
that against the performance of an ordinary CPU mmap.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotest/sysfs_l3_parity: skip test if the sysfs interface doesn't exist
Daniel Vetter [Thu, 31 May 2012 13:45:17 +0000 (15:45 +0200)]
test/sysfs_l3_parity: skip test if the sysfs interface doesn't exist

12 years agotest/sysfs_l3_parity: fixup logic
Daniel Vetter [Thu, 31 May 2012 13:45:17 +0000 (15:45 +0200)]
test/sysfs_l3_parity: fixup logic

It didn't fail properly.

12 years agocleanups after l3_parity merge
Daniel Vetter [Thu, 31 May 2012 11:49:32 +0000 (13:49 +0200)]
cleanups after l3_parity merge

- call it sysfs_l3_parity for more consistency
- add .gitignore for intel_l3_parity

12 years agotests/dpf: simple dpf test
Ben Widawsky [Fri, 25 May 2012 23:56:27 +0000 (16:56 -0700)]
tests/dpf: simple dpf test

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotools/dpf: Tool to read and write l3 remap registers.
Ben Widawsky [Fri, 25 May 2012 23:56:26 +0000 (16:56 -0700)]
tools/dpf: Tool to read and write l3 remap registers.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotests/gem_wait_rendering_timeout: check polling behaviour
Daniel Vetter [Wed, 30 May 2012 18:16:24 +0000 (20:16 +0200)]
tests/gem_wait_rendering_timeout: check polling behaviour

... with timeout=0. We have special code in the kernel to optimize
that one.

12 years agolib/gem_wait_rendering_timeout: sprinkle busy_ioctl checks
Daniel Vetter [Tue, 29 May 2012 20:23:14 +0000 (22:23 +0200)]
lib/gem_wait_rendering_timeout: sprinkle busy_ioctl checks

While we have that testcase, let's cross-check the busy ioctl.

12 years agolib: fix gen5 workaround emission
Daniel Vetter [Tue, 29 May 2012 20:14:06 +0000 (22:14 +0200)]
lib: fix gen5 workaround emission

Using BEGIN_BATCH can lead to a nice inf recursion through require_space
-> flush_batch -> BEGIN_BATCH.

Also fix things up to always require BATCH_RESERVED. We need 2 dwords
for the gen5 workaround and 2 dwords for MI_BB_END.

12 years agotests/gem_wait_rendering_timeout: test the timeout case
Daniel Vetter [Tue, 29 May 2012 14:52:23 +0000 (16:52 +0200)]
tests/gem_wait_rendering_timeout: test the timeout case

When I've first tried this it somehow failed, but I can't reproduce
this any more. I guess I've hunted a ghost.

12 years agotests/gem_wait_rendering_timeout: fix up the autotuner
Daniel Vetter [Tue, 29 May 2012 14:49:41 +0000 (16:49 +0200)]
tests/gem_wait_rendering_timeout: fix up the autotuner

duuh

12 years agotests/gem_wait_rendering_timout: adjust .gitignore
Daniel Vetter [Tue, 29 May 2012 14:35:35 +0000 (16:35 +0200)]
tests/gem_wait_rendering_timout: adjust .gitignore

12 years agotests/get_wait_rendering_timeout: fixup the auto-tuner
Daniel Vetter [Tue, 29 May 2012 14:35:11 +0000 (16:35 +0200)]
tests/get_wait_rendering_timeout: fixup the auto-tuner

- start at 1 iterations
- actually adjust the number of iterations like the comment claims

12 years agotests/gem_wait_rendering_timeout: some fixes for the blt function
Daniel Vetter [Tue, 29 May 2012 14:34:32 +0000 (16:34 +0200)]
tests/gem_wait_rendering_timeout: some fixes for the blt function

- widht/height are in pixel, and the cmd uses 32bit, so we need to
  adjust this.
- we write to the buffer, set the right reloc domain.

12 years agotests/gem_wait_rendering_timeout: properly skip test
Daniel Vetter [Tue, 29 May 2012 14:23:41 +0000 (16:23 +0200)]
tests/gem_wait_rendering_timeout: properly skip test

also assign the timeout value unconditionally, we want to know it even
when we've timeout out.

12 years agotests/gem_wait_rendering_timeout: make it compile
Daniel Vetter [Tue, 29 May 2012 14:14:31 +0000 (16:14 +0200)]
tests/gem_wait_rendering_timeout: make it compile

... we need to do this libdrm depency dance. Or just copy&paste it.

12 years agotests/wait render timeout test
Ben Widawsky [Fri, 11 May 2012 20:54:12 +0000 (13:54 -0700)]
tests/wait render timeout test

Assures that signals interrupting the wait works properly. Because of
the scheduling around signals, interrupted waits will *seem* faster as
the GPU continues to work while all the CPU scheduling stuff happens.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
12 years agotests: fixup type in module_reload
Daniel Vetter [Fri, 25 May 2012 09:29:28 +0000 (11:29 +0200)]
tests: fixup type in module_reload

Oops, I've frobbed this to test the check but committed the wrong
version.

12 years agotests: add some help to module_reload
root [Fri, 25 May 2012 09:26:53 +0000 (11:26 +0200)]
tests: add some help to module_reload

... so that it's easier to get the kernel configuration right.

12 years agotests: add module reload testcase
root [Fri, 25 May 2012 09:02:09 +0000 (11:02 +0200)]
tests: add module reload testcase

We've broken this way too often in the past.

12 years agotests/hangman: fix when run with absolute path
Daniel Vetter [Wed, 23 May 2012 09:37:04 +0000 (11:37 +0200)]
tests/hangman: fix when run with absolute path

QA's test rig does that.

12 years agotest/flip_test: fail harder
Daniel Vetter [Tue, 22 May 2012 17:54:22 +0000 (19:54 +0200)]
test/flip_test: fail harder

We want testcase to return non-zero if they fail ...

12 years agolib: extract kmstest_dump_mode
Daniel Vetter [Tue, 22 May 2012 14:15:15 +0000 (16:15 +0200)]
lib: extract kmstest_dump_mode

12 years agotest/flip_test: use kmstest_create_fb
Daniel Vetter [Tue, 22 May 2012 14:01:32 +0000 (16:01 +0200)]
test/flip_test: use kmstest_create_fb

And bring back some frame indication that actually works.

12 years agolib: extract kmstest_create_fb
Daniel Vetter [Tue, 22 May 2012 12:37:19 +0000 (14:37 +0200)]
lib: extract kmstest_create_fb

We should get more kms tests soon, and not needing to copy-paste a
nice test pattern should be useful.

That establishes a firm depency of i-g-t on cairo over everything, but
I don't care so much about that.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests: use drm_open_any more
Daniel Vetter [Tue, 22 May 2012 10:01:36 +0000 (12:01 +0200)]
tests: use drm_open_any more

And fix it up to not leak open fds, which kills all the master only
stuff.

12 years agotests/flip_test: rip out usage
Daniel Vetter [Tue, 22 May 2012 08:57:17 +0000 (10:57 +0200)]
tests/flip_test: rip out usage

Totally useless if the only option is "-h"

12 years agotests: add flip_test to .gitignore
Daniel Vetter [Tue, 22 May 2012 08:53:38 +0000 (10:53 +0200)]
tests: add flip_test to .gitignore

12 years agotests/flip_test: rip out funny pictures
Daniel Vetter [Tue, 22 May 2012 08:51:29 +0000 (10:51 +0200)]
tests/flip_test: rip out funny pictures

The path isn't properly autodetected and it yells stupid stuff into
stderr. Which causes spurious failures.

And really, these are automated tests. If you need to look at the output,
something is wrong.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agointel_infoframes: options -p and -P require an argument
Paulo Zanoni [Fri, 27 Apr 2012 19:14:34 +0000 (16:14 -0300)]
intel_infoframes: options -p and -P require an argument

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
12 years agointel_gpu_top: allow to work on Gen7
Eugeni Dodonov [Wed, 16 May 2012 13:14:55 +0000 (10:14 -0300)]
intel_gpu_top: allow to work on Gen7

Somehow nobody noticed this before, but we were missing blt and bsd6
initialization on Gen7.

Reported-by: Philippe Lecluse <philippe.lecluse@intel.com>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
12 years agotests/gtt_speed: try to outwit gcc
Daniel Vetter [Thu, 10 May 2012 18:25:33 +0000 (20:25 +0200)]
tests/gtt_speed: try to outwit gcc

It optimized away the read loops ;-)

Also fix up the size to not be 1/4th of the one we want for tiled
buffer tests.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
12 years agotests/gem_tiled_pread_pwrite fix progname for pretty print progress
Chris Wilson [Wed, 9 May 2012 13:06:28 +0000 (14:06 +0100)]
tests/gem_tiled_pread_pwrite fix progname for pretty print progress

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
12 years agointel_error_decode: Be more lax for whitespace around parsing PCI-ID
Chris Wilson [Wed, 9 May 2012 12:50:53 +0000 (13:50 +0100)]
intel_error_decode: Be more lax for whitespace around parsing PCI-ID

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>