diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-07-10 16:45:26 -0700 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-13 19:29:38 +0100 |
commit | 140a67c13aad2595ee6c72e41d14d35a793158b5 (patch) | |
tree | 1b33508f86195317e338c91b7aa45f4cf51ad223 /tests/gem_shrink.c | |
parent | caea9c5b3aa1191c0152d7c0f22a94efca4fd048 (diff) |
lib/gt: Make use of dummyload library to create recursive batch
An hanging batch is nothing more than a spinning batch that never gets
stopped, so re-use the routines implemented in dummyload.c.
v2: Let caller decide spin loop size
v3: Only use loose loops for hangs (Chris)
v4: No requires
v5: Free the spinner
v6: Chamelium exists.
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com> #v3
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Antonio Argenziano <antonio.argenziano@intel.com>
Diffstat (limited to 'tests/gem_shrink.c')
-rw-r--r-- | tests/gem_shrink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_shrink.c b/tests/gem_shrink.c index 929e0426..c8e05814 100644 --- a/tests/gem_shrink.c +++ b/tests/gem_shrink.c @@ -208,7 +208,7 @@ static void hang(int fd, uint64_t alloc) gem_execbuf(fd, &execbuf); } - gem_close(fd, igt_hang_ring(fd, 0).handle); + gem_close(fd, igt_hang_ring(fd, 0).spin->handle); for (int i = 0; i <= count; i++) gem_madvise(fd, obj[i].handle, I915_MADV_DONTNEED); munmap(obj, obj_size); |