summaryrefslogtreecommitdiff
path: root/tests/gem_busy.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-04-01 14:58:18 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-04-01 14:59:43 +0100
commit92ee3cc1f69af8b6c94b93463fe9dcf484b484b9 (patch)
treea674a98ca7882f002e5500109cbcf544f5efb29d /tests/gem_busy.c
parent0f5b03fa3801a8b6dcf72d4f402ff89d9863f180 (diff)
igt/gem_busy: Cap number of tries to create busy rings
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_busy.c')
-rw-r--r--tests/gem_busy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index 9858ca37..f128459c 100644
--- a/tests/gem_busy.c
+++ b/tests/gem_busy.c
@@ -279,6 +279,9 @@ static void store(int fd, unsigned ring, uint32_t flags)
gem_execbuf(fd, &execbuf);
__gem_busy(fd, obj[0].handle, &read[0], &write[0]);
__gem_busy(fd, obj[1].handle, &read[1], &write[1]);
+ igt_debug("After %d cycles: read[0]=%x read[1]=%x\n",
+ count, read[0], read[1]);
+ igt_require(count <= 1 << 12);
count <<= 1;
} while (read[0] == 0 || read[1] == 0);