summaryrefslogtreecommitdiff
path: root/tests/Makefile.sources
AgeCommit message (Collapse)Author
2014-07-14tests: Move gem_render_copy_redux to the list of multi-subtests testsDamien Lespiau
Can we find a way to fix those for good? My preference goes to not having that single/multi split but always have a test being a list of one or more subtests. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-07-11tests/kms_rotation_crc: IGT for 180 degree HW rotationSonika Jindal
Testcase for 180 degree HW rotation Cc: sagar.a.kamble@intel.com Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
2014-07-11lib: add function to change connector statesThomas Wood
Add an API function and a test program to force a particular state on a connector. v2: mask the correct part of the minor number to get the card number (Chris Wilson) Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-07-04tests/kms_universal_plane: Universal plane testing (v6)Matt Roper
Add a simple test to exercise universal plane support. v6: - Update to new universal plane interface (commit parameter rather than state-changing function). It should now be a lot more explicit which steps are being taken with legacy API's vs universal API's now. v5: - Check that we don't have more than one primary or cursor. This will catch accidental calls to drm_plane_init() in the kernel where drm_universal_plane_init() was intended (these don't cause a compile warning due to type compatibility between enum and bool). v4: - Test disabling the primary plane explicitly when it has previously been implicitly disabled due to clipping. - Skip test if igt_pipe_crc_new() fails v3: - For testing while crtc is off, switch between several different primary plane fb's before reenabling the crtc. This will help catch pin/unpin mistakes. v2: - Test that pageflips error out gracefully when the primary plane is disabled before the ioctl, or between ioctl and pageflip execution. - Test that nothing blows up if we try to disable the primary plane immediately after a pageflip (presumably before the pageflip actually completes). - Test that we can setup primary + sprite planes with the CRTC off and then have them show up properly when we enable the CRTC (drmModeSetCrtc with fb = -1). - Test that we can modeset properly after having disabled the primary plane - Test that proper error codes are returned for invalid plane programming attempts. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-06-17tests: Move gem_userptr_blits to the right Makefile targetDaniel Vetter
We need to be able to check for this somehow ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-06-17tests/Makefile.sources: Remove empty last lineDaniel Vetter
Actually just whitespace change to make sure the new built rules for tests/*.txt pick up the changes properly everywhere. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-06-16Fixed the review issues for pm_rc6_residency IGT caseWendy Wang
Why need add rc6_residency_counter subtest case: RC6 feature support residency counter,from power consumption aspect, the counter closer to 1,the better.If the counter is < 0.9, the residency is not good and will impact power consumption value, if the counter is > 1, sysfs file is inaccurate. Attach the test result message: root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./pm_rc6_residency IGT-Version: 1.6-g9a70e29 (x86_64) (Linux: 3.15.0-rc7_drm-intel-nightly_0a37b5_20140604+ x86_64) Subtest rc6-residency-check: SUCCESS This machine doesn't support rc6pp This machine doesn't support rc6p The residency counter : 0.987000 This machine entry rc6 state. Subtest rc6-residency-counter: SUCCESS root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./pm_rc6_residency --run-subtest rc6-residency-counter IGT-Version: 1.6-g9a70e29 (x86_64) (Linux: 3.15.0-rc7_drm-intel-nightly_0a37b5_20140604+ x86_64) This machine doesn't support rc6pp This machine doesn't support rc6p The residency counter : 0.987000 This machine entry rc6 state. Subtest rc6-residency-counter: SUCCESS root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./pm_rc6_residency --run-subtest rc6-residency-check IGT-Version: 1.6-g9a70e29 (x86_64) (Linux: 3.15.0-rc7_drm-intel-nightly_0a37b5_20140604+ x86_64) Subtest rc6-residency-check: SUCCESS root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./pm_rc6_residency --list rc6-residency-check rc6-residency-counter Run as non-root [haha@x-pk home]$ ./pm_rc6_residency IGT-Version: 1.6-g18d2130 (x86_64) (Linux: 3.13.0-rc3_drm-intel-nightly_639e4d_20131210+ x86_64) No intel gpu found Subtest rc6-residency-check: SKIP Subtest rc6-residency-counter: SKIP Run on non-intel platform [root@x-pk5 home]# ./pm_rc6_residency IGT-Version: 1.6-g18d2130 (x86_64) (Linux: 3.13.0-rc3_drm-intel-nightly_639e4d_20131210+ x86_64) Test requirement not met in function read_rc6_residency, file pm_rc6_residency.c:77: Last errno: 2, No such file or directory Test requirement: (!(file)) Subtest rc6-residency-check: SKIP Subtest rc6-residency-counter: SKIP Signed-off-by: Wendy Wang <wendy.wang@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-06-12tests/gem_fence_upload: Fix test wrapperDaniel Vetter
- tests with subtests need to be in the _M target for correct enumeration. - No need for igt_exit when using the igt_(simple_)main wrappers. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-06-12tests: add gem_fence_uploadChris Wilson
This test demonstrates the performance cliff clients face when they unwittingly use too many fenced surfaces in a looped upload. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-06-11tests/kms_psr_sink_crc: Create test to test PSR by checking panel CRC.Rodrigo Vivi
v2: Wait psr enable with timeout and more subtest added. v3: Add wait for v_blank leeting test more reliable and preparing to add Baytrail per-pipe tests. v4: Call busy_ioctl on mmap_gtt to match the real usage and remove the need of inactivate on set_domain, what was semantically wrong. v5: Adding more test cases to cover mmap_gtt with and without followed by busy ioctl and also without busy and waiting 10 seconds between set_domain and actual write. v6: rebase after kms_plane added and debugfs api changed. Plus adding more test cases. v7: Some rework and sprite test added Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
2014-06-04intel-gpu-tools: move kms_fence_pin_leak to single test listTim Gore
In Makefile.sources, kms_fence_pin_leak was in the "Multi" test list, ie tests with subtests, whereas it is actually simple/single test. This was confusing the Android script for enumerating tests. Signed-off-by: Tim Gore <tim.gore@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-22tests/drv_hangman: Convert test from shell script to cMika Kuoppala
Mixing script and standlone tests didn't mix well with the strict i915_ring_stop flags handling. Also squash drv_missed_irq_hang to the new test. v2: - Remove missed irq test (Daniel Vetter) - gitignore fixed (Oscar Mateo) - fix check_other_clients to handle dangling fd's Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78322 Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Oscar Mateo <oscar.mateo@intel.com> <v1> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-05-22tests/kms_mmio_vs_cs_flip: Add a test case to exercise mmio vs. CS flip racesVille Syrjälä
kms_mmio_vs_cs_flip has two subtests: - setplane_vs_cs_flip tests the interaction between fullscreen sprites and CS flips - setcrtc_vs_cs_flip tests the interaction between primary plane panning and CS flips v2: Skip sprite test when there are no sprites Reduce busy_bo to 64MB (now works on my gen2) Handle pipe vs. port incompatibility v3: Handle missing auto pipe crc Reviewed-by Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-05-16tests/kms_sink_crc_basic: Put into righ Makefile targetDaniel Vetter
If it's a simple test, it needs to be in the simple lists. Tests with subtests go into the _M tests. Without that test enumeration is all screwed up. Cc: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-16tests/kms_sink_crc_basic: Basic test to verify Sink CRC debugfs.Rodrigo Vivi
v2: rebase after a long time. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-16tests/pm_pc8 -> pm_rpm renameDaniel Vetter
Plus naming convention for runtime pm tests to have "rpm" somewhere in their tests. Note that all the pc8-specific tests (for e.g. residency or similar) already have pc8 in their subtest names, so we don't lose any information here. Cc: "Yang, Guang A" <guang.a.yang@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-05-15Add gem_bad_relocChris Wilson
This test feeds a batch containing self-references into the kernel and checks that the relocation offsets remain as valid GTT addresses. This is to exercise SNA passing in negative relocation deltas which can hang the GPU if they wrap around. References: https://bugs.freedesktop.org/show_bug.cgi?id=78533 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-14tests/kms_fence_pin_leak: Exercise full ppgtt fence pin_count leak in the kernelVille Syrjälä
The kernel full ppgtt support has a bug where it can drop a pinned fence to the floor, hence we leak the pin_count as the subsequent fence unpin becomes a nop. We can trigger it easily by unbinding a buffer from a ppgtt address space while the buffer is simultaneosly being used for scanout. Make the kernel leak the fence pin_count and trick it into picking a new fence register for the next scanout buffer. Looping like this for a while we leak the pin_count for all fence registers after which the kernel can no longer find a new fence register when it needs one. As a result we get back a SIGBUS from the GTT mmap access. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-05-05gem_alive: A utility to see if the driver or GPU has hungChris Wilson
2014-04-25tests/gem_vmap_blits: Remove obsolete test caseTvrtko Ursulin
No need for the old test case once the new one was added. v2: * Just rebase for lib/ reorganization. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-04-25tests/gem_userptr_blits: Expanded userptr test casesTvrtko Ursulin
A set of userptr test cases to support the new feature. For the eviction and swapping stress testing I have extracted some common behaviour from gem_evict_everything and made both test cases use it to avoid duplicating the code. Both unsynchronized and synchronized userptr objects are tested but the latter set of tests will be skipped if kernel is compiled without MMU_NOTIFIERS. Also, with 32-bit userspace swapping tests are skipped if the system has a lot more RAM than process address space. Forking swapping tests are not skipped since they can still trigger swapping by cumulative effect. v2: * Fixed dmabuf test. * Added test for rejecting read-only. * Fixed ioctl detection for latest kernel patch. v3: * Use ALIGN macro. * Catchup with big lib/ reorganization. * Fixed up some warnings. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-04-24tests: Add one ring sync case based on multi drm_fd to test ring semaphore ↵Zhao Yakui
sync under multi BSD rings The Broadwell GT3 machine has two independent BSD rings in kernel driver while it is transparent to the user-space driver. In such case it needs to check the ring sync between the two BSD rings. At the same time it also needs to check the sync among the second BSD ring and the other rings. V2->V3: Follow Imre's comment to remove the unnecessary initialization and use igt_assert_f instead of igt_assert. V3->V4: Add gem_multi_bsd_sync_loop.c into the tests/.gitignore Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-04-24tests: Add gem_exec_paramsDaniel Vetter
This fills all the gaps we've had in our execbuf testing. Overflow testing of the various arrays is already done by gem_reloc_overflow. Also add kms_flip_tiling to .gitignore. This will cause a bunch of failures since current kernels don't catch all fallout. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-04-24Add gem_render_copy_reduxChris Wilson
This is an "advanced" form of the the simple gem_render_copy test. Instead of aiming for maximal simplicity to aide debugging of new rendercopy backends, this test aims to exercise the execbuf interface using the render ring. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-14tests: Compile all the testsVille Syrjälä
A bunch of the tests aren't being built due to a missing '\'. Fix it. The problem was introduced here: commit ddf8cc107e3b78e4c8200b083ed298c24eec1f03 Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Date: Wed Apr 2 15:31:38 2014 +0300 test: Add test for checking if page flip changes tiling Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-04-14test: Add test for checking if page flip changes tilingAnder Conselvan de Oliveira
Test that a page flip from a tiled buffer to a linear one works correctly. First, it sets the crtc with the linear buffer andr generate a reference crc for the pipe. Then, the crtc is set with the tiled one and page flip to the linear one issued. A new crc is generated and compared to the rerence one. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
2014-03-25tests: Add a test for the command parserBrad Volkin
Start with a simple testcase that should pass. v2: Switch to I915_PARAM_CMD_PARSER_VERSION Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: allow igt_skip_on_simulation outside of fixtures.Daniel Vetter
Thomas noticed that in simulation mode a lot of the tests fall over instead of skipping properly. This is due to recently added self-checks which ensure that any call to igt_skip happens either within a fixture or subtest block (or it's a simple test without subtests). This is to catch bugs since pretty much always not wrapping up hardware setup and checks into these blocks is a bug. Bug simulation skipping is a bit different, so allow that exception. Otherwise we'd need to fix up piles of tests (and likely need to play a game of whack-a-mole). Also add a library testcase for all the different variants to make sure it really works. Cc: Thomas Wood <thomas.wood@intel.com> Cc: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-20tests: Add gen7_forcewake_mtChris Wilson
This is supposed to be snafu... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-11kms_plane: Start a basic display plane testDamien Lespiau
We test the sprite plane positionning in there, for now. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-04tests: Add gem_madviseChris Wilson
Exercise that calling madvise produces expected results Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-04fix make distcheckDaniel Vetter
Bunch of explicit include paths needed adjustments and eviction_common.c needs to be added to the dist files. This has been broken in the following three commits: commit 42bcd05eb3f1545fbf9c397c3f37c3f6a27c5da4 Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Date: Mon Feb 3 10:59:41 2014 +0000 tests/eviction_common: Avoid submitting duplicate objects commit b92b397d5e4ffe10ed92fb2fc6711758ef5bcf89 Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Date: Tue Dec 3 15:09:57 2013 +0000 build: Make sure asserts are enabled for tests commit 8c33e9ad111d27b84db4daac43809a807f262632 Author: Ben Widawsky <benjamin.widawsky@intel.com> Date: Fri Dec 6 20:35:29 2013 -0800 intel-gpu-tools: Version informatio Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Ben Widawsky <benjamin.widawsky@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-04gem_ring_sync_copy: Add a ring to ring synchronization testDamien Lespiau
The goal of this test is to ensure that we respect inter ring dependencies. A more detailed description of what it tests is in a comment. The tests relies on having a blit function for the ring, so is currently only checking synchronization between the render and blitter ring. v2: Actually create an inter-ring dependency by making the first copy on ring2 and the second on ring2, not both on ring2. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-01-19tests: Add gem_fd_exhaustionDaniel Vetter
Exhausts the system limit on open files and then tries to create a new shmem-backed gem object. Linus Torvalds reported that this blows up on a null obj->base.filp, but I can't reproduce this here: http://lists.freedesktop.org/archives/intel-gfx/2014-January/038433.html Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-19tests: Move pm_rps to the right Makefile targetDaniel Vetter
If it's not in the multi-test target group testrunners won't pick up on the fact that they need to enumerate subtests first. Cc: jeff.mcgee@intel.com Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-01-10tests: Add gem_gtt_hogChris Wilson
The purpose of this test is to exercise the userspace latency hogs reported by Arjan van de Ven. He found some applications blocked the device by stalling on the GPU inside the pagefault handler.
2013-12-12tests: Document the Makefile variables a bit betterDaniel Vetter
Also, this is a test for the patchwork hook. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-12tests: Move gem_reset_stats to the right placeDaniel Vetter
Binaries should only be added to the HANG target if they're completely broken. If they just cause a recoverable gpu hang as part of the test then they need to be somewhere else. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-10tests: roll out igt_simple_init/igt_simple_mainDaniel Vetter
Also use igt_skip a bit more to simplify some of the tests. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-10tests: gem_close_race has subtests!Daniel Vetter
Oops. v2: Found more. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-06tests: add pm_lpspPaulo Zanoni
QA has asked me "How can we make sure LPSP is working?". Now, instead of writing big paragraphs, I can just answer "make sure pm_lpsp works". Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2013-12-06tests: add gem_media_fillXiang, Haihao
It is to check whether media pipeline on render ring works. Codes are copied and modified from the rendercopy case which uses 3D pipeline. However media pipeline is simpler than 3D pipeline and there is few changes between gen6,gen7 and gen8 Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-12-05tests/gem_ctx_exec: Add eviction testDaniel Vetter
It didn't pan out at all since atm we don't evict context objects. But maybe it's useful for when that happens. v2: Actually test eviction. Took a while to figure that one out. And indeed the testcase now fails because we don't evict the previous context as we should. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05tests/core_get_client_auth: new subtests for always authenticatedDaniel Vetter
This exercise the bug fixed in commit 1020dc6990168a5081ffad620c440e220f05b460 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 29 08:55:57 2013 +0000 drm: Do not drop root privileges for a fancier younger process Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-12-05tests: rename get_client_auth to have a core_ prefixDaniel Vetter
Also sort .gitignore. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-27kms_fbc_crc: Add a CRC based FBC testVille Syrjälä
kms_fbc_crc will perform various write operations to the scanout buffer whilc FBC is enabled. CRC checks will be used to make sure the modifcations to scanout buffer are detected. The operations include: - page flip - GTT mmap - CPU mmap - blit - rendercopy - context switch + rendercopy - combination of a page flip and each operation listed above v2: Use gem_sw_finish instead of drmModeDirtyFB after CPU access v3: Drop pwrite tests, call gem_bo_busy() after rendering, drop set_domain() calls after mmap access, wait for 2 vblanks Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-11-13tests: add gem_reset_statsMika Kuoppala
v2: check the ioctl pad and flag parameters Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12build: Move logic to tests/Makefile.am and away from Makefile.sourcesOscar Mateo
Makefile.sources is just a listing with all the sources, and the logic to use these sources goes into either Makefile.am (automake) or Android.mk (make). Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12build: Fix missing "\" in tests/Makefile.sourcesOscar Mateo
Noticed by Damien Lespiau. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-12build: list all test/tool/lib source files in their own Makefile.sourcesOscar Mateo
In this way, all source files are listed in Makefile.sources and included from Makefile.am, thus enabling the reuse from Android makefiles. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>