diff options
author | Tim Gore <tim.gore@intel.com> | 2015-08-19 12:10:16 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-08-25 17:20:14 +0100 |
commit | d3d56bf2afb45fb8a5f5dabbf41ced53d21252f3 (patch) | |
tree | 370f13b86ab120a4454e3933316349b5e6104910 /tests | |
parent | 71b85f9713cd48d589f607afc81d090b2afc2ed4 (diff) |
tests/gem_ctx_exec.c: only hang the ring we are testing
In the reset-pin-leak test we were calling
igt_set_stop_rings(STOP_RING_DEFAULTS) which sets the
stop_rings bits for all gpu engines. But we only submit
work to the render engine. When TDR is enabled (as it is
in Android currently) only the render engine gets reset,
which clears the stop_rings bit for the render engine but
not for the other engines. This causes the test to fail on
the second iteration because stop_rings is not clear.
So just set the stop_rings bit for the engine we are going
to hang, namely the render engine.
Signed-off-by: Tim Gore <tim.gore@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_ctx_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index 1277095b..5171d1fc 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -204,7 +204,7 @@ igt_main * the last context is leaked at every reset. */ for (i = 0; i < 20; i++) { - igt_set_stop_rings(STOP_RING_DEFAULTS); + igt_set_stop_rings(igt_to_stop_ring_flag(I915_EXEC_RENDER)); igt_assert(exec(fd, handle, I915_EXEC_RENDER, 0) == 0); igt_assert(exec(fd, handle, I915_EXEC_RENDER, ctx_id) == 0); gem_sync(fd, handle); |