summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-09-03tests/gem_reloc_vs_gpu: add forked versionshangDaniel Vetter1-0/+33
Seems to result in insta-hangs on my snb here ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-03tests/gem_reloc_vs_gpu: Add faulting reloc testsDaniel Vetter1-17/+102
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-03lib/drmtest: include sys/mman.h from drmtest.hDaniel Vetter35-34/+1
We need it for mmapping to get at PROT_READ|WRITE anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-03lib/drmtest: extract gem_execbuf helperDaniel Vetter4-26/+14
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-03tests/gem_reloc_vs_gpu: add interruptible versionDaniel Vetter2-19/+42
Exercise a bug where we've failed to propagate the error code correctly. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-02kms_flip: Fix use of fb_width for PAN subtestsChris Wilson1-10/+7
We need to be careful to remember that fb-width is not always the same as hdisplay, since for panning we allocate a larger framebuffer. So fix up the printfs to use hdisplay/vsisplay since that should be uniform across the array. Regression from commit 919d68901187fa797a9b648fcf87c838fae22fa3 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Aug 29 15:33:53 2013 +0100 kms_flips: Operate on an array of crtc Buzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68832 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-02lib/drmtest: Improve output when igt_waitchildren failsDaniel Vetter1-3/+7
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-02test/gem_concurrent_blt: remove hack for testing igt_forkDaniel Vetter1-2/+0
Oops, this shouldn't have been committed ... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68830 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-09-02tests/gem_tiled_swapping: fix igt_require conversionDaniel Vetter1-1/+1
I seem to be incompetent at logic ... Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68831 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-30tests/gem_mmap_gtt: fix access checksDaniel Vetter1-2/+2
Reading manpages advisable ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-30tests/gem_mmap_gtt: clarify access check checks a bitDaniel Vetter1-2/+2
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29lib/drmtest: Print info when children died due to signalsDaniel Vetter1-1/+6
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29tests/gem_evict_everything: add swapping and forked subtestsDaniel Vetter1-9/+157
Much better at hitting the list corruption here on my machines than what we have thus far. Note that somehow I just can't reproduce the bug any more. No idea why. But I guess it's time to simply push this pile out. v2: Limit threads and rounds to something reasonable. v3: Use igt_permute_array to avoid EINVAL due to duplicated bo. v4: - Add a variant of the forked tests with multiple drm fds. - Tune the swapped forked tests a bit to complete in a reasonable amount of time. v5: Add some memory pressure from the cpu by using cpu mmaps (which directly hit shmem, so bypass gem completely). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29tests/gem_evict_*: Fix leak in copyDaniel Vetter2-0/+2
This turned out to be the reason one one of my tests was hitting the list corruption bug - we need a good deal more memory pressure. So I'll now add a new testcase for that. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29tests/gem_tiled_swapping: Use igt_requireDaniel Vetter1-13/+3
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29lib/drmtest: extract igt_fork from gem_concurrent_bltDaniel Vetter3-34/+103
Making sure that we correctly collect the exit codes from all children is a bit a hassle. So add another magic igt codeblock for easy forking and joining. Note that children are (currently at least) not allowed to call igt_skip. Add an assert to enforce this. v2: - Properly propagate the exit code. - Fix the segfault. - Add a child int and num_children paramter to the magic codeblock as suggested by Chris Wilson. - Don't dump noise into stdout when a child thread fails, the parent will do that for us already. v3: Now with some docs. v4: Fixup igt_waitchildren to properly reset state so it can be used again. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-29kms_flip: Remove debugging leftoversChris Wilson1-2/+0
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flip: Set everything to zero to disable a CRTCChris Wilson1-3/+11
Just setting fb=0 is not enough as the kernel thinks userspace is insane. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flip: Use the first mode if we find no matching modes for the crtc pairChris Wilson1-1/+5
We will check that we can set the mode on both crtcs before use, so hopefully this will work... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flip: Hook up primary events for page-flipsChris Wilson1-19/+28
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flip: Run on pairs of connected outputs.Chris Wilson1-13/+209
The goal is to flip the same framebuffer on a pair of CRTCs (clone mode) and check that (a) the flip works in all combinations of workloads, and (b) that we can hit the desired refresh rate under the simplest, most ideal of conditions. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flips: Operate on an array of crtcChris Wilson1-55/+79
This should be no functional change as we operate on an array of crtc[1]. Later we shall test clone mode across a number of crtc. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29kms_flip: Exercise flip-vs-renderChris Wilson4-32/+103
For machine with split BCS/RCS rings, we also need to test whether we correctly wait upon outstanding render work before flipping and changing modes. This should also serve to exercise the ring selection code for flips. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Increase idle timeout to 30sChris Wilson1-4/+6
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Hide idle processesChris Wilson2-1/+17
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Autohide Flip counter after a period of inactivityChris Wilson1-25/+28
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-29overlay: Monitor per-ring context switch rateChris Wilson3-11/+61
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28overlay: Make it easier to reniceChris Wilson1-2/+10
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-28overlay: Generate unique name for snapshotsChris Wilson1-3/+9
Since we no longer increment the counter every frame, we need to use a timestamp instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Add number of running processes to CPU displayChris Wilson3-4/+23
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Include the core count in the cpu info lineChris Wilson1-1/+3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Scale the CPU busy value by the numer of active coresChris Wilson3-2/+14
Having 100% always mean one processor fully utilised is much easier to understand (than having to remember how many cores are on each machine and scale appropriately). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Tidy presentation of ring busy valuesChris Wilson1-3/+11
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Restore the correct default font sizeChris Wilson1-7/+7
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: read rc6 status from perfChris Wilson4-29/+98
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Add support for multi-monitor positioningChris Wilson8-87/+72
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Set the text color in case we do not have RC6Chris Wilson1-0/+2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: improve alignment of some labelsChris Wilson1-26/+36
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Read interrupts from perfChris Wilson2-23/+56
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Read frequency from perfChris Wilson2-22/+91
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-27overlay: Read power from perf_eventsChris Wilson8-73/+131
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26overlay: Align the process names in the memory tableChris Wilson1-2/+2
And use a shade of gray to distinguish from the total instead. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-26lib/drmtest: restore in_fixture assertDaniel Vetter1-0/+6
I didn't really want to revert those, too ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26Revert "tests/gem_concurrent_blit: Fix segmentation fault"Daniel Vetter2-6/+2
This reverts commit 912a7d855600aadb937517ec5bab26bfd9b8953d. Now fixed for real! Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26lib/drmtest: don't complete fixtures with a longjmpDaniel Vetter2-2/+11
Longjmp creates havoc with stack variables of the current stackframe. And since fixtures should be used to set up such variables creating havoc isn't a great idea. With this I can revert a bunch of bogus patches I've done to paper over this by moving stack variables to be global. The same issue is actually a feature for subtest blocks since subtests should be independant anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26tests/gem_mmap_gtt: Add testcase for the vma access managerDaniel Vetter1-0/+40
Currently fails since the patches aren't merged yet. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26tests/gem_mmap: Convert to subtestsDaniel Vetter2-34/+41
I wanted to write a testcase for gtt mmap access restriction checking and only noticed after conversion to subtests that this here is for cpu mmaps ;-) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-26tests/kms_setmode: don't save/restore vt graphics for dry-runImre Deak2-4/+5
Signed-off-by: Imre Deak <imre.deak@intel.com>
2013-08-26lib/drmtest: fix handling of -h --help argument parsingImre Deak1-20/+26
So far we handled -h or --help arguments properly only if the test called igt_subtest_init_parse_opts(). Fix this for igt_subtest_init() callers too. Make sure we still don't exit for any other unknown options, which the caller may parse with a second getopt scan. Signed-off-by: Imre Deak <imre.deak@intel.com>
2013-08-26overlay: Trim the padding slightlyChris Wilson1-49/+53
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>