summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-03-22tests: adapt storedw tests to ppgttppgtt-fixesDaniel Vetter4-8/+34
MI_MEM_VIRTUAL actually means use global gtt now, not setting the bit means use ppgtt. On previous gens, not setting the bits ment 'use physical memory'. So what, the usual confusion. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-22tests: don't just bail out when there's not enough RAMDaniel Vetter3-6/+3
... but actually run the test with reduced memory requirements, as the messages claims. Additional print it to stdout, stderr seems to imply FAIL in our QA's testing rig. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20tests: add gem_mmap_offset_exhaustionDaniel Vetter2-0/+97
This also adds a gem_madvise helper to lib/drmtest.c Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-03-20update .gitingoreDaniel Vetter1-0/+2
2012-03-14configure: Add AC_SYS_LARGEFILE for mmap64 support on 64-bitChris Wilson1-0/+1
Without enabling largefile support the prototype for mmap64() is broken on Linux/x86_64 with the result being a 32-bit integer sign-extended to fill a 64-bit pointer. Hilarity ensues.
2012-02-29tests: some more tuning on the tiled partial pwrite/pread testDaniel Vetter1-1/+1
... 8 pages is just not enough to somewhat reliably get one page that needs bit17 swizzling. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-29tests/gem_tiled_partial_pread/write: fixesDaniel Vetter2-33/+46
Astonishing how dense I sometimes am ... - increase the bo size so that we don't have any round-up to next tile size areas (which the 2d blit go over, but the 1d pread/pwrite calls will notice). - correctly set tiling bits when copying back to a linear buffer. - read back through a tiled bo to avoid messing with swizzling. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-29tests: add tiled partial pwrite/pread testDaniel Vetter2-0/+282
And indeed, this blows up. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-27testdisplay: remove unnecessary passing of width, height, stride, depthJesse Barnes1-14/+10
These are globals, no need to shadow them everywhere.
2012-02-27testdisplay: remove plane test supportJesse Barnes1-255/+1
This is better done in intel_sprite_on and was broken anyway.
2012-02-22tests/gem_ringfill: shut up the compilerDaniel Vetter1-3/+2
Double-include ftl and local variable shadowing. While fixing the later I've noticed that we mix up width and height in the blt copy function. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-22tests/gem_ringfill: Exercise all ringsChris Wilson1-55/+130
On SandyBridge, the BLT commands were split from the RENDER commands as well as the BSD split inherited from Ironlake. So we need to make sure we do exercise each ring, and in order to do so we also need to make sure each batch takes longer to execute than it takes for us to submit it. v2: Exercise each ring sequentially. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-02-22gem_ringfill: Make this actually test that all the batches executed.Eric Anholt1-4/+61
I was looking into some strange behavior in Mesa that looks like batches maybe being skipped, but this test didn't catch it.
2012-02-15tests: fixup storedw testsDaniel Vetter3-6/+6
We need to use _INSTRUCTION as the reloc domain because otherwise the ppgtt pipe_control w/a for snb won't kick in and the test fails. The storedw tests for blt and bsd are still disabled because the corresponding patch to flag ppgtt support isn't merged upstream yet. Without ppgtt these hang my snb here. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-15test/gem_tiled_pread_pwrite: add progress indicatorDaniel Vetter1-0/+2
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-08add sprite demo from Armin ReeseDaniel Vetter1-0/+1
Also fixed up the copyright header a bit. No comments on the coding styled used ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06tests/testdisplay.c: rewite function dump_connectors and dump_crtcs.Yi Sun1-11/+26
Replace the globe variable drm_fd with local variable passed from parameter. Signed-off-by: Yi Sun <yi.sun@intel.com> [danvet: fixup whitespace] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-02-06tests/testdisplay.c: Fix the black screen issue while force mode.Yi Sun1-25/+12
Replace the 8 globe force mode variables with a struct drmModeInfo variable. Next step, we could reduce the number of globe veriables, to be convenient to call the functions. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-31gem_partial_pwrite_pread: add progress indicatorDaniel Vetter1-3/+10
Without optimized pread/pwrite this test takes forever. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24drmtest: add progress indicatorDaniel Vetter1-0/+2
Some test that trash the aperture necessarily need to take forever, so add a little progress indicator to keep worried minds at peace. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24tests: add gem_cs_prefetchDaniel Vetter2-0/+168
Tested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: make udev optionalDaniel Vetter1-1/+16
Hopefully this makes Solaris happy. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-24testdisplay: extract hotplug codeDaniel Vetter4-88/+177
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-23tests/gem_tiled_swapping: be more conservative with the swap requirementsDaniel Vetter1-0/+5
Blew up and angered the OOM killer on one of my machines. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests: add gem_tiled_swappingDaniel Vetter3-0/+142
Also add a drmtest_exchange_int helper, might come handy at other places. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22lib: extract drmtest_permute_arrayDaniel Vetter1-15/+2
Lots of tests need to create havoc to LRUs in the kernel or otherwise need to shuffle things around a bit. So make a small array permutation function available. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22Revert "tests/gem_tiled_pread_pwrite: actually try to use more than total ram"Daniel Vetter1-1/+1
This test is actually not really designed to test swap. This reverts commit 6d755c39d38e9f0e5a991933cc82e015d1ccd272. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-22tests/gem_tiled_pread_pwrite: actually try to use more than total ramDaniel Vetter1-1/+1
Luckily there's usually enough other stuff around to waste the last few mb ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-19tests: make testdisplay non-optionalDaniel Vetter1-6/+0
Not testing modesetting should not be an option. Also this hopefully prevents testdisplay build-breakage from lingering on for days like it has in the past. And we want to eventually test the gem/kms cross-section, i.e. pageflips. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18lib: extract rendercopy functions from gem_stressDaniel Vetter6-2757/+0
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: s/gem_stress.h/rendercopy.hDaniel Vetter5-4/+4
2012-01-18gem_stress: move keep_gpu_busy stuff out of render copy functionsDaniel Vetter4-25/+12
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: move option struct out of headerDaniel Vetter2-22/+20
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: add width/height arg to rendercpy functionsDaniel Vetter5-17/+26
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: move a few things out of gem_stress.hDaniel Vetter2-10/+5
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: pass batch as arg to render_copy functionsDaniel Vetter5-129/+143
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: remove logical_tile_no arg from render_copy functionsDaniel Vetter5-18/+9
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-18gem_stress: add buf->sizeDaniel Vetter2-3/+5
Removes a dependency on gem_stress internals from the rendercpy functions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15lib/drmtest: extract mappable aperture trasher infrastructureDaniel Vetter1-34/+6
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15lib/drmtest: extract gem_aperture_sizeDaniel Vetter11-109/+0
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15tests: update .gitignoreDaniel Vetter1-0/+4
2012-01-15tests: add ZZ_hangmanDaniel Vetter1-0/+62
Not yet enabled by default because the kernel can't recover from this on chips where we don't have a gpu reset implemented. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-15tests: add ZZ_check_dmesgDaniel Vetter2-0/+14
This way the testsuit automatically fails if we hit a DRM_ERROR or a WARN/BUG somewhere. ... i.e. this is the Jesse Barnes catcher ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiter_cached to check libdrm cache mmap pruningDaniel Vetter2-0/+139
Suggested by Chris Wilson. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11lib/drmtest: extract helpers for signal interruptionsDaniel Vetter1-30/+2
Also add some hackish stat to check it works. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiter variants that only check gtt/cpu mmapsDaniel Vetter3-0/+203
Suggested by Chris Wilson. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-11tests: add drm_vma_limiterroot2-0/+111
v2: Also check whether a 2nd mmap on the same bo still works. Suggested by Chris Wilson. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10tests/gem_fenced_exec_trash: use drmtest helpers moreroot1-25/+13
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_mmapDaniel Vetter10-164/+10
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-01-10lib/drmtest: extract gem_createDaniel Vetter17-190/+4
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>