summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-09-12igt/kms_render: Iterate only through the formatsChris Wilson
When testing each format, iterate through the formats and not randomly through the modes. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83788 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-12igt/gem_userptr_blits: GTT mmaping a userptr requires llcChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83790 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-12igt/pm_rps: Fix the batch count for emitting the flushChris Wilson
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81858#c2 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-11tests: Kill pm_psrRodrigo Vivi
kms_psr_sink_crc check psr activity, residency and exit for screen updates. So this test is useless. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Wait 2 vblanks before grabing the new crc.Rodrigo Vivi
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Fix blt submissionRodrigo Vivi
Putting back a missing dword. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Check color ref CRCRodrigo Vivi
Black screen is forbidden on this test. So let's fail if sink crc shows it is back. Also there are many cases where we know for shure it should be all green, so let's check for them. Instead of checking colors we could print with sw using cairo and check if we have identical crc like cursor testcases. However with PSR the chance of artifacts is low and chance of getting blank screen or unchanged screen is high. So even drawing on sw and comparing both CRCs we can have the same result. However the risk is that screen never changed. So the safest way is to compare if screen changed and check the green color when we know it should be green or not green. v2: Hardcoded green was simply wrong because green CRC can change depending on display.Split R, G and B on CRC and bitewise them with mask to verify it is green. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Fix all testcases.Rodrigo Vivi
In order to get all test cases fixed and the matrix planes-operations working it was needed to use the common new igt kms functions for all cases. Previously only sprite testcase was using it. Fixed the fb colors in a way to make tests more clear and be impossible to see black screen during the tests. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Start splitting tests in test_planes and operations.Rodrigo Vivi
This will allow us to test input/write oprations on any kind of plane. At this point PLANE_ONOF is just the new name of TEST_SPRITE and PLANE_MOVE is the one for TEST_CURSOR_MOVE. They will be extended and fixed on the following patche(s). v2: fix conflict after changing previous patch Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Cleaning up tests a bitRodrigo Vivi
This is needed to be able to split tests in a matrix that tests different input/write methods and operations for different type of planes. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Removing context tests.Rodrigo Vivi
This tests are unecessary. Mainly now with the software tracking for PSR. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Adding test debug optionsRodrigo Vivi
Just to make life easier and be eable to easily test with PSR disabled to know exactly what to expect when running it for real v3: Use igt_debug helpers and add env option for running with psr disabled on this test without have to recompile like v1 or changing igt infrastructure like v2. I tried to add --disable-psr or local --dry-run but than it fails to print subtests so this was the safest way. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_psr_sink_crc: Fix edp_psr debugfs interfaceRodrigo Vivi
Tests were broken on platforms that doesn't have psr or on new kernel that contains new interface. A lot more need to be done to get these tests really useful, but for now lets avoid it breaking tests framework. v2: Doesn't duplicate kernel's HAS_PSR. skip based on debugfs output. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_sink_crc_basic: Wait 2 vblanks before grabing the new crc.Rodrigo Vivi
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-11tests/kms_sink_crc_basic: Simplify test by using igt_kms functionsRodrigo Vivi
v2: sink CRC R, G and B might change depending on display. So let's split the colors and bitwise them. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2014-09-09igt/gem_ppgtt: Create secondary contexts and mmChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-09test: Exercise full ppgtt switching between multiple fdChris Wilson
Load up both rings with lots of fighting between multiple contexts. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-08igt/gem_cpu_reloc: Terminate the bad batchChris Wilson
gen2 will read the batch up until it reaches the end as defined by the MI_BATCH_BUFFER_END command. Play nice and make sure that it does end on a MI_BB_END. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-08igt/kms_flip_tiling: Use the associated pipe for the outputChris Wilson
This stops us from using an illegal pipe, such as pipe 0 for LVDS on PNV. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82280 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-08igt/gem_mmap_gtt: Check coherency between GTT and CPU mmappings with LLCChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-06igt/kms_universal_plane: Only test existing planesChris Wilson
Only attempt to test the number of planes that exist on the device so as not to trigger spurious failures. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82233 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-06igt/drv_missed_irq_hang: Increase busy loadChris Wilson
The test relies on having to wait upon the GPU at some point and so simulating a missed interrupt. If there is insufficient load on the GPU, we can complete the task before we even wait. References: https://bugs.freedesktop.org/show_bug.cgi?id=71334 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-05tests/kms_3d: skip if connectors cannot be forcedThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-09-05tests: add kms_3d testThomas Wood
Add a test to verify creation and use of 3D stereo modes. v2: update for API changes Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-09-05lib: move create_stereo_fb from testdisplay to igt_fbThomas Wood
Move create_stereo_fb from testdisplay to igt_create_stereo_fb in igt_fb so that it can be used in other tests. v2: update for new igt_create_fb API add parameters for format and tiling remove some old debug code Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-09-05lib: Add MI_LOAD_REGISTER_IMMMika Kuoppala
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
2014-09-03igt/gem_concurrent_blit: Move igt_require() out of childrenChris Wilson
Otherwise the test infrastructure throws a fit. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83420 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-03igt/gem_gtt_hog: Convert opencoded fork()/wait() over to igt_fork()Chris Wilson
No reason not to use the common infrastructure here. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-09-03gem_workarounds: intel_wa_registers is now prefixed with i915Damien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Arun Siluvery <arun.siluvery@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-08-31igt/gem_concurrent_blit: Use the preallocated dummy bo for temporary copiesChris Wilson
Use the existing allocation, saves having to make fresh allocations in the innermost loop - trimming code and potential failure paths. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-30batch: Specify number of relocations to accommodateChris Wilson
Since relocations are variable size, depending upon generation, it is easier to handle the resizing of the batch request inside the BEGIN_BATCH macro. This still leaves us with having to resize commands in a few places - which still need adaption for gen8+. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt/gem_seqno_wrap: Use debugfs singletonChris Wilson
This has the added advantage of automounting debugfs for us. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29Prepare for 64bit relocation addressesChris Wilson
This reveal that quite a few locations were writing relocation offsets but only allowing for 32 bit addresses. To reveal such places in active tests, we also now double check that we do not use more batch space than declared. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt/gem_concurrent_blit: Apply some fence pressure as wellChris Wilson
As before, we also want to race against access through the fence registers. This overlaps slightly with gem_set_tiling_vs_blt, but the different access pattern should make it useful. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt/gem_concurrent_blit: Add ring race checksChris Wilson
Similar to the previous commit, we also want to check that every pipeline is serialised correctly. This extends the test to include render copies as well as blits. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt/gem_concurrent_blit: Add GPU-vs-GPU checksChris Wilson
In future, we may allow reordering of GPU batches. This implements a simple race detector by extending the current CPU-vs-GPU checks. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt: Prettify igt_assert_eq() failure messagesChris Wilson
This just improves the language about the exact failure to reduce confusion. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-27igt/gem_workarounds: igt to test workaround registersArun Siluvery
Some of the workarounds are lost followed by a gpu reset, suspend/resume; this patch adds a test which compares register state before and after the test scenario. This test currently verifies only bdw workarounds. v2: address patch cleanup comments (ThomasW) Add binary to ignore list and use igt_debugfs helper fns to read debugfs file and igt_info for printing debug info. v2.1: address minor comments from Daniel use igt_main as opposed to normal main Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com> [danvet: Drop igt_exit, it's already in igt_main.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-08-26kms_rotation_crc: Calling commit2 instead of legacy commitSonika Jindal
Since planes are universal now, using commit2 so that drmModeSetPlane can be called for primary plane as well instead of drmModeSetCrtc. drmModeSetPlane will update the x,y,w,h for the plane. Cc: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-08-26Merge two subtests for pm_rc6_residency IGT caseWendy Wang
Combine two subtests(rc6_residency_check and rc6_residency_counter) into one subtest(residency_accuracy) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-08-21testdisplay: Make the desired tiling mode an unsigned intDamien Lespiau
We may be able to scan out more tiling formats in the future. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21pm_rpm: Adjust to the new igt_create*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21pm_lpsp: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_sink_crc_basic: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_setmode: Adjust to the igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_render: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_psr_sink_crc: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_plane: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_pipe_crc_basic: Adjust to the new igt_create.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2014-08-21kms_mmio_vs_cs_flip: Adjust to the new igt_create_.*fb() APIDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>