diff options
author | Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> | 2016-03-01 11:01:32 +0000 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@intel.com> | 2016-03-01 16:57:00 +0200 |
commit | 03c7f84eb1c95b9761bbff3c9fcaed8472c3c6fb (patch) | |
tree | 84de6693b6e50b5f2d196dbe4102030dc3b70e21 /lib/igt_gt.h | |
parent | 094e0cbabb9615c87d8e813a91f158fe439b536d (diff) |
lib: move i915_wedged_set to ig_gt.c
Upcoming tests will call it to recover from bad states caused by
hangcheck bugs.the function was renamed to igt_force_gpu_reset to have a
naming closer to other hang-related functions in the same file.
The value written to the debugfs has also been changed to -1; this makes
no differences with the current implementation but copes with upcoming
TDR changes (still under discussion) that should allow the resetting of
a mask of rings.
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r-- | lib/igt_gt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h index b7c5c4a9..ad993c1b 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -48,6 +48,8 @@ struct igt_hang_ring igt_hang_ctx(int fd, struct igt_hang_ring igt_hang_ring(int fd, int ring); void igt_post_hang_ring(int fd, struct igt_hang_ring arg); +void igt_force_gpu_reset(void); + void igt_fork_hang_helper(void); void igt_stop_hang_helper(void); |