summaryrefslogtreecommitdiff
path: root/tests/gem_wait_render_timeout.c
AgeCommit message (Collapse)Author
2014-08-30batch: Specify number of relocations to accommodateChris Wilson
Since relocations are variable size, depending upon generation, it is easier to handle the resizing of the batch request inside the BEGIN_BATCH macro. This still leaves us with having to resize commands in a few places - which still need adaption for gen8+. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29Prepare for 64bit relocation addressesChris Wilson
This reveal that quite a few locations were writing relocation offsets but only allowing for 32 bit addresses. To reveal such places in active tests, we also now double check that we do not use more batch space than declared. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-29igt: Prettify igt_assert_eq() failure messagesChris Wilson
This just improves the language about the exact failure to reduce confusion. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-07-23tests: remove unused getopt header includesThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2014-05-14tests: sprinkle igt loggingDaniel Vetter
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-23lib: extract igt_aux.[hc]Daniel Vetter
And shovel all the various helpers in there. Also move igt_set_vt_graphics_mode to igt_kms.h since the function is implemented in igt_kms.c. And it fits better. I kinda missed this in the prep work. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: rename intel_gpu_tools.h to intel_io.hDaniel Vetter
With the header cleanup we can now give this header a suitable name, since it now really only contains register access and other I/O functions and assorted definitions. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: unnecessary header removal for drmtest.h, part 1Daniel Vetter
Brought a few missing headers to light in ioctl_wrappers.h, too. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22tests|lib: remove assert.h includesDaniel Vetter
Only the igt core and non-test tools should have asserts to catch internal errors, tests and helper libraries should all user igt_asert instead. Fix things up where assert instead of igt_assert was used. One tiny step towards header sanity. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-22lib: make rendercopy.h an internal headerDaniel Vetter
And move the public interfaces into intel_batchbuffer.[hc]. A bit messy since we are fairly inconsistent with our header #include handling. Also exclude rendercopy.h from the documentation. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2014-03-19tests/gem_wait_render_timeout: Fix for BDWRodrigo Vivi
Update XY_COLOR_BLT command for Broadwell. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2014-03-19tests/gem_wait_render_timeout: Use XY_COLOR_BLT instead of COLOR_BLT.Rodrigo Vivi
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
2014-03-19gem_wait_render_timeout: use igt_assert_cmpintBen Widawsky
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2013-12-10tests: roll out igt_simple_init/igt_simple_mainDaniel Vetter
Also use igt_skip a bit more to simplify some of the tests. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-11-27lib: Add gem_bo_busyVille Syrjälä
Move gem_bo_busy() from gem_wait_render_timeout.c to lib. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2013-09-25tests: use igt_assert/igt_require moreDaniel Vetter
With the new _f variants we can replace almost all of them. Also remove a ton of checks for argc != 1, they're a bit useless ... Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13tests: s/exit(EXIT_FAILURE)/igt_fail(1)/Daniel Vetter
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-13tests: s/assert/igt_assertDaniel Vetter
Just a wholesale rollout for now, we can refine later on. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-08-12s/drmtest_/igt_/Daniel Vetter
Requested-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2013-07-18tests: Black list tests we don't want to run on simulationDamien Lespiau
Let's start by a small set of tests, to eventually consider running more. The current list should then be: gem_mmap gem_pread_after_blit gem_ring_sync_loop gem_ctx_basic gem_pipe_control_store_loop gem_storedw_loop_render gem_storedw_loop_blt gem_storedw_loop_bsd gem_render_linear_blits gem_tiled_blits gem_cpu_reloc gem_exec_nop gem_mmap_gtt v2 add (Daniel Vetter) gem_exec_bad_domains gem_exec_faulting_reloc gem_flink gem_reg_read gem_reloc_overflow gem_tiling_max_stride prime_* Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2012-10-02gem_wait_render_timeout: Fix SKIP return codeChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2012-08-24Fall back to CLOCK_MONOTONIC on systems without CLOCK_MONOTONIC_RAWAlan Coopersmith
Solaris has not yet adopted this Linux extension Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2012-06-26tests/gem_wait_rendering_timeout: needs more fudgeDaniel Vetter
Due to the way we calculate the workload by doubling it each time we might end up with almost twice as much as we want. Hence increase our fudge by 1.5 to account for that. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50666
2012-05-30tests/gem_wait_rendering_timeout: check polling behaviourDaniel Vetter
... with timeout=0. We have special code in the kernel to optimize that one.
2012-05-29lib/gem_wait_rendering_timeout: sprinkle busy_ioctl checksDaniel Vetter
While we have that testcase, let's cross-check the busy ioctl.
2012-05-29tests/gem_wait_rendering_timeout: test the timeout caseDaniel Vetter
When I've first tried this it somehow failed, but I can't reproduce this any more. I guess I've hunted a ghost.
2012-05-29tests/gem_wait_rendering_timeout: fix up the autotunerDaniel Vetter
duuh
2012-05-29tests/get_wait_rendering_timeout: fixup the auto-tunerDaniel Vetter
- start at 1 iterations - actually adjust the number of iterations like the comment claims
2012-05-29tests/gem_wait_rendering_timeout: some fixes for the blt functionDaniel Vetter
- widht/height are in pixel, and the cmd uses 32bit, so we need to adjust this. - we write to the buffer, set the right reloc domain.
2012-05-29tests/gem_wait_rendering_timeout: properly skip testDaniel Vetter
also assign the timeout value unconditionally, we want to know it even when we've timeout out.
2012-05-29tests/gem_wait_rendering_timeout: make it compileDaniel Vetter
... we need to do this libdrm depency dance. Or just copy&paste it.
2012-05-25tests/wait render timeout testBen Widawsky
Assures that signals interrupting the wait works properly. Because of the scheduling around signals, interrupted waits will *seem* faster as the GPU continues to work while all the CPU scheduling stuff happens. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>