summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-15build: Add CAIRO_FLAGS to the debugger compilationassemblerDamien Lespiau1-0/+1
The library in lib/ exposes <cairo.h> in its main header and thus users must be able to include it.
2013-01-15build: Integrate the merged gen assembler in the build systemDamien Lespiau18-344/+52
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-01-14Merge remote-tracking branch 'assembler/master'Damien Lespiau67-0/+8642
2013-01-14tests/testdisplay.c: Fix the issue which don't display anything until '-o' ↵Yi Sun1-1/+1
given. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-01-08tests/gem_seqno_wrap: skip if debugfs entry is not thereMika Kuoppala1-14/+29
Return error code 77 to skip test if debugfs entry is not available. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59116 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-01-07tests: Add basic testing of gem_pinChris Wilson3-0/+248
Including exercising races versus interrupts. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-01-06Fix out of bounds memory accessThomas Jarosch1-1/+1
cppcheck reported: [tools/intel_infoframes.c:836]: (error) Width 31 given in format string (no. 1) is larger than destination buffer 'option[16]', use %15s to prevent overflowing it. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-27tests/testdisplay: Specify the display.Yi Sun1-3/+6
It can specify the display by the connector id which list as the first column of ./testdisplay -i. E.g. command "./testdiplay -o 1,4" means setting number 4 mode line on the display with connector id 1. v2. Specify the display by id which can be got from option '-i' Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-12-21tests/gem_seqno_wrap: adapt to new next_seqno debugfs interfaceMika Kuoppala1-103/+114
- adapt to use debugfs interface that can set seqno to arbitrary value - fix dynamic buffer allocation Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-20tests/prime_nv_pcopy: guard output for subtest listingDaniel Vetter1-1/+3
2012-12-20intel/udl tests;Dave Airlie3-0/+189
basic test to share a BO, add as a udl framebuffer, and call the dirty ioctl on it so we cause the vmapping to happen [danvet: Snatched up from Dave's prime branch, ocd name and bikeshed whitespace a bit.]
2012-12-20tests: add testcase to check igt runtime enviromentDaniel Vetter2-0/+9
Now that we've abandonded the autohell testrunner, need to port this over. Easiest is to just add another testcase ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-18kms_flip: Add -lrt backVille Syrjälä1-1/+1
kms_flip doesn't build due to missing -lrt. The build was broken due to a typo in this commit: commit acdf7171264a5139caabb78127c9eef5080c0682 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Sat Dec 15 00:48:47 2012 +0100 tests: s/flip_test/kms_flip OCD wins! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> For some reason libudev.pc brings in -lrt as well, which probably caused the typo to go unnoticed. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-18tests/kms_flip: don't die on stdin inputDaniel Vetter1-1/+0
Seems to be a leftover from fliptest ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17lib: extract kmstest_get_pipe_from_crtc_idDaniel Vetter3-14/+15
2012-12-17tests/gem_flink: enable flink lifetime subtestDaniel Vetter1-1/+1
Somehow fumbled this. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17tests: s/flip_test/kms_flipDaniel Vetter3-3/+3
OCD wins! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17tests/flip_test: add flip vs. rmfb testcaseDaniel Vetter1-5/+14
To check that the kernel doesn't fall over when tearing down a life fb. Confirmed that it exercises the right codepath with printk. Also fix an issue Imre introduced in commit fe7fea0be3b5f418b76dc7834e73b31827484429 Author: Imre Deak <imre.deak@intel.com> Date: Tue Oct 16 04:09:43 2012 +0300 flip_test: add event sequence number tracking Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17flip_test: recreate fbDaniel Vetter1-5/+35
... to test the latency of rmfb, getfb and addfb. Since if those still can cause spikes, we have a problem. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-17tests/flip_test: split out timestamp checks into subtestDaniel Vetter1-7/+8
This way we can still test basic pageflips on kernels with broken locking while still failing when the timestamps/framecounts are wrong. Also disable the delay check on analog tv, timings on those ports are truely screwed-up Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-16tests/gem_seqno_wrap.c: include <signal.h> for definition of kill()Alan Coopersmith1-0/+1
Fixes build failure on Solaris: gem_seqno_wrap.c: In function ‘run_cmd’: gem_seqno_wrap.c:328:3: error: implicit declaration of function ‘kill’ [-Werror=implicit-function-declaration] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-15tests/prime_nv_pcopy: convert to subtestsDaniel Vetter2-4/+9
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-15tests/prime_nv_tests: convert to subtestsDaniel Vetter2-35/+39
And properly fail the failing ones - bloody hate it when the tests lie to me ...
2012-12-13tools: intel_gpu_abrt bug report template.Rodrigo Vivi1-0/+32
checking if file has been generated and output a template for a good bug report
2012-12-13tools: intel_gpu_abrt checking for root accessRodrigo Vivi1-0/+5
needed by other igt tools that are collecting more usefull information.
2012-12-13tools: intel_gpu_abrt collecting more useful infoRodrigo Vivi1-0/+12
2012-12-13tools: intel_gpu_abrt "get" functionRodrigo Vivi1-6/+14
A function to make it easy to collect any file or directory needed later.
2012-12-13tests/gem_seqno_wrap: dont sync when crossing half of seqno spaceMika Kuoppala1-45/+123
For seqno comparison to work they have to be less than UINT32_MAX/2 apart. So when crossing the half way of seqno space, be careful not to sync anything as this causes gpu hangs. Do real test with syncing only when we are about to wrap. v2: Don't spam if no rendercopy was found, only warn once
2012-12-13flip_test: fix link error due to missing -lrtImre Deak1-0/+1
Needed by clock_gettime(). This isn't a problem if libudev is used, as that pulles librt with it. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-12tests/gem_*_tiled_blits: Use the vma limiter to present address space exhaustionChris Wilson2-5/+6
References: https://bugs.freedesktop.org/show_bug.cgi?id=58113 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-12tests/gem_tiled_pread_pwrite: Allow the kernel to reap the GTT address spaceChris Wilson1-0/+2
Otherwise we can not run this test on 32-bit systems. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-12tests/gem_tiled_swapping: Don't needless crash on 32-bit systemsChris Wilson1-1/+9
Only 32-bit of mmap address space, but with PAE we may be trying to allocate more than 4 GiB of memory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-10tests/prime_nv_pcopy.c: fail if nouveau_pushbuf_kick fails rather than spinningMaarten Lankhorst1-3/+4
2012-12-07tests: disable gem_exec_bad_domains/conflicting-write-domainDaniel Vetter1-0/+3
Kernel checks have been eased in commit c1f093e09c4ceb583b04d11e767bb3201812e4d2 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Mon Dec 3 11:49:07 2012 +0000 drm/i915: Remove check for conflicting relocation write-domains
2012-12-06tests: Add a basic test for tiled render copiesChris Wilson3-0/+161
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-06Implement a working gen7 rendercopyChris Wilson3-764/+1674
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57825 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-06tests: Add basic test for render blitsChris Wilson2-0/+172
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-06pci: Search for the first Intel GPU, rather than assume a fixed slotChris Wilson1-1/+20
Everywhere else we search for a match based on an Intel display device, so if the quick check of the fixed slot fails, fallback to walking the PCI bus looking for a match. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-12-05tests/gem_exec_nop: implemented correct SKIP reportingDaniel Vetter1-1/+5
I think I need a testsuite for test writing.
2012-12-05tests/gem_dummy_reloc_loop: some updatesDaniel Vetter2-27/+31
- convert to subtests - shut up stderr output for successful runs Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-05tests: fixup gem_exec_nop subtestsDaniel Vetter2-2/+4
Note to self: No more pushing after 12 o'clock midnight. Not a good idea, too embarassing.
2012-12-04tests: run no-op batches on all ringsDaniel Vetter1-14/+32
For Ben ...
2012-12-04tests: add gem_seqno_wrapMika Kuoppala2-0/+568
This test uses debugfs entry to set next_seqno close to a wrapping point and then creates a load with dependant buffer objects or with specified command to induce the wrap. v2: Use new get_rendercpy_func as suggested by Daniel Vetter. Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-04README: piglit requires results-file for testrunsDaniel Vetter1-1/+1
Noticed by Mika.
2012-12-04tests/Makefile.am: Add a comment about the subtest infrastructureDaniel Vetter1-0/+3
2012-12-04README: add quick howto for using piglit as testrunnerDaniel Vetter1-0/+24
2012-12-01tests/gem_flink: check flink lifetime rulesDaniel Vetter1-0/+37
flink names may not be destroyed while there's still a userspace handle around. Test this by - exporting an flink name from fd2 - open a gem bo from that name in fd - close fd2, then open a new drm file (so that the original handle disappears) - check whether the same flink name still works
2012-12-01tests/gem_exec_bad_domains: add more bad domainsDaniel Vetter2-33/+150
- mulitple write domains - conflicting write domains - not-yet-defined gpu domains Also convert to subtests while at it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-12-01tools/intel_reg_dumper: add some cpt/ppt debug regsDaniel Vetter2-0/+19
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-11-29tests/gem_stress: prevent segfault in getopt parsingDaniel Vetter1-0/+1
Needs a terminal element in the long option array.