summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-09-08 14:50:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-09-08 14:54:04 +0100
commit61b19a4b8f68d4cf82382f7776c740311b9d0be0 (patch)
tree140c40c2be030e57759555d9575b1db5f802e18e /tests
parent4cce7155c09dbd6c262dc0251dacc99ff3267be7 (diff)
igt/gem_exec_nop: Refine the target calculation
The ideal execution time cannot be faster than the fastest ring! If all other rings were infinitely fast, the seed would be max/nengine. Given each is finite, this puts a floor on the ideal execution time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_nop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index 451cb477..f4f7a0fa 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -252,7 +252,7 @@ static void series(int fd, uint32_t handle, int timeout)
time = elapsed(&start, &now) / count;
igt_info("All (%d engines): %'lu cycles, average %.3fus per cycle [expected ideal %.3fus]\n",
- nengine, count, 1e6*time, 1e6*max/nengine);
+ nengine, count, 1e6*time, 1e6*((max-min)/nengine+min));
/* The rate limiting step should be how fast the slowest engine can
* execute its queue of requests, as when we wait upon a full ring all