diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-27 12:47:56 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-30 11:22:36 +0000 |
commit | 8dddaa10fd51c4f462c107c00ed794a50086870b (patch) | |
tree | 65a5a5bfc7ffb274ea489d1677637637827346ab /tests/i915/gem_eio.c | |
parent | 33269e20e6d2e71f68854830183b6afc4fe946a6 (diff) |
i915/gem_eio: Check for allow-hang prior to issuing a reset
Check that we are allowed to hang/reset the GPU before we actually do so
for the first time.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_eio.c')
-rw-r--r-- | tests/i915/gem_eio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index 5250a414..09059c31 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -745,14 +745,14 @@ igt_main fd = drm_open_driver(DRIVER_INTEL); igt_device_drop_master(fd); - igt_require(i915_reset_control(true)); - igt_force_gpu_reset(fd); - igt_install_exit_handler(exit_handler); - gem_submission_print_method(fd); igt_require_gem(fd); igt_allow_hang(fd, 0, 0); + + igt_require(i915_reset_control(true)); + igt_force_gpu_reset(fd); + igt_install_exit_handler(exit_handler); } igt_subtest("throttle") |