summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-04-22igt: Import basic amdgpu tests from libdrmChris Wilson
Simple copy and replace of the CUnit tests inside libdrm to form a basis for further prime integration testing. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-22igt/gem_ctx_create: Exercise all engines + context creationChris Wilson
Minor addition to testing each engine individual, test them all at once with a new context. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-22igt/gem_exec_fence: Accumulate long history of fencesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-20tests/kms_hdmi_inject: Add test for HDMI injection capabilities.Abdiel Janulgue
Original author: Marius Vlad. Includes fixes below. v5: Convert unit tests to lib selftest. v4: Add a unit test to make sure synthetic EDID blocks generated by IGT is valid (suggested by Petri). v3: Make audio injection work. Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
2017-04-19igt/gem_exec_nop: Add some output to headless subtestChris Wilson
Report the measurements as we make them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-19tests/gem_spin_batch: Add multiengine testMika Kuoppala
Parallel spin on all engines. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-19tests/meta_test: Add a meta test for sanity checks of CI systemsMarta Löfstedt
The intention of this test is use it to test that the CI system that runs IGT is collecting the results correctly. For: VIZ-10281 v2: minor edits Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-04-19igt/gem_exec_nop/headless: Verify GT performance in headless modeTvrtko Ursulin
Check that no-op execution speed is the same in headless mode and with the display active. v2: * Set graphics mode for the test to disable blanking. (Imre) * Use igt stats framework as suggested by Chris. v3: * Rename variable names for clearer assert. * Simplify by using I915_EXEC_DEFAULT. (Chris Wilson) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100572 Cc: Imre Deak <imre.deak@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Petri Latvala <petri.latvala@intel.com>
2017-04-13iget/gem_exec_reloc: Fix simulated relocationsChris Wilson
The contract with the kernel is that the presumed_offset matches the value written into the batch. In the case where we were creating a new object to simulate the old being relocation, we were writing some other value into the batch. It just happens that using GGTT read back on !llc was causing the original batch to migrated into the aperture, leaving a hole suitable for the new batch, and the kernel could therefore skip the relocation (causing us to complain). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100674 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_exec_fence: Enable hang detectorChris Wilson
Actually check for GPU hangs when not running the hanging tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_storedw_loop: Mark up with DOMAIN_WCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_mmap_wc: Mark up with DOMAIN_WCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_cs_tlb: Mark up with DOMAIN_WCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_concurrent_blit: Mark up with DOMAIN_WCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_exec_flush: Use DOMAIN_WC for access via gem_mmap__wcChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_pwrite: Use DOMAIN_WC for access via gem_mmap__wcChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96563 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-13igt/gem_exec_reloc: Check interactions with WC domainChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-12tests/kms_properties: Add GET_PROPERTY ioctl sanity checkDaniel Vetter
I've broken this accidentally. Let's make sure this doesn't happen anymore. Testcases suggested by Chris. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2017-04-11igt/gem_exec_fence: Restrict allowing hangs to hang testsChris Wilson
If the tests hang outside of the explicit hang tests, we want to fail and keep the error state for analysis. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08igt/gem_seqno_wrap: Teach to skip if i915_next_seqno is no long writableChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100592 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08igt/gem_exec_whisper: Move the require(gen>5) out of the childChris Wilson
Don't perform igt_require() in children, it only angers igt. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08igt/gem_exec_parallel: Can't run fds test on gen5Chris Wilson
gen4/5 require a master device to use the secure dispatch facility to use MI_STORE_DWORD -- which is only available to a single fd and so we can not execute in parallel across multiple fds, so skip those tests. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08igt/prime_mmap_coherency: Reorder cache flushes to avoid excess pressureChris Wilson
Flush the secondary buffer from the cpu cache before dirtying the cache for the primary to ensure a better chance of the primary buffer remaining in cache, causing the incoherency. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08igt/pm_rpm: Use directory fd to track and read entire directoriesChris Wilson
Rather than compute the temporary full path name, remember it via the dir fd we already have. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-08tests: More require GEM markupChris Wilson
A few more tests that use i915/gem without first checking that the GPU is working. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-07tests/kms_*: Use correct DRM context versionDaniel Stone
DRM_EVENT_CONTEXT_VERSION is the latest context version supported by whatever version of libdrm is present. igt was blindly asserting it supported whatever version that may be, even if it actually didn't. With libdrm 2.4.78, setting a higher context version than 2 will attempt to call the page_flip_handler2 vfunc if it was non-NULL, which being a random chunk of stack memory, it might well have been. Set the version as 2, which should be bumped only with the appropriate version checks. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2017-04-05igt/gem_exec_whisper: Extend test patterns with a synchronous variantChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-04intel-ci: Add extended.testlist for wider testingPetri Latvala
Test list with wider coverage and longer full runtime. Signed-off-by: Petri Latvala <petri.latvala@intel.com>
2017-04-03tests/gem_media_fill: Fixup typoChris Wilson
Erm, there's no _em but there ia a _gem! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-04-03tests: More precautionary selfchecks to filter out broken GPUsChris Wilson
If the driver is already wedged, trying to use GEM will only result in misleading failure. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-31igt_command_line.sh: Actually check things during distcheckPetri Latvala
This script is invoked in several different ways and the directories to use vary depending on the invocation. The handling of test-list.txt has been working before, but executing the individual command line handling tests have just skipped everything except shell scripts. Now "make distcheck" checks everything "make check" does, as does executing the script by hand. Signed-off-by: Petri Latvala <petri.latvala@intel.com>
2017-03-31igt_command_line.sh: Handle the special cases of drv_selftest and drm_mmPetri Latvala
Kernel selftest launchers use dynamic subtest enumeration. When running on a kernel without selftests, they output nothing from --list-subtests and exit with 0. Handle this specialty in the checker. Signed-off-by: Petri Latvala <petri.latvala@intel.com>
2017-03-29igt/kms_pipe_crc_basic: Use a fast hangChris Wilson
Inject of using a hanging batch and waiting for the driver to notice, issue a hang/reset request directly via debugfs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-27igt/pm_rc6_residency: Keep the sysfs directory openChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-27igt/gem_tiled_pread_pwrite: Use streaming loads to speed up GTT readbackChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-27igt/kms_frontbuffer_tracking: Keep the debugfs dir aroundChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-25igt: Add gem_exec_capture to exercise capturing user requested buffers on hangChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-25Replace more system("modprobe")Chris Wilson
As we have libkmod available, it is faster and safer than calling system(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-25igt/kms_sink_crc_base: CRC is on 3 channels, not 4.Chris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-25igt/kms_pipe_crc_basic: Fix assertion for bad commandsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-24igt/kms_sink_crc_basic: Fix debugfs error handlingChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-24lib/debugfs: Phase out igt_debugfs_fopen()Chris Wilson
Wrapping fdopen() proved dangerous, the underlying fd is not refcounted, and we must close it in the library or else we easily leak and exhaust all fd. Since we can't provide igt_debugfs_fopen(), move the burden onto the caller for those that require a stream FILE*. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-24Improve utilisation of igt_debugfs_dir()Chris Wilson
As we can export igt_debugfs_dir() to cache the path to our debugfs directory, encourage a few more users to take advantage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-23igt/gem_exec_whisper: Do context requirement check in parentChris Wilson
Don't do igt_require() from child processes, igt doesn't like that. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-22igt/gem_exec_reloc: Double memory requirementsChris Wilson
Worst case is that the kernel has to copy the entire incoming reloc[], so double the memory requirements. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-21Restore "lib: Open debugfs files for the given DRM device"Chris Wilson
This reverts commit 25fbae15262cf570e207e62f50e7c5233e06bc67, restoring commit 301ad44cdf1b868b1ab89096721da91fa8541fdc Author: Tomeu Vizoso <tomeu.vizoso@collabora.com> Date: Thu Mar 2 10:37:11 2017 +0100 lib: Open debugfs files for the given DRM device with fixes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-21Revert "lib: Open debugfs files for the given DRM device"Tomeu Vizoso
This reverts commit 301ad44cdf1b868b1ab89096721da91fa8541fdc. When a render-only device is opened and gem_quiescent_gpu is called, we need to use the debugfs dir for the master device instead. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
2017-03-21igt/kms_pipe_crc_basic: Don't assert on errno after successTomeu Vizoso
If errno contains left overs from previous syscalls, we'll be failing the assert in some successful conditions. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
2017-03-21lib: Open debugfs files for the given DRM deviceTomeu Vizoso
When opening a DRM debugfs file, locate the right path based on the given DRM device FD. This is needed so, in setups with more than one DRM device, any operations on debugfs files affect the expected DRM device. v2: - rebased and fixed new API additions v3: - updated chamelium test, which was missed previously - use the minor of the device for the debugfs path, not the major - have a proper exit handler for calling igt_hpd_storm_reset with the right device fd. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Robert Foss <robert.foss@collabora.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-21igt/gem_exec_nop: Sync before measuring total elapsed timeChris Wilson
The systematic error should be lost in the millions of cycles, but better pedagogically correct. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>