summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-06-15 19:47:25 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-06-16 01:04:50 +0100
commit077c6f7c3786334c5e5c34888ab446fdb4347331 (patch)
tree1dce67498da710eb5b21e6f559374b29bc4a7ddc /tests
parent4aa49a88acdaafed8235837d85a099ad941fc281 (diff)
igt/gem_eio: Make reset-stress safe
As we hang ctx0 quite frequently, it needs to be harden against being banned. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_eio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index e1aff639..5faf7502 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -642,7 +642,7 @@ static void test_inflight_internal(int fd, unsigned int wait)
*/
static void test_reset_stress(int fd, unsigned int flags)
{
- uint32_t ctx0 = gem_context_create(fd);
+ uint32_t ctx0 = context_create_safe(fd);
igt_until_timeout(5) {
struct drm_i915_gem_execbuffer2 execbuf = { };