summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-03-11tests/drv_missed_irq_hand: Make it robusterDaniel Vetter
Just launching empty batches isn't enough load on my speedy g33 to force the kernel to enable interrupts an wait for them. So use some real load. With that the test is now fully reliably on my g33 amchine. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-11tests/gem_exec_blt: More reasonable runtimeDaniel Vetter
Doing (1 << 18) - 1 repeats isn't really. With the reduced time the test is also useful in some shell scripted tests which need some real load (but not too much), like drv_missed_irq_hang. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-11tests/drv_missed_irq_hang: Remove debug outputDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-07igt/gem_pwrite_pread: Fix relocation offsets for gen8+Chris Wilson
Oops, I didn't check to see if there was more than one call site where we built and execbuffer. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75237 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-03-05kms_setmode: Add clone-single-crtc subtestImre Deak
The clone-single-crtc will test various cloning scenarios. Currently it does limit the number of simultanously cloned connectors to the number of pipes in the system. That restriction can be lifted in the future if desired. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-03-05igt/gem_pwrite_pread: Fix relocation offsets for gen8+Chris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75237 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-28igt/gem_pwrite_pread: Fix XY_SRC_COPY command length for gen8+Chris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75237 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-26tests/pm_pc8: be more verbose on test_i2c failuresPaulo Zanoni
Whenever I see that error, I go and print the numbers so I can check which one is failing. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-26tests/pm_pc8: use intel_gen instead of a big IS_GEN checkPaulo Zanoni
Much better! Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-26tests/pm_pc8: BDW should also support PC8 residenciesPaulo Zanoni
And I'm hoping the MSR register addresses will be the same. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-26tests/pm_pc8: use XY_COLOR_BLT instead of just COLOR_BLTPaulo Zanoni
And add BDW support to it. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-26tests/pm_pc8: add "stay" modePaulo Zanoni
I used to have a binary that would just disable all the screens - so we can enter PC8/runtime PM - and then sleep forever. I used this binary many times while debugging PC8 and runtime PM, and I also sent the binary to many people so they would be able to test these things without X running. Since pm_pc8 already implements everything that the separate binary needs, and it even has some additional code to try to configure the environment to actually reach PC8, it's easier to just ask people to run "sudo ./pm_pc8 --stay" instead of sending them a file, asking them to compile it, setup the environment, and then run it. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-26evictions: Limit the number of minor eviction surfaces to fit in RAMChris Wilson
We allocate more surfaces than used in a single pass in order to stress the eviction code between batches. The intent here is not to exercise swapping, and we fail to check that there is enough swap+memory to hold all our surfaces. So limit the number of surfaces we allocate to fit into RAM, and then require that the number of surfaces we need for testing is less than the number of surfaces we can allocate. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-25tests/pm_pc8: add pci-d3-state subtestPaulo Zanoni
Currently the test suite just looks at the files provided by the runtime power management framework to check if the device is runtime suspended. Add a test that reads the PCI config space to check if the device is actually in PCI D3 state or not. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-25tests/pm_pc8: add reg-read-ioctl subtestPaulo Zanoni
After I finally fixed the code that WARNs if we're runtime suspended when reading registers I started getting the WARNs, so this test should reproduce them on a Kernel with the problem. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-24gem_render_tiled_blits: Trim usage to fit within RAMChris Wilson
This is a render correctness test, the intention is not to exercise the swapper (but preferrably some eviction code). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75247 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-24gem_render_linear_blits: Trim usage to fit within RAMChris Wilson
This is a render correctness test, the intention is not to exercise the swapper (but preferrably some eviction code). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75247 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-21kms_flip: Add dpms-vs-vblank-race and modeset-vs-vblank-race subtestsVille Syrjälä
dpms-vs-vblank-race and modeset-vs-vblank-race try to race wait for vblank ioctls from one thread against modeset/dpms ioctls from another. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-02-21kms_flip: Skip tests that try to inject GPU hangs if already terminally wedgedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-21kms_flip: Assert that hang_gpu() should only fail is the GPU is already hungChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-21tests: Compile all threaded tests with -pthread when appropriateChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-02-21kms_flip: Fail the subtest if page flip hang recovery wasn't actually testedVille Syrjälä
Context banning can prevent the page flip hang tests from actaully testing anything, so make the relevant subtests fail in that case. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-02-21kms_flip: Restore rings to running state in unhang_gpu()Ville Syrjälä
If things go bad, make sure the rings aren't left in the stopped state. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2014-02-21tests/pm_pc8: try to modprobe msrPaulo Zanoni
Just in case it's compile with M instead of Y. If the module is not there, the other assertions will catch the problem. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-21tests/pm_pc8: try to modprobe i2c-devPaulo Zanoni
Just in case the module is compiled with M instead of Y. If the module is not there, the other assertions will catch the problem. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-21tests/pm_pc8: add gem-idle subtestPaulo Zanoni
It's triggering WARNs and DRM_ERRORs on current drm-intel-nighly. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-21tests/pm_pc8: remove sleep() call when setting up the environmentPaulo Zanoni
This sleep was added because sometimes we didn't reach PC8+ residencies, but it was still not enough to prevent the problem every time, and it is really not needed most of the times. I have investigated more and it seems that we only have to wait until after some minutes have past since the machine booted. So just remove the sleep for now since when you run each subtest in a separate process, you end up having to sleep at every subtest. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-21tests/gen7_forcewake_mt: use -lpthreadPaulo Zanoni
Otherwise it fails to compile on my machine. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2014-02-21kms_flip: Try to make hang_gpu() robust against hanging the GPUChris Wilson
On a bad day, hanging the GPU may be terminal. Yet even if the GPU is terminally wedged we expect modesetting (and pageflips) to continue. That deserves to be a dedicated test, but in the meantime we should strive to avoid falling over just because the code is not resilient. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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-19build: Skip kms_plane on AndroidJoao Santos
Skipping this test until we have Cairo in the build. Signed-off-by: Joao Santos <joao.santos@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-18kms_pipe_crc_basic: Remove spurious inclusion of glib.hDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-18kms_plane: Remove spurious inclusion of glib.hDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-13test/kms_flip: fix up igt logging conversionDaniel Vetter
Silly me ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-13testdisplay: Allow to specify the dpms levelDaniel Vetter
aka the jbarnes-me-harder mode Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-13testdisplay: implement dpms testDaniel Vetter
For those who wonder about the -j switch ... all the good ones have been taken, so this is the Jesse-flag. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-13tests/kms_flip: use igt loggingDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-13tests/gem_seqno_wrap: use igt loggingDaniel Vetter
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-13test/pm_rps: use igt loggingDaniel Vetter
Cc: Jeff McGee <jeff.mcgee@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-12tests: fix sub-test enumerationThomas Wood
Ensure sub-tests can be listed correctly by doing any test setup within an igt_fixture block. Signed-off-by: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-12test/gem_gtt_hog: bail out earlierDaniel Vetter
This way we properly skip instead of failing hard. Just result polish when running on non-intel systems. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11tests/gem_madvise: use correct main blockDaniel Vetter
igt_simple_main doesn't enumerate subtests ... Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11tests/gem_bad_ctx_exec: Properly wrap in igt_fixturesDaniel Vetter
Caught by the new nasty assert in igt_skip. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11tests/gem_close_race: Properly wrap init code in fixturesDaniel Vetter
Blows up otherwise if there's no intel gpu around. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-02-11kms_pipe_crc_basic: Remove igt_display_get_n_pipes() usage in mainDamien Lespiau
The fixture won't be run when listing the subtests and thus we can't use igt_display_get_n_pipes() in the list of tests. The alternative here is to list the subtests with the maximum values and skip when not supported on the platform. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Fix igt_ouput_get_plane() typo (output)Damien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
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-11kms_pipe_crc_basic: Use kmstest_create_color_fb()Damien Lespiau
Reducing again the per-test number of lines. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11lib: Include drm_fourcc.h from igt_kms.hDamien Lespiau
This include is needed for the DRM_FORMAT* defines used in the fb creation helpers. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-02-11kms_cursor_crc: Use kmstest_create_color_fb()Damien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>