diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-13 11:13:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-13 11:13:45 +0100 |
commit | 0a1fc45e862d4d5e4e9cba2b5c600588327f8f02 (patch) | |
tree | 628cd5cbab5c721b3e88cec567e91d925f985f2a /lib/igt_gt.h | |
parent | c947bfe563fe16bcad8b7b53b98e32de5aa0d7a6 (diff) |
igt/gem_busy: Prevent banning when running multiple hang tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r-- | lib/igt_gt.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h index a05450d3..8d6c5733 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -28,25 +28,28 @@ void igt_require_hang_ring(int fd, int ring); -typedef struct igt_hang_ring { +typedef struct igt_hang { unsigned handle; unsigned ctx; unsigned ban; unsigned flags; -} igt_hang_ring_t; +} igt_hang_t; + +igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags); +void igt_disallow_hang(int fd, igt_hang_t arg); #define HANG_POISON 0xc5c5c5c5 -struct igt_hang_ring igt_hang_ctx(int fd, - uint32_t ctx, - int ring, - unsigned flags, - uint64_t *offset); +igt_hang_t igt_hang_ctx(int fd, + uint32_t ctx, + int ring, + unsigned flags, + uint64_t *offset); #define HANG_ALLOW_BAN 1 #define HANG_ALLOW_CAPTURE 2 -struct igt_hang_ring igt_hang_ring(int fd, int ring); -void igt_post_hang_ring(int fd, struct igt_hang_ring arg); +igt_hang_t igt_hang_ring(int fd, int ring); +void igt_post_hang_ring(int fd, igt_hang_t arg); void igt_force_gpu_reset(void); |