From 04bd964527bf1962d3fd94f863161f5828eba767 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 16 Dec 2015 19:51:08 +0000 Subject: [PATCH] igt/gem_exec_nop: Restore SLOW_QUICK loop terminator The upper bound for SLOW_QUICK was added for the benefit of the slow simulator, not because, as I wrongly thought, of the latency measurements. SLOW_QUICK was added in commit d1e862324b747a0ab5d985eaa6830076817231c5 Author: Damien Lespiau Date: Mon Mar 25 20:06:20 2013 +0000 tests: Instrument tests run in simulation to run quickly and dropped in commit 89bcdb9022fb7a1f66635b9f2546356ad0c0761a Author: Chris Wilson Date: Tue Dec 8 13:42:50 2015 +0000 igt/gem_exec_nop: Remove nop latency measurements Reported-by: Ben Widawsky Signed-off-by: Chris Wilson --- tests/gem_exec_nop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index 985b33fa..f8a4e8d7 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -71,7 +71,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam } gem_sync(fd, handle); - for (count = 1; count <= 1<<17; count <<= 1) { + for (count = 1; count <= SLOW_QUICK(1<<17, 1<<4); count <<= 1) { int loops = count; gem_set_domain(fd, handle, I915_GEM_DOMAIN_GTT, 0); while (loops--)