summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2013-02-18tests: Forbid to run the blit tests with count of 1Damien Lespiau
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>
2013-02-13tests: Add a quick variant to the gem_storedw_* testsDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-02-13tests/testdisplay.c: Remove the variable only_one_mode.Yi Sun
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>
2013-02-07configure: slightly more standard --disable-testsBen Widawsky
Cc: Julien Cristau <jcristau@debian.org> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-02-05tests/gem_ctx_exec: properly test destroy_ctx ioctlMika Kuoppala
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>
2013-01-30kms_flip: Add flip-vs-modeset-vs-hang testVille Syrjälä
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>
2013-01-30kms_flip: Make flip events optionalVille Syrjälä
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>
2013-01-17tests/gem_lut_handle: Limit testing LUT interface to recent kernelsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-17tests/gem_lut_handle: Expand negative testingChris Wilson
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>
2013-01-17tests: Benchmark new API for using a LUT with the execbufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-17tests: Exercise new API for using a LUT with the execbufferChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-14tests/testdisplay.c: Fix the issue which don't display anything until '-o' ↵Yi Sun
given. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-01-08tests/gem_seqno_wrap: skip if debugfs entry is not thereMika Kuoppala
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>
2013-01-07tests: Add basic testing of gem_pinChris Wilson
Including exercising races versus interrupts. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-27tests/testdisplay: Specify the display.Yi Sun
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>
2012-12-21tests/gem_seqno_wrap: adapt to new next_seqno debugfs interfaceMika Kuoppala
- 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>
2012-12-20tests/prime_nv_pcopy: guard output for subtest listingDaniel Vetter
2012-12-20intel/udl tests;Dave Airlie
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.]
2012-12-20tests: add testcase to check igt runtime enviromentDaniel Vetter
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>
2012-12-18kms_flip: Add -lrt backVille Syrjälä
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>
2012-12-18tests/kms_flip: don't die on stdin inputDaniel Vetter
Seems to be a leftover from fliptest ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17lib: extract kmstest_get_pipe_from_crtc_idDaniel Vetter
2012-12-17tests/gem_flink: enable flink lifetime subtestDaniel Vetter
Somehow fumbled this. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17tests: s/flip_test/kms_flipDaniel Vetter
OCD wins! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17tests/flip_test: add flip vs. rmfb testcaseDaniel Vetter
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>
2012-12-17flip_test: recreate fbDaniel Vetter
... 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>
2012-12-17tests/flip_test: split out timestamp checks into subtestDaniel Vetter
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>
2012-12-16tests/gem_seqno_wrap.c: include <signal.h> for definition of kill()Alan Coopersmith
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>
2012-12-15tests/prime_nv_pcopy: convert to subtestsDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-15tests/prime_nv_tests: convert to subtestsDaniel Vetter
And properly fail the failing ones - bloody hate it when the tests lie to me ...
2012-12-13tests/gem_seqno_wrap: dont sync when crossing half of seqno spaceMika Kuoppala
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
2012-12-13flip_test: fix link error due to missing -lrtImre Deak
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>
2012-12-12tests/gem_*_tiled_blits: Use the vma limiter to present address space exhaustionChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=58113 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-12tests/gem_tiled_pread_pwrite: Allow the kernel to reap the GTT address spaceChris Wilson
Otherwise we can not run this test on 32-bit systems. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-12tests/gem_tiled_swapping: Don't needless crash on 32-bit systemsChris Wilson
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>
2012-12-10tests/prime_nv_pcopy.c: fail if nouveau_pushbuf_kick fails rather than spinningMaarten Lankhorst
2012-12-07tests: disable gem_exec_bad_domains/conflicting-write-domainDaniel Vetter
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
2012-12-06tests: Add a basic test for tiled render copiesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-06tests: Add basic test for render blitsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-05tests/gem_exec_nop: implemented correct SKIP reportingDaniel Vetter
I think I need a testsuite for test writing.
2012-12-05tests/gem_dummy_reloc_loop: some updatesDaniel Vetter
- convert to subtests - shut up stderr output for successful runs Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-05tests: fixup gem_exec_nop subtestsDaniel Vetter
Note to self: No more pushing after 12 o'clock midnight. Not a good idea, too embarassing.
2012-12-04tests: run no-op batches on all ringsDaniel Vetter
For Ben ...
2012-12-04tests: add gem_seqno_wrapMika Kuoppala
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>
2012-12-04tests/Makefile.am: Add a comment about the subtest infrastructureDaniel Vetter
2012-12-01tests/gem_flink: check flink lifetime rulesDaniel Vetter
flink names may not be destroyed while there's still a userspace handle around. Test this by - exporting an flink name from fd2 - open a gem bo from that name in fd - close fd2, then open a new drm file (so that the original handle disappears) - check whether the same flink name still works
2012-12-01tests/gem_exec_bad_domains: add more bad domainsDaniel Vetter
- mulitple write domains - conflicting write domains - not-yet-defined gpu domains Also convert to subtests while at it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-11-29tests/gem_stress: prevent segfault in getopt parsingDaniel Vetter
Needs a terminal element in the long option array.
2012-11-29lib: extract get_render_copyfuncDaniel Vetter
Otherwise we won't update all the tests if we add new render copyfuncs. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-11-29tests: disable gem_non_secure_batchDaniel Vetter
Seems to cause hangs on some of my old gen2/3 machines, but not all of them.