From 92ee3cc1f69af8b6c94b93463fe9dcf484b484b9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 1 Apr 2016 14:58:18 +0100 Subject: igt/gem_busy: Cap number of tries to create busy rings Signed-off-by: Chris Wilson --- tests/gem_busy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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); -- cgit v1.2.3