diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-11-28 22:28:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-02-21 16:40:56 +0000 |
commit | e0e24a67dfcfa12e54b37367e06b33fa87591aac (patch) | |
tree | ed601550bff8c4d31c0e4def6a70a49e3bdc6e39 /lib/igt_gt.c | |
parent | e5088c8218d1c2b559a9e1645d34f929d05c3889 (diff) |
lib: Only require we have i915.reset module parameter for allow-hang
To control hang detection, we manipulate the i915.reset module
parameter. However, to be nice we should SKIP if we cannot modify the
parameter as opposed to outright FAILing.
References: https://bugs.freedesktop.org/show_bug.cgi?id=108891
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'lib/igt_gt.c')
-rw-r--r-- | lib/igt_gt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 64669672..c98a7553 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -176,8 +176,8 @@ igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags) if (!igt_check_boolean_env_var("IGT_HANG_WITHOUT_RESET", false)) igt_require(has_gpu_reset(fd)); - igt_assert(igt_sysfs_set_parameter - (fd, "reset", "%d", INT_MAX /* any reset method */)); + igt_require(igt_sysfs_set_parameter + (fd, "reset", "%d", INT_MAX /* any reset method */)); if ((flags & HANG_ALLOW_CAPTURE) == 0) { param.param = I915_CONTEXT_PARAM_NO_ERROR_CAPTURE; |