- 12 Aug, 2013 7 commits
-
-
Daniel Vetter authored
Requested-by:
Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
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>
-
Daniel Vetter authored
Now that callers must setup the longjmp target (we can't do that in run_subtest itself since that callframe won't survive) tests shouldn't call this function directly any more. Make this clear by adding a __ prefix. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
This way we can rip out all the skip handling from the test control flow, and additionally (by using drmtest_retval()) even get correct exit codes. The only tricky part is that when we only want ot skip parts of a test (like for gem_pread and gem_pwrite) we need to split out those parts as subtests. But no addition of control-flow is required, the set/longjmp magic in the helpers all makes it happen. Also we make extensive use of the behaviour of drmtest_skip to skip all subsequent subtests if it is called outside of a subtest. This allows us to re-flatten the control flow a lot. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
If we skip a test and and fail somewhere the parent might die before the child. So add some cleanup to handle this case. Also make sure that the parent indeed waits for the child to die. This is required to make the latest version of the piglit runner happy, it tends to wait for all zombies to disappear. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
Exitcode handling in igt testcases has too ugly facets in combination with subtests: - When individual subtest needed to be skipped for different reasons we need to painstakingly thread this information through the test to make sure that we still succeed if just one testcase worked (for running it with the simple automake test runner in igt). But it also needs to correctly report the skip exit value if only this one skipped testcase has been run (e.g. when run with piglit or in QA's test infrastructure). - We'd prefer to easily skip (and also fail) subtests without hampering other subtests. Again threading the return value of each subtest through the code is cumbersome. To simplify test case writing use longjmps to be able to get out of subcases easily. But since longjmps are funny things thug it all away into the newly added drmtest_subtest_block macro. Note that if drmtest_skip is called outside of a subtest, but in a testcase with subtests all subsequent subtests will be automatically skipped. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 10 Aug, 2013 1 commit
-
-
Chris Wilson authored
-
- 06 Aug, 2013 1 commit
-
-
Chris Wilson authored
-
- 29 Jul, 2013 1 commit
-
-
Imre Deak authored
Needed by the next patch. Signed-off-by:
Imre Deak <imre.deak@intel.com>
-
- 23 Jul, 2013 2 commits
-
-
Daniel Vetter authored
Requires us to rename a few things in the gem_flink test to avoid variable shadowing. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Daniel Vetter authored
This exercise the bug fixed in commit 94a335dba34ff47cad3d6d0c29b452d43a1be3c8 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Wed Jul 17 14:51:28 2013 +0200 drm/i915: correctly restore fences with objects attached For fun I've also added a subtest for the inverse transition. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 19 Jul, 2013 3 commits
-
-
Damien Lespiau authored
So when the environment value isn't set, one can specify the default value to return. Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com>
-
Daniel Vetter authored
Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Xiong Zhang authored
V2: add exit handler to enable prefault (Daniel) Signed-off-by:
Xiong Zhang <xiong.y.zhang@intel.com>
-
- 18 Jul, 2013 2 commits
-
-
Damien Lespiau authored
This will allow us to explicitely blacklist tests we don't want to run on simulation. Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com>
-
Damien Lespiau authored
It's more accurate this way as the quick mode is really useful for in the simulation environment. v2: Use the INTEL_ prefix to have a chance to share the same environment variable as piglit OpenGL tests Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com>
-
- 03 Jul, 2013 2 commits
-
-
Chris Wilson authored
Do not suggest retrying as root if we already are.
-
Chris Wilson authored
In the atexit handler, we attempt to quiesce the GPU. This involves opening a fd - which will fail if the test is not being run as root and will obliterate the test status and pollute the output.
-
- 29 Jun, 2013 1 commit
-
-
Daniel Vetter authored
Otherwise the thing doesn't reliably die when run from the piglit framework somehow. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 07 Jun, 2013 1 commit
-
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com>
-
- 05 Jun, 2013 6 commits
-
-
Imre Deak authored
Add a test going through all connectors/crtcs/modes/formats painting to a front FB with CPU or painting to a back FB with CPU and blitting it to the front FB. Only formats understood by cairo are supported for now. Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com>
-
Imre Deak authored
Factor out parts that will be used by an upcoming patch adding kmstest_create_fb2. Also call the fb paint functions directly, there is not much point in passing a function pointer for that. Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com>
-
Imre Deak authored
This is used by multiple test cases, so make it shared. Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com>
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com>
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com> [v3: fix mode printing in paint_output_info() botched by debugging leftover :/ ]
-
Imre Deak authored
These are used by multiple test cases, so make them shared. Signed-off-by:
Imre Deak <imre.deak@intel.com> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@gmail.com>
-
- 28 May, 2013 2 commits
-
-
Imre Deak authored
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64270 v2: - Make sure also that the GPU is idle at start and error exit of any test using drm_open_any(). (Daniel) v3: - actually call gem_quiescent_gpu() at exit Signed-off-by:
Imre Deak <imre.deak@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 22 May, 2013 2 commits
-
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 08 May, 2013 1 commit
-
-
Imre Deak authored
Signed-off-by:
Imre Deak <imre.deak@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 04 May, 2013 1 commit
-
-
Zhong Li authored
1. add functions check kernel enable a ring or not. 2. add function gem_get_num_rings() to check how many rings kernel has enable. 3. gem_ring_sync_loop.c will call gem_get_num_rings() directly instead of original static fucntion get_number_rings(). Signed-off-by:
Zhong Li <zhong.li@intel.com> [Ben: Wrapped commit message + whitespace fixes] Signed-off-by:
Ben Widawsky <ben@bwidawsk.net>
-
- 26 Apr, 2013 1 commit
-
-
Chris Wilson authored
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63941
-
- 07 Apr, 2013 1 commit
-
-
Daniel Vetter authored
Avoids tests with a spurious WARN result in piglit. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 22 Mar, 2013 1 commit
-
-
Damien Lespiau authored
For thet next one wondering about that. Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com>
-
- 04 Mar, 2013 1 commit
-
-
Damien Lespiau authored
Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com>
-
- 13 Feb, 2013 1 commit
-
-
Damien Lespiau authored
In some environments, we don't really want to loop 100000 times or allocate 152352621 buffers because it makes the tests too long to run. This adds a way to specify "quick" values to reduce the time taken by certain tests. Signed-off-by:
Damien Lespiau <damien.lespiau@intel.com> Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-
- 17 Dec, 2012 1 commit
-
-
Daniel Vetter authored
-
- 28 Nov, 2012 1 commit
-
-
Daniel Vetter authored
To make these helpers as least invasive as possible simply initialize the options with a getopt parser and let the control flow be steered with a simple helper which gets the subtest name as an argument. The only tricky part for using it is that the subtest check helper doubles up as the conduit to enumerate tests (and in that mode prevents any test from being run). It is therefore important that nothing gets printed to stdout outside of these checks. Signed-off-by:
Daniel Vetter <daniel.vetter@ffwll.ch>
-