1959 Commits

Author SHA1 Message Date
Daniel Vetter
b9629f2d8d tests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04 13:57:51 +01:00
Daniel Vetter
28e3f9c606 tests/gem_reloc_vs_gpu: switch to COLOR_BLT instead of PIPE_CONTROL
Less fancy command that works everywhere. Suggested by Chris Wilons.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04 13:46:43 +01:00
Daniel Vetter
1c9cce9c45 tests/gem_tiled_pread_pwrite: kill set-but-unsed warning
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04 13:46:43 +01:00
Daniel Vetter
ad6be1f0c9 tests: add gem_reloc_vs_gpu
Tests whether the kernel properly waits for the gpu before
applying a reloc.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04 12:08:59 +01:00
Daniel Vetter
224d4d22f0 Revert some accidental things
... somehow slipped in.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02 20:40:03 +01:00
Daniel Vetter
f5854c8902 tests: add gem_exec_faulting_reloc
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02 20:36:06 +01:00
Daniel Vetter
ab3f4bdafe tests: add gem_exec_bad_domains
To check whether the kernel properly rejects non-gpu domains in
relocs.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02 18:41:34 +01:00
Daniel Vetter
783f16e328 tests: add gem_tiled_pread_pwrite
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02 10:55:56 +01:00
Daniel Vetter
2e88c4ce34 tests/gem_gtt_speed: Add modes that force that to the gtt domain
No sane userspace doesn't upload data to the gpu without actually
using it there ...

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-01 21:42:23 +01:00
Daniel Vetter
7af82bb0e5 tests: implement snb+ XY_SETUP_CLIP_BLT workaround
Better safe than sorry.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27 02:39:14 +01:00
Daniel Vetter
66b88b615c tests/sysfs_edit_reader: posixify
Debian's default sh complains ...

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27 01:55:42 +01:00
Daniel Vetter
8c7f8bcccb tests: properly terminate tests when values mismatch
Not much use running them in the test rig otherwise.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27 01:37:59 +01:00
Eugeni Dodonov
2f56e96177 tests/gem_hang: fix copy-paste problem
I suspect that we should do different things for different pipes..

Spotted by Thomas Jarosh on #intel-gfx freenode.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-11 11:17:59 -02:00
Eugeni Dodonov
faf413d875 tests: add a test for checking edid reading delays
With base on EDID timing testing, when we take more than 1s to run
xrandr command, something is wrong.. So add this test for testing the time
we take to read the status of all the connectors from sysfs. It should do
us an average picture of how long we'd take to run xrandr (roughtly 2x
that value).

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10 11:33:37 -02:00
Eugeni Dodonov
48186febf1 tests: add test for kernel segmentation fault
As asked by Daniel Vetter, this is a tech which checks if we can cause
division by zero in kernel by reading the i915_emon_status debugfs
entry repeatably.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10 11:33:05 -02:00
Daniel Vetter
f4ba3f529e tests: disable pipe_control on i965g
That hw is broken.

Reported-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-08 12:36:24 +01:00
Chris Wilson
4c7c94ad98 testdisplay: Round tiled allocations up to pot stride and fence size
Be simple and use the strictest requirements from gen2/3 with old
kernels so that this simply works everywhere.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42585
2011-11-04 13:25:45 +00:00
Jesse Barnes
9c29be40bc testdisplay: find planes for each pipe
Fixes a bug where we were masking against the wrong value.
2011-11-03 17:38:55 -07:00
Jesse Barnes
3afb7b22d6 testdisplay: update to new addfb2 definition 2011-11-03 17:38:55 -07:00
Daniel Vetter
593cb1874a always require libdrm
... and also add the missing files to lib/Makefile.am

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 17:04:44 +01:00
Daniel Vetter
37c6400734 tests/gem_tiled_pread: fixup detiler for gen2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 12:10:35 +01:00
Daniel Vetter
6b4f5c7ad8 tests/gem_largeobject: accomodate for puny apertures
... like on my i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01 11:52:53 +01:00
Daniel Vetter
3291023151 tests: mark gem_bad_address as HANG
Kills my little i855gm.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 23:19:08 +01:00
Daniel Vetter
efd3a5d0b5 tests/debugfs_reader: fight bashism
debian's dash doesn't like this.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 17:40:37 +01:00
Daniel Vetter
cc85c4efb7 tests: actually add the drm client check script
Ooops.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 16:08:02 +01:00
Daniel Vetter
d4cc95b457 tests: check for other drm clients
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31 16:07:02 +01:00
Daniel Vetter
899496ba41 tests/gem_bad_length: disable broken batchbuffer
Submitting random crap hangs the gpu. Suprise!

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 23:20:12 +01:00
Daniel Vetter
20ff3839e4 tests: don't run kernel check from make check
Add a new target test for that.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 22:27:19 +01:00
Daniel Vetter
91b3c7f333 make distcheck fixes
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 21:24:12 +01:00
Daniel Vetter
f361664df0 tests: add test to read all debugfs files
Catches a bunch of forcewake warnings on snb+

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 20:54:18 +01:00
Daniel Vetter
5b8bbc950d testdisplay: compile fix for !DRM_PLANES
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30 20:45:42 +01:00
Daniel Vetter
5ef806bb5d tests: add gem_unref_active_buffers
The crucial trick to reproduce the bug is that we need to have
a decent pile of active bos to retire. Because we unref the bo
after having it moved off the active list, our recursion depth
in fdo bug #42180 is limited by the number of active objects that
can retire at the same time.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42180
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28 17:40:23 +02:00
Jesse Barnes
1f4c37a6e9 testdisplay: allow overlay plane to be moved & scaled at runtime
For additional testing.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-28 18:06:23 +02:00
Jesse Barnes
234b5c40b1 testdisplay: add stub disable_planes() function
To fix the compile with non-plane libdrms.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-27 17:47:58 -07:00
Jesse Barnes
24e60385fe testdisplay: add sprite scaling and location support
Allow testdisplay to locate the sprite on the screen and potentially
scale it using different crtc width/height vs the source width/height
(determined by the resolution on the target pipe).

Also fix exit, making sure we properly disable all the planes.

Signed-off-by: Jesse Barnes <jbarnes@virtuougseek.org>
2011-10-24 17:18:42 +02:00
Daniel Vetter
1c6511f7fb tests: add gem_hangcheck_forcewake
Provokes the forcewake warning when the hangcheck runs and no
one waits for the gpu (and hence holds the dev->struct_mutex).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-16 21:14:03 +02:00
Daniel Vetter
2e9e27ce6b tests/gem_fence_trash: some retuning
We actually want to test lru behaviour, so do a bit of work with
the fence before yielding to the next thread (we use twice as many
fences as there are, so yielding always is pretty bad, no matter how
clever our fence stealing).

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-15 13:46:19 +02:00
Daniel Vetter
b75451838a tests/gem_*_blits: reduce buffer count to not trash swap
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-15 13:23:03 +02:00
Daniel Vetter
af6a25c187 tests: disable storedw tests on !render
According to docs, this should work with ppgtt and just convert to
noops otherwise. In reality, it hangs the machine.

So just disable these for the moment.

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-28 10:05:56 +02:00
Paulo Zanoni
17ceccedbf testdisplay: return 0 when successful
We use the "ret" variable to check function return values, and these
values are not necessarily 0 on the successful cases, so we need to
reset "ret" after we finish using it.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-16 22:21:52 +02:00
Paulo Zanoni
a167425b39 getstats: remove useless assertion
getstats.c:48:2: warning: comparison of unsigned expression >= 0 is
always true

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:39:44 +02:00
Paulo Zanoni
3ba12bbb2f testdisplay: remove wrong return statement
It seems that the kernel patches required by the TEST_PLANES feature are
still not upstream, so I didn't test this patch.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:29 +02:00
Paulo Zanoni
7ead7ba3e6 testdisplay: don't enter the main loop if dump_info or test_all_modes
If calls inside update_display fail, the function returns and we don't
quit the program if dump_info or test_all_modes. So we enter the main
loop and keep waiting for user input, even on cases where we are not
supposed to require user input. To fix this, we move the check to
outside the update_display function.  As a side effect, we also do
cleanup instead of just exit(0) and we return 1 in case update_display
failed.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:21 +02:00
Paulo Zanoni
9fe1148c4b testdisplay: test all modes if no option is provided
Previously, when called without any arguments, the application required
user input to finish.  However, testdisplay is ran by "make check", and
it is not a good idea to run a program that requires user input in "make
check". So we change the default behavior to something that doesn't
require user input. You can still access the previous behavior using the
"-m" argument.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:18 +02:00
Paulo Zanoni
19fef544eb testdisplay: fix compiler warnings
testdisplay.c:117:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:125:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:145:1: warning: comparison between signed and unsigned
integer expressions
testdisplay.c:1060:16: warning: comparison between signed and unsigned
integer expressions

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 19:38:04 +02:00
Daniel Vetter
733a1d9f34 tests/gem_mmap_gtt: also test gtt pwrite paths
This needs a properly pre-faulted dst bo.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15 18:47:21 +02:00
Daniel Vetter
ba2255a7e4 tests: build all tests by default
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 14:59:23 +02:00
Daniel Vetter
d6ac159ba1 tests: separate testcases in gem_bad_length
Creating a zero-length bo should fail, so check that. Still run
the minimal batchbuffer, but without the zero-length reloc.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 14:59:23 +02:00
Daniel Vetter
2c380c2eac tests: disable gem_bad_blit
Hangs gen3 and simply writes garbage into the unmappable part of
gtt on gen4+, which might cause issues later on.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14 11:06:03 +02:00
Daniel Vetter
bbe635f0dc tests/gem_bad_length: dont throw garbage at the gpu
It doesn't like it. Really.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13 21:05:10 +02:00