summaryrefslogtreecommitdiff
path: root/tests/i915/gem_busy.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-12-31 09:14:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-01-02 13:07:27 +0000
commit75081c6bfb9998bd7cbf35a7ac0578c683fe55a8 (patch)
tree04142d967d8d71aa391887cfc0c812437c490da6 /tests/i915/gem_busy.c
parent0ba18cf75cafb51d1e72557528de4a1be640a85c (diff)
i915/gem_busy: Use a non-preemptible hanging batch
Ensure that the hangcheck notices the hanging batch by using a non-preemptible spin batch, as some future versions of hangcheck may allow a preemptible GPU hog to survive. 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_busy.c')
-rw-r--r--tests/i915/gem_busy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/i915/gem_busy.c b/tests/i915/gem_busy.c
index 76b44a5d..eb3d3ef2 100644
--- a/tests/i915/gem_busy.c
+++ b/tests/i915/gem_busy.c
@@ -427,7 +427,10 @@ static bool has_extended_busy_ioctl(int fd)
static void basic(int fd, unsigned ring, unsigned flags)
{
- igt_spin_t *spin = igt_spin_batch_new(fd, .engine = ring);
+ igt_spin_t *spin =
+ igt_spin_batch_new(fd,
+ .engine = ring,
+ .flags = IGT_SPIN_NO_PREEMPTION);
struct timespec tv;
int timeout;
bool busy;