diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-12-04 10:22:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-12-04 13:59:37 +0000 |
commit | 39e44dfa4c0ba2f979dab5ea81074343de0ad2cb (patch) | |
tree | 2fb1c5c9ac49cb0abbf265277f9e4d2bea615340 /benchmarks/gem_exec_nop.c | |
parent | 839a1426ce2a8510cdf0e648b06f28e7c33b64b6 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_exec_nop.c')
-rw-r--r-- | benchmarks/gem_exec_nop.c | 2 |
1 files changed, 2 insertions, 0 deletions
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--) |