747 Commits

Author SHA1 Message Date
Daniel Vetter
81f16261f4 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
2012-08-05 21:40:56 +02:00
Yi Sun
41fe811feb 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>
2012-07-26 15:01:08 +02:00
Damien Lespiau
3b0f80308a 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>
2012-07-25 17:59:58 +02:00
Daniel Vetter
efa5e355ac test/flip_test: don't fail if we can't find a crtc
some connectors are forced to certain crcs ...
2012-07-23 13:38:40 +02:00
Daniel Vetter
c832aa1714 tests: fixup prime test paranoia 2012-07-23 11:25:47 +02:00
Daniel Vetter
5d9e22366b tests/prime: more paranoia
- check the old contents first in check_bo
- drop all GEM handles for the re-import test
2012-07-23 10:06:25 +02:00
Daniel Vetter
796f6193c9 tests: add missing stuff to .gitignore
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Daniel Vetter
6bc22e3dfd tests: add basic re-importing prime test
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Daniel Vetter
fb748aad4c tests: s/drm_reg_read/gem_reg_read
gem_ is the prefix for low-level kernel tests, drm_ tests
libdrm_intel specific stuff.
2012-07-23 09:52:10 +02:00
Daniel Vetter
434be47f12 shut up the compiler a bit
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-07-23 09:52:10 +02:00
Ben Widawsky
4c9abd5aa4 reg_read: use good offset, and errno
The test was bonghits.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-22 16:30:04 -07:00
Ben Widawsky
58cfeabb90 reg_read: skip older kernels
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-18 11:47:42 -07:00
Ben Widawsky
4fe7869539 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>
2012-07-18 11:30:12 -07:00
Daniel Vetter
d9fb72e266 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>
2012-07-13 10:35:11 +02:00
Ben Widawsky
fbd6d04959 gem_ctx_basic: fixes
I must have checked in the wrong version the first time.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-07-03 11:04:05 -07:00
Ben Widawsky
e843c55370 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>
2012-07-03 10:40:32 -07:00
Ben Widawsky
cbb3c685b5 rendercopy_gen7: add support for haswell
Only compile tested.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-30 19:32:33 -07:00
Ben Widawsky
afcffe783a context_basic: the most stressful context test to date.
this context test requiring libdrm updates

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-29 11:25:03 -07:00
Ben Widawsky
a635a5ac3b 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>
2012-06-29 11:24:52 -07:00
Ben Widawsky
c157e9485e intel: update libdrm requirement
We want context APIs in order to use our super context test.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-29 11:24:47 -07:00
Ben Widawsky
beb1bb8fd2 gem_stress: use the gen7 rendercopy
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-28 22:52:04 -07:00
Ben Widawsky
2234f87a08 lib: add a gen7 rendercopy
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-28 22:52:04 -07:00
Ben Widawsky
ab0460eaac 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>
2012-06-27 11:13:23 -07:00
Ben Widawsky
278e53b5c4 ctx_bad_destroy - ioctl is 2e, not 23
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-27 11:13:06 -07:00
Ben Widawsky
1136f61298 ctx_bad_destroy: a little more description is nice
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-27 11:07:09 -07:00
Daniel Vetter
76b53ef68d 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
2012-06-26 19:47:30 +02:00
Eugeni Dodonov
c6fe31bc47 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>
2012-06-21 14:31:34 -03:00
Ben Widawsky
f7e356d9cd context tests not requiring libdrm
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-18 12:06:45 -07:00
Ben Widawsky
5a28ef8580 context: update for new execbuf2 element
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-06-14 10:15:42 -07:00
Eugeni Dodonov
b28a399dcd intel_reg_dumper: dump more PM registers
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2012-06-13 15:50:44 -03:00
Jesse Barnes
34240176c1 add VLV PCI ID
This allows the tests to run on the prototype boards.
2012-06-11 12:08:32 -07:00
Daniel Vetter
b015a25e89 tests/debgufs_emon_crash: make it quiet 2012-06-08 19:35:19 +02:00
Daniel Vetter
9739401fb5 intel_reg_dumper: dump pre-pch-split blc regs 2012-06-07 16:37:02 +02:00
Chris Wilson
77586dcdf7 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>
2012-06-04 17:50:51 +01:00
Daniel Vetter
b558877f6e test/sysfs_l3_parity: skip test if the sysfs interface doesn't exist 2012-05-31 15:58:29 +02:00
Daniel Vetter
4cf1b02e96 test/sysfs_l3_parity: fixup logic
It didn't fail properly.
2012-05-31 15:45:17 +02:00
Daniel Vetter
55fdd7f1bb cleanups after l3_parity merge
- call it sysfs_l3_parity for more consistency
- add .gitignore for intel_l3_parity
2012-05-31 15:20:12 +02:00
Ben Widawsky
dac1a2ceda tests/dpf: simple dpf test
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-31 15:20:12 +02:00
Ben Widawsky
8f7ea34751 tools/dpf: Tool to read and write l3 remap registers.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-05-31 15:20:12 +02:00
Daniel Vetter
a35dcac0ff tests/gem_wait_rendering_timeout: check polling behaviour
... with timeout=0. We have special code in the kernel to optimize
that one.
2012-05-30 20:16:24 +02:00
Daniel Vetter
b8e00110a0 lib/gem_wait_rendering_timeout: sprinkle busy_ioctl checks
While we have that testcase, let's cross-check the busy ioctl.
2012-05-29 22:23:14 +02:00
Daniel Vetter
bfbe813f8f 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.
2012-05-29 22:14:06 +02:00
Daniel Vetter
04dfa492d1 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.
2012-05-29 17:35:21 +02:00
Daniel Vetter
b711bfe54f tests/gem_wait_rendering_timeout: fix up the autotuner
duuh
2012-05-29 16:49:41 +02:00
Daniel Vetter
95877ab9ce tests/gem_wait_rendering_timout: adjust .gitignore 2012-05-29 16:35:35 +02:00
Daniel Vetter
2952feb23f tests/get_wait_rendering_timeout: fixup the auto-tuner
- start at 1 iterations
- actually adjust the number of iterations like the comment claims
2012-05-29 16:35:30 +02:00
Daniel Vetter
cf979c2063 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.
2012-05-29 16:34:32 +02:00
Daniel Vetter
25bf5574a2 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.
2012-05-29 16:24:04 +02:00
Daniel Vetter
f14a045137 tests/gem_wait_rendering_timeout: make it compile
... we need to do this libdrm depency dance. Or just copy&paste it.
2012-05-29 16:14:31 +02:00
Ben Widawsky
9cfcb75b79 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>
2012-05-25 13:08:28 +02:00