From 39e44dfa4c0ba2f979dab5ea81074343de0ad2cb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 4 Dec 2015 10:22:16 +0000 Subject: benchmarks/gem_exec_nop: Flush retirement lists before executing wait-ioctl skips a couple of side-effects of retiring, so provoke them using set-domain before we sleep. Signed-off-by: Chris Wilson --- benchmarks/gem_exec_nop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'benchmarks/gem_exec_nop.c') diff --git a/benchmarks/gem_exec_nop.c b/benchmarks/gem_exec_nop.c index c22e1dac..aa2998c2 100644 --- a/benchmarks/gem_exec_nop.c +++ b/benchmarks/gem_exec_nop.c @@ -102,6 +102,8 @@ static int loop(unsigned ring, int reps) for (n = 0; n < reps; n++) { struct timespec start, end; int loops = count; + gem_set_domain(fd, gem_exec.handle, + I915_GEM_DOMAIN_GTT, 0); sleep(1); /* wait for the hw to go back to sleep */ clock_gettime(CLOCK_MONOTONIC, &start); while (loops--) -- cgit v1.2.3