summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-12-18testdisplay: shut up compilerDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-18testdisplay: move drm_fourcc.h include under the #ifdef protectionDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-17tests/testdisplay.c: make the 3th pipe finish all the mode setting.Yi Sun
If test all modes rather than preferred mode, remove framebuffer and set CRTC to zero after each connector mode setting. Signed-off-by: Sun Yi <yi.sun@intel.com> Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-12-14tests/gem_double_irq_loop: silence the compilerChris Wilson
gem_double_irq_loop.c: In function ‘dummy_reloc_loop’: gem_double_irq_loop.c:62:9: warning: unused variable ‘j’ [-Wunused-variable]
2011-12-14tests/gem_exec_blt: silence the compiler by failing on errorChris Wilson
gem_exec_blt.c: In function ‘gem_exec’: gem_exec_blt.c:174:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Propagate the failure and exit(1).
2011-12-14tests/gem_exec_nop: silence the compiler by failing on errorChris Wilson
gem_exec_nop.c: In function ‘exec’: gem_exec_nop.c:101:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Propagate the failure and exit(1).
2011-12-14tests/gem_stress: silence the compiler by using '%zu' for size_tChris Wilson
gem_stress.c: In function ‘main’: gem_stress.c:980:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
2011-12-14tests/gem_largeobject: silence the compilerChris Wilson
gem_largeobject.c: In function ‘test_large_object’: gem_largeobject.c:95:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
2011-12-14testdisplay: don't test planes if i915 color key ioctl is not availableJesse Barnes
2011-12-07testdisplay: update for final plane & fb ABIJesse Barnes
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-12-06tests/gem_partial_pwrite_pread: don't trash gtt unnecessarilyDaniel Vetter
On chips that don't have a unmappable gtt part it's utterly pointless. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests: add gem_partial_pwrite_preadDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: fixup this messDaniel Vetter
- fixup pitch mess noticed by Chris Wilson. - we need to diable bo reuse otherwise the kernel won't do the relocs (we might get an already gtt-bound batch from the dummy load). Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+Daniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_reloc_vs_gpu: switch to COLOR_BLT instead of PIPE_CONTROLDaniel Vetter
Less fancy command that works everywhere. Suggested by Chris Wilons. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests/gem_tiled_pread_pwrite: kill set-but-unsed warningDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-04tests: add gem_reloc_vs_gpuDaniel Vetter
Tests whether the kernel properly waits for the gpu before applying a reloc. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02Revert some accidental thingsDaniel Vetter
... somehow slipped in. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_exec_faulting_relocDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_exec_bad_domainsDaniel Vetter
To check whether the kernel properly rejects non-gpu domains in relocs. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-02tests: add gem_tiled_pread_pwriteDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-12-01tests/gem_gtt_speed: Add modes that force that to the gtt domainDaniel Vetter
No sane userspace doesn't upload data to the gpu without actually using it there ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests: implement snb+ XY_SETUP_CLIP_BLT workaroundDaniel Vetter
Better safe than sorry. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests/sysfs_edit_reader: posixifyDaniel Vetter
Debian's default sh complains ... Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-27tests: properly terminate tests when values mismatchDaniel Vetter
Not much use running them in the test rig otherwise. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-11tests/gem_hang: fix copy-paste problemEugeni Dodonov
I suspect that we should do different things for different pipes.. Spotted by Thomas Jarosh on #intel-gfx freenode. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10tests: add a test for checking edid reading delaysEugeni Dodonov
With base on EDID timing testing, when we take more than 1s to run xrandr command, something is wrong.. So add this test for testing the time we take to read the status of all the connectors from sysfs. It should do us an average picture of how long we'd take to run xrandr (roughtly 2x that value). Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-10tests: add test for kernel segmentation faultEugeni Dodonov
As asked by Daniel Vetter, this is a tech which checks if we can cause division by zero in kernel by reading the i915_emon_status debugfs entry repeatably. Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-11-08tests: disable pipe_control on i965gDaniel Vetter
That hw is broken. Reported-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-04testdisplay: Round tiled allocations up to pot stride and fence sizeChris Wilson
Be simple and use the strictest requirements from gen2/3 with old kernels so that this simply works everywhere. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42585
2011-11-03testdisplay: find planes for each pipeJesse Barnes
Fixes a bug where we were masking against the wrong value.
2011-11-03testdisplay: update to new addfb2 definitionJesse Barnes
2011-11-01always require libdrmDaniel Vetter
... and also add the missing files to lib/Makefile.am Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01tests/gem_tiled_pread: fixup detiler for gen2Daniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-11-01tests/gem_largeobject: accomodate for puny aperturesDaniel Vetter
... like on my i855gm. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31tests: mark gem_bad_address as HANGDaniel Vetter
Kills my little i855gm. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31tests/debugfs_reader: fight bashismDaniel Vetter
debian's dash doesn't like this. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31tests: actually add the drm client check scriptDaniel Vetter
Ooops. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-31tests: check for other drm clientsDaniel Vetter
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30tests/gem_bad_length: disable broken batchbufferDaniel Vetter
Submitting random crap hangs the gpu. Suprise! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30tests: don't run kernel check from make checkDaniel Vetter
Add a new target test for that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30make distcheck fixesDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30tests: add test to read all debugfs filesDaniel Vetter
Catches a bunch of forcewake warnings on snb+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-30testdisplay: compile fix for !DRM_PLANESDaniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28tests: add gem_unref_active_buffersDaniel Vetter
The crucial trick to reproduce the bug is that we need to have a decent pile of active bos to retire. Because we unref the bo after having it moved off the active list, our recursion depth in fdo bug #42180 is limited by the number of active objects that can retire at the same time. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42180 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-28testdisplay: allow overlay plane to be moved & scaled at runtimeJesse Barnes
For additional testing. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-27testdisplay: add stub disable_planes() functionJesse Barnes
To fix the compile with non-plane libdrms. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-10-24testdisplay: add sprite scaling and location supportJesse Barnes
Allow testdisplay to locate the sprite on the screen and potentially scale it using different crtc width/height vs the source width/height (determined by the resolution on the target pipe). Also fix exit, making sure we properly disable all the planes. Signed-off-by: Jesse Barnes <jbarnes@virtuougseek.org>
2011-10-16tests: add gem_hangcheck_forcewakeDaniel Vetter
Provokes the forcewake warning when the hangcheck runs and no one waits for the gpu (and hence holds the dev->struct_mutex). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-10-15tests/gem_fence_trash: some retuningDaniel Vetter
We actually want to test lru behaviour, so do a bit of work with the fence before yielding to the next thread (we use twice as many fences as there are, so yielding always is pretty bad, no matter how clever our fence stealing). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>