summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-01-19igt/gem_mmap_wc: Test cpu mmap vs wc mmap coherencyChris Wilson
Similar to the cpu mmap vs gtt mmap coherency test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-19gem_concurrent_all: Add a "quick" tiny passChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-19gem_concurrent_blit: Add a pread/pwrite variant to only set part of the bufferChris Wilson
The idea is to check partial cacheline reads/writes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-19gem_concurrent_blit: Don't call igt_require() outside of a subtest/fixtureChris Wilson
gem_concurrent_blit tries to ensure that it doesn't try and run a test that would grind the system to a halt, i.e. unexpectedly cause swap thrashing. It currently calls intel_require_memory(), but outside of the subtest (as the tests use fork, it cannot do requirement testing within the test children) - but intel_require_memory() calls igt_require() and triggers and abort. Wrapping that initial require within an igt_fixture() stops the abort(), but also prevents any further testing. This patch restructures the requirement checking to ordinary conditions, which though allowing the test to run, also prevents listing of subtests on machines which cannot handle them.
2016-01-17tests: Add basic gem_sync testChris Wilson
A very basic test of functionality, execute a nop and wait for it to complete. It should be very effective at stimulating the "missed interrupt syndrome" on all devices. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-16igt/gem_streaming_writes: Set the initial CPU write domainChris Wilson
Remove one assumption from the test and amek the domain management explict - when we write through the CPU to construction the batch, mark it as having been written. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-15tests: Add gem_busyChris Wilson
Exercise the busy-ioctl and verify it reports the right active engines using the execbuffer notation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-11tests/kms_chv_cursor_fail: Skip when the pipe doesn't existVille Syrjälä
Looks like I fumbled things when I made kms_chv_cursor_fail iterate over all pipes. It fails to check that the pipe actually exists, and so fails on < 3 pipe platforms. Add the necessary checks to skip on non-existing pipes. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08kms_psr_sink_crc: Simplify debugfs reading.Rodrigo Vivi
Let's start using igt_debugfs_read helper so we can change the debugfs interface at anytime. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2016-01-08tests/kms_flip: Increase TEST_TS_CONT max seq difference to 150Ville Syrjälä
During suspend tests we can exceed the current 100 frame difference in sequence numbers. Bump the limit to 150 frames. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/kms_pipe_crc_basic: Use igt_assert_eq() to see the failing frame countsVille Syrjälä
Use igt_assert_eq() to compare the frame numbers during the frame sequence tests so that we'll see exactly what the bad frame counts are when the test fails. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/gem_mmap_gtt: Make the small-bo tiling tests work on old platformsVille Syrjälä
Several factors conspire against us when trying to execute the tiled small-bo tests: - pre-gen4 require power of two fences, with natural alignment - the entire gtt may be mappable - we put a guard page at the end of gtt What all that means is that when we try to use a tiled object half the size of the mappable area, we can only fit it in the first half of the gtt. That leads to a SIGBUS when we try to fault in the object when there's already something (eg. fbdev) occupying the first half of gtt. So in order to make the tests run on old machines, let's further halve the object size when things look too tight. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/gem_mmap_gtt: Add progress indicatorsVille Syrjälä
Some of the copy tests take a while, so let the user know how far along we are via a progress indicator. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/gem_mmap_gtt: Deal with tile sizes on gen2/3Ville Syrjälä
Gen2/3 platforms have some unusual tile dimensions. Account for them to make the test work correctly. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08Fix a bunch of printf typesVille Syrjälä
igt_kms.c: In function ‘igt_crtc_set_background’: igt_kms.c:1940:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Wformat=] LOG(display, "%s.%d: crtc_set_background(%lu)\n", ^ intel_firmware_decode.c: In function ‘csr_open’: intel_firmware_decode.c:169:2: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 3 has type ‘__off_t’ [-Wformat=] printf("Firmware: %s (%zd bytes)\n", filename, st.st_size); ^ intel_gpu_top.c: In function ‘main’: intel_gpu_top.c:683:10: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=] stats[i] - last_stats[i]); ^ hsw_compute_wrpll.c: In function ‘main’: hsw_compute_wrpll.c:644:3: warning: format ‘%li’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=] igt_fail_on_f(ref->r2 != r2 || ref->n2 != n2 || ref->p != p, ^ gem_gtt_hog.c: In function ‘__real_main155’: gem_gtt_hog.c:177:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat=] igt_info("Time to execute %lu children: %7.3fms\n", ^ kms_flip.c: In function ‘run_test_step’: kms_flip.c:985:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 10 has type ‘__time_t’ [-Wformat=] igt_assert_f(end - start > 0.9 * frame_time(o) && ^ kms_flip.c:985:3: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 11 has type ‘__suseconds_t’ [-Wformat=] kms_frontbuffer_tracking.c: In function ‘setup_sink_crc’: kms_frontbuffer_tracking.c:1364:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘ssize_t’ [-Wformat=] igt_info("Unexpected sink CRC error, rc=:%ld errno:%d %s\n", ^ Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/kms_chv_cursor_fail: Add a test to exercise CHV pipe C cursor failVille Syrjälä
The test tries to anger CHV pipe C cursor by walking the edges of the screen while moving the cursor across the screen edge. The actual hw issue only occurs on pipe C, and only on the left screen edge. The testcase can walk all the edges though, and on all pipes, just so I could make sure the failure doesn't occur there. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/kms_pipe_crc_basic: Add tests for O_NONBLOCK CRC readsVille Syrjälä
v2: Rebased due to __attribute__((warn_unused_result)) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08lib: Add igt_pipe_crc_new_nonblock()Ville Syrjälä
Add support for reading the CRC in non-blocking mode. Useful for tests that want to start the CRC capture, then do a bunch of operations, then collect however many CRCs that got generated. The current igt_pipe_crc_new() + igt_pipe_crc_get_crcs() method would block until it gets the requested number of CRCs, whreas in non-blocking mode we can just read as many as got generated thus far. v2: __attribute__((warn_unused_result)), document the new igt_pipe_crc_get_crcs() return value (Daniel) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08lib: Extract some common fb create+fill methods into helpersVille Syrjälä
Several tests do one or more of the following: * igt_create_fb() + igt_paint_test_pattern() * igt_create_color_fb() + igt_paint_test_pattern() * igt_create_fb() + igt_paint_image() Extract them into new helpers: igt_create_pattern_fb(), igt_create_color_pattern_fb(), igt_create_image_fb(). v2: Fix typos, and improve API docs (Thomas) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-01-08tests/gem_softpin: Use offset addresses in canonical formMichel Thierry
i915 validates that requested offset is in canonical form, so tests need to convert the offsets as required. Also add test to verify non-canonical 48-bit address will be rejected. v2: Use sign_extend64 for converting to canonical form (Tvrtko) Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Signed-off-by: Michel Thierry <michel.thierry@intel.com>
2016-01-07igt/gem_mmap_gtt: Add a test to exercise coherency between GTT/CPUChris Wilson
This checks whether a write through the GTT is immediately visible to the CPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-01-05tests: Bump pageflip wait timeout to 50 ms.Maarten Lankhorst
The default is too low for panels that are 30 fps or lower. Bump the timeout to 50 ms to prevent spurious errors on those displays. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-01-03igt/gem_concurrent_all: Preparatory work for testing different create flagsChris Wilson
In order to do concurrency checks using different allocation functions, we need to hook those functions up to gem_concurrent_all. So let's add another layer of combinations! The actual enabling for create2-ioctl will come in the future. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-17tests/gem_concurrent_all: Add a couple more sanitycheck patternsChris Wilson
As always, the goal is to quickly stress a variety of workloads that often lead to kernel bugs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-16igt/gem_exec_nop: Restore SLOW_QUICK loop terminatorChris Wilson
The upper bound for SLOW_QUICK was added for the benefit of the slow simulator, not because, as I wrongly thought, of the latency measurements. SLOW_QUICK was added in commit d1e862324b747a0ab5d985eaa6830076817231c5 Author: Damien Lespiau <damien.lespiau@intel.com> Date: Mon Mar 25 20:06:20 2013 +0000 tests: Instrument tests run in simulation to run quickly and dropped in commit 89bcdb9022fb7a1f66635b9f2546356ad0c0761a Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Dec 8 13:42:50 2015 +0000 igt/gem_exec_nop: Remove nop latency measurements Reported-by: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-16tests: remove .gitignore and add a Makefile rule to create itThomas Wood
v2: generate the .gitignore file with the default target v3: remove the .gitignore file Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-12-16tests/gem_eio: New ABI - no EIO even from wait_ioctlDaniel Vetter
So there's 3 competing proposals for what wait_ioctl should do wrt -EIO: - return -EIO when the gpu is wedged. Not terribly useful for userspace since it might race with a hang and then there's no guarantee that a subsequent execbuf won't end up in an -EIO. Terminally wedge really can only be reliably signalled at execbuf time, and userspace needs to cope with that (or decide not to bother). - EIO for any obj that suffered from a reset. This means big internal reorginazation in the kernel since currently we track reset stats per-ctx and not on the obj. That's also what arb robustness wants. We could do this, but this feels like new ABI territory with the usual userspace requirements and high hurdles. - No -EIO at all. Consistent with set_domain_ioctl and simplest to implement. Which is what this patch does. We can always opt to change this later on if there's a real need. To make the test really exercise this do a full wedged gpu hang, to make sure -EIO doesn't leak out at all. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-16gem_flink_race/prime_self_import: Improve test reliabilityDerek Morton
gem_flink_race and prime_self_import have subtests which read the number of open gem objects from debugfs to determine if objects have leaked during the test. However the test can fail sporadically if the number of gem objects changes due to other process activity. This patch introduces a change to check the number of gem objects several times to filter out any fluctuations. v2: Moved the common code to a library and made the loop android specific (Daniel Vetter) v3: Renamed get_stable_obj_count -> igt_get_stable_obj_count Signed-off-by: Derek Morton <derek.j.morton@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2015-12-14tests/gem_softpin: Fix compiler warning on 32bit systemsMika Kuoppala
We get build error as we try to cast from ptr to integer of different size on 32 bit platforms. Use unsigned long as the cast, it will work with both 32 and 64 bit systems. Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
2015-12-13igt/gem_read_read_speed: Tweak to show comparison against write-writeChris Wilson
Since we hold an exclusive write lock we expect 2 writes to happen serially, but we expect 2 reads to happen in parallel. Expand the testing to demonstrate this effect (i.e. we expect read-read to be roughly 2x faster than write-write for small copies on big core.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-12tests/gem_pread,gem_pwrite: Fix compiler warningsChris Wilson
Many warnings of the form gem_pread.c: In function ‘main’: gem_pread.c:128:8: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] bps = bytes_per_sec(buf, object_size/usecs*1e6); Regression from commit 48c945322b4c5f6443758143cccb9c4c04da4aaa Author: Ankitprasad Sharma <ankitprasad.r.sharma@intel.com> Date: Wed Dec 2 14:54:51 2015 +0530 igt/gem_pread: Support to verify pread/pwrite for non-shmem backed obj Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-11igt/gem_concurrent_all: Expand testing to cover different memory regimesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-10Revert "igt: s/basic/sanitycheck/ on prior smoketesting"Daniel Vetter
This reverts commit 4f5efc5c844f6fe69209982463f9220f8f3951ed. There was a bit a misunderstanding on IRC between Chris&me. We want basic tests as sanity test to be run in the BAT CI. It's just unfortunate that right now we have fairly limited ability to absorb new ones, both because of a pile of existing bugs in the kernel and because the CI infrastructure is still being scaled out. The idea was just to remove the BAT tests added yesterday, not all of the ones we've had for a while longer. Cc: Chris Wilson <chris@chris-wilson.co.uk> Grumpily-acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-12-10igt: s/basic/sanitycheck/ on prior smoketestingChris Wilson
In times past, I added "basic" variants of tests just to ensure that the general principle of operation was sound before proceeding on to the main test (which typically looked at thrashing, i.e. were long and tedious and pointless if the test didn't even work in the normal situation). Since "basic" now collides with BAT, rename my trivial tests to "sanitycheck". Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-09igt/gem_concurrent_blit: Explicitly check for "missed interrupts"Chris Wilson
As the concurrency tests are a good source of stress for i915_wait_request() (the tests are primarily designed to ensure that GPU activity of one form or another is completed before access by third parties), one of the common form of errors we can detect are the "missing interrupts" (i.e. where the waits do not terminate because of a race between the interrupt and the seqno write). Add an explicit check for this error and flag it as a definite fail - which also helps narrow it down to certain subtests when run as a batch. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-09igt/test/pm_rps: load GPU to force not-idle to idle transition.Bob Paauwe
When changing the sysfs GT min frequency, the kernel won't automatcilly drop the GT frequency to idle unless the GPU transitions from busy to idle. Load the GPU after increasing the GT min frequency to force a busy to idle transition. This matches the behavior when decreasing the GT min frequency. Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2015-12-09kms_psr_sink_crc: Add BAT test for PSR active.Rodrigo Vivi
It takes from 2 to 5 seconds to run. Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-09kms_psr_sink_crc: Reduce our time out for PSR active.Rodrigo Vivi
Using same timeout value as kms_fronbuffer_tracking and for same reasons exposed at 'commit 83582f9b ("kms_frontbuffer_tracking: Increase the time we wait for PSR.")' Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-09tests/gem_softpin: New tests for softpin featureVinay Belgaumkar
These tests exercise the userptr ioctl to create shared buffers between CPU and GPU. They contain error and normal usage scenarios. They also contain a couple of stress tests which copy buffers between CPU and GPU. These tests rely on the softpin patch in order to pin buffers to a certain VA. Caveat: These tests were designed to run on 64-bit system. Future work includes adding logic to ensure these tests can run on 32-bit systems with PPGTT support. Some tests are currently disabled for 32-bit systems for that reason. v2: Added cc and signed-off-by fields v3: Fixed review comments, added helper functions. Removed userptr error scenarios covered by existing userptr tests. Modified stress test to have 100K buffers, it now runs for ~30 mins, checks every element has been written to correctly, and pins buffers at different VMAs. v4: Changed name to gem_softpin v5: More fixes. Removed the file based tests, will move them to userptr tests. Added a function that validates appropriate PPGTT support before running tests. Optimized stack space and memory footprint in stress test. Removed the eviction test, will add it back after verifying proper functionality. v6: Split basic test into userptr and bo Fixed some coding style issues. v7: Enhanced invalid vma pinning test to verify 32-bit PPGTT functionality. Enabled the test for 32-bit PPGTT systems, and verify pinning fails above 32-bit addresses. Enhanced the high adress pinning test to ensure pinning fails when EXEC_OBJECT_PINNED flag is not used. Some more cosmetic fixes to close buffer handles. Changed userptr function to used synchronized operations. v8: Minor change to high address pinning test as per comment. v9: Skip the tests if softpin support is not present. v10: Removed trailing white spaces. v11: Keep alphabetical order in Makefile and gitignore; update error code returned while trying to pin above the max vm size (EINVAL); test attempt to pin above 4GB without the support 48b flag. Cc: Michel Thierry <michel.thierry@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Signed-off-by: Michel Thierry <michel.thierry@intel.com> (v11) Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
2015-12-08igt/gem_exec_nop: Remove nop latency measurementsChris Wilson
Since commit c8beadb811bdc2b9c21f95144852f3e55867b546 Author: Derek Morton <derek.j.morton@intel.com> Date: Wed Nov 11 14:46:58 2015 +0000 tests/gem_exec_nop: Improved test run time the stablity of the measurement regressed and it is once again no longer a reliable metric for detecting regressions. Give up. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Derek Morton <derek.j.morton@intel.com>
2015-12-08tests/kms_force_connector_basic: Add prune-stale-modes subtestVille Syrjälä
Add a new subtest that makes sure old stale modes get pruned from the connector's mode list when the EDID changes. v2: s/drmModeGetConnector/drmModeGetConnectorCurrent/ since kmstest_force_edid() already takes care of doing the heavier call for us (Daniel) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-12-07kms_psr_sink_crc: Add suspend/resume sub test.Rodrigo Vivi
Although kms_frontbuffer_tracking already has psr-suspend testcase this one here can complement it by testing different combination and mainly covering 2 different cases individually: 1. wait-for-psr, suspend-resume tehn run 1 operation. 2. suspend-resume, wait-for-psr then run 1 operation. v2: Remove no-suspend option since this should be done with piglit if necessary for now. v3: argh! remove remaining no-suspend checks... Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-07kms_psr_sink_crc: Fix no-psr option.Rodrigo Vivi
commit 75b286e821 ("tests/kms_psr_sink_crc: test even if PSR is disabled by default")' force PSR enabling without respecting the no-psr (running-with-psr-disabled) option. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-07kms_frontbuffer_tracking: Skip on unreliable CRC.Rodrigo Vivi
Even with all sink crc re-works we still have platforms where after 6 vblanks it is unable to calculate the sink crc. But if we don't get the sink crc it isn't true that test failed, but that we have no ways to say test passed or failed. So let's print a message and move forward in case sink crc cannot help us to know if the screen has been updated. v2: Also include a message on setup_sink_crc and also only skip when it is mandatory, i.e. when running for PSR. Acked-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-07kms_frontbuffer_tracking: Make sink crc mandatory only for PSR.Rodrigo Vivi
Unfortunately Sink CRC is not 100% reliable for all platforms. So we cannot block FBC tests nor skip them when we are getting unreliable Sink CRC results, or not getting them at all. Acked-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-07kms_frontbuffer_tracking: Increase the time we wait for PSR.Rodrigo Vivi
With commit (drm/i915: Delay first PSR activation.) in kernel PSR might take a bit longer to really activate after the modeset. The first PSR activation after modeset is taking 5 times the panel power cycle delay time, which is 600ms for our machines here. So timeout here needs to be a minimum of 3s. However let's use 5s as the safe value in case we find machines with higher power cycle delay. Since we do a lot of assert(psr_disabled), this commit is increasing the time it takes to run the whole set of PSR tests by a few minutes, which had been reduced by commit f4db3b18841 ("kms_frontbuffer_tracking: reduce the PSR wait timeout to 2s"). Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2015-12-04igt/pm_rps: current freq < user specified min is not a fail (v3)Bob Paauwe
Since commit commit aed242ff7ebb697e4dff912bd4dc7ec7192f7581 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Wed Mar 18 09:48:21 2015 +0000 drm/i915: Relax RPS contraints to allows setting minfreq on idle it is now possible that the current frequency will drop be the user specified minimum frequency to the "idle" or RPn frequency. Update the pm_rps tests to reflect that droping below the user specified minimum is no longer considered a failure. v2: Add check RPn <= current freq. (Me) v3: Use RPn instead of MIN frequency in idle check (Imre) Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com>
2015-12-04tests/drv_hangman: Open drm fd before doing anythingDaniel Vetter
This way we correctly auto-skip instead of falling over the lack of i915 debugfs files first and fail the testcase due to that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-12-04tests/drm_lib.sh: Skip when i915 debugfs wasn't foundDaniel Vetter
Instead of failing. We might want to move this into i915 tests eventually, but this is good for now. v2: Use the correct exit code (Derek) and use the new symbolic values Thomas added. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2015-12-04lib: igt_fork_hang_helper must be run in fixturesDaniel Vetter
Because it opens an intel-specific drm fd. Fixes crashes when running igt on no-intel. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>