summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-09-15testdisplay: fix compiler warningsPaulo Zanoni
testdisplay.c:117:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:125:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:145:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:1060:16: warning: comparison between signed and unsigned integer expressions Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-15tests/gem_mmap_gtt: also test gtt pwrite pathsDaniel Vetter
This needs a properly pre-faulted dst bo. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14tests: build all tests by defaultDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14tests: separate testcases in gem_bad_lengthDaniel Vetter
Creating a zero-length bo should fail, so check that. Still run the minimal batchbuffer, but without the zero-length reloc. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-14tests: disable gem_bad_blitDaniel Vetter
Hangs gen3 and simply writes garbage into the unmappable part of gtt on gen4+, which might cause issues later on. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13tests/gem_bad_length: dont throw garbage at the gpuDaniel Vetter
It doesn't like it. Really. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-13tests: exit(77) to properly mark tests as SKIPDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12tests: mark gen3-only tests as suchDaniel Vetter
... instead of hanging the gpu. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12tests: add basic test for missed irqsDaniel Vetter
Didn't catch any known bug, but can't hurt. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12tests: check pipe_control coherencyDaniel Vetter
v2: proper support for gen6+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-12tests: basic ring<->cpu and ring<->ring testsDaniel Vetter
Using a dummy reloc that doesn't matter to trick the kernel into synchroizing the rings. v2: properly apply MI_NOOP workaround to MI_FLUSH_DW and switch to MI_COND_BATCH_BUFFER_END as a dummy command on the render ring to avoid PIPE_CONTROL errata. v3: somebody clever decided that in C, you cound from 1, i.e. I915_EXEC_RENDER == 1. It works now ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-09tests: split up gem_storedw_loop into ring specific variationsDaniel Vetter
Also start to shortly explain testcases with an easily-greppable header like this: /* * Testcase: * * [Possible further explanation.] * */ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-09tests/gem_storedw: disable on pre-gen6Daniel Vetter
Doesn't work. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-09test/gem_storedw_*: tune some moreDaniel Vetter
MI_*/PIPE_CONTROL writes need to be in DOMAIN_INSTRUCTION, because that is what mesa uses and I plan to use this to work around a gen6 ppgtt issue. Also testing with intentionally b0rked GFX_MODE on my snb shows that we need to increase the loop counter a bit to reliably hit the tlb invalidation problem. Test still completes within a few seconds. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-09-06gem_vmap_blits: fix compilation if I915_PARAM_HAS_VMAP is not definedPaulo Zanoni
Previously, "make check" failed because the main() function was not defined. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Tested-By: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-08-12tests: add store dword testsJesse Barnes
Add a couple of simple store dword tests to test memory coherence. gem_storedw_loop simply executes a batch that continually stores an incremented value to a target buffer object, checking the results after each batch completes. gem_storedw_batches_loop does the same thing, but creates a new command batch buffer for each iteration, which can exercise the buffer creation code. This test is based on one from Andrzej Kacprowski from Intel. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-08-12testdisplay: for tiled mode test, the height should be alignedHai Lan
Signed-off-by: Hai Lan <hai.lan@intel.com>
2011-07-28intel-gpu-tools/debugging: add important debug regsBen Widawsky
Cc: Chris Wilson <chris@chris-wilson.co.uk>
2011-07-17gem_stress: ducttaping mandatoryDaniel Vetter
In other news: We've been missing a unmapping_mapping_range somewhere in the kernel. But lazy me never came around to digging up the real cause. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-07-13testdisplay: Test the first mode if there is no preferred mode.Hai Lan
For a TV device, there might be no preferred mode. In this case, we can test the first mode. Signed-off-by: Hai Lan <hai.lan@intel.com>
2011-07-08tests/gem_vmap_blits: Fix typoChris Wilson
Why, oh why, do these only become obvious after pushing upstream? Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-07-08Add a test case for coherency of vmapsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-07-08gem_stress: Assert we have no pending ops when using the CPUChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-07-08gem_gtt_speed: Add option for variable buffer sizeChris Wilson
2011-07-02gem_stress: Add an option to test handling of signalsChris Wilson
As signals cause the syscalls to be interrupted, we often need to clean up partial state before returning to userspace. Often a source of unamusing bugs, so encourage gem_stress to provoke them. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-23tests: Add an exercise for zero-length buffersChris Wilson
Triggers an OOPS with dmar enabled currently. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-20tests: Add a simple exercise of GTT mmapsChris Wilson
Test copying between 2 mappings and reading/writing from and to. References: https://bugs.freedesktop.org/show_bug.cgi?id=38115 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-13gem_stress: some stats about incoherenciesDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to disable render copyfunc checkDaniel Vetter
Too noisy - which is an another way of saying too broken :( Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option for tile_sizeDaniel Vetter
I want to know how large these corruptions can get! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to set tiles per bufferDaniel Vetter
gem_stress -p1 is much more evil than gem_stress -c1, it also manages to tear appart untiled workloads! Now duct-taping over it still works (--apply-duct-tape) ... hm. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to continue despite failuresDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-13gem_stress: option to override the number of rounds to completeDaniel Vetter
gem_stress -c 1 ... sometimes takes a while to hit a problem. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-07testdisplay: automatically enable TEST_PLANES if possibleJesse Barnes
Just look for the ADDFB2 ioctl and enable the new code if it exists.
2011-06-07testdisplay: fix error output if test pattern draw failsJesse Barnes
2011-06-07testdisplay: add tiled buffer test supportJesse Barnes
Useful for testing tiled vs linear framebuffers.
2011-06-07testdisplay: add overlay plane test optionJesse Barnes
Enumerate available extra planes and try to use one on each CRTC we enable.
2011-06-07testdisplay: fix possible_crtcs check so LVDS worksLan, Hai
When using testdisplay on GM965 and Pineview with LVDS, it will fail to set a mode because the first unused crtc can't be used for LVDS. So check the possible_crtcs to make sure the crtc can be used. Signed-off-by: Hai Lan <hai.lan@intel.com>
2011-06-06gem_stress: avoid division by 0Daniel Vetter
Without this height would be 16 with the minimal buffer size. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-06gem_stress: disable fence storm when only using untiled buffersDaniel Vetter
This explains why gem_stress -u worked beforehand - the rendercpy was not actually used! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-06gem_stress: round max_dimension down to the next potDaniel Vetter
Creates funny rounding problems otherwise. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-06-05gem_stress: trim buffer sizes to fit into 3D pipelineChris Wilson
Remember the 3D pipeline is much more restricted than the BLT engine, and we were feeding it buffers much larger than either the render engine or the sampler could manager. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05gem_stress: cpu maps force tiling to be disabled, so fix the printfChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05gem_stress: Add extra passes to intial render copyfunc verificationChris Wilson
...and allow for cpu maps!
2011-06-05test/gen3_mixed_blits: Remember that the BLT engine cannot handle Y-tilingChris Wilson
...even through a fence that can. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05test/gen3_mixed_blits: Alternately use fence regs for the render copiesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05test/gen3_mixed_blits: Acutally use fences for BLTChris Wilson
Gah, in my excitement of reproducing the failure reported by gem_stress, I missed using fenced relocs for the BLT. Fortunately, it doesn't affect the presence of the error. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05test: Add more gen3 render blittersChris Wilson
... and we have a winner: gen3_mixed_blits reproduces the issue Daniel Vetter originally found. It seems clear that we have some incoherence between the RENDER and BLT units on gen3 that no amount of MI_FLUSH can hide. Hmmm.... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-05test: Exercise gen3 render copiesChris Wilson
gem_stress is unhappy with tiled render copies on gen3. This is a simple little test to ensure that a set of pure copies with a working set larger than the aperture are handled correctly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-06-04tests: Add a fenced execbuffer thrash testChris Wilson
Exercise a nasty corner-case in the reservation logic for the fence accounting. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>