summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDerek Morton <derek.j.morton@intel.com>2015-11-11 14:46:58 +0000
committerThomas Wood <thomas.wood@intel.com>2015-11-13 14:08:54 +0000
commitc8beadb811bdc2b9c21f95144852f3e55867b546 (patch)
treef7888b1747af5b7736951c9aa1355d504ef84437 /tests
parent464424dcee9b22cf66bd33f5be5e93397aa15e24 (diff)
tests/gem_exec_nop: Improved test run time
Reduced the Sleep period to 200mS and reduced the repetition count to 7 to decrease the test run time significantly. v2: Changed uS to us v3: removed the output formatting change as the issue will be addressed in a seperate patch from Thomas Wood. v4: mS -> ms Signed-off-by: Derek Morton <derek.j.morton@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_exec_nop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index a287d08a..cf696967 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -133,7 +133,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
gem_sync(fd, handle);
for (count = 1; count <= SLOW_QUICK(1<<17, 1<<4); count <<= 1) {
- const int reps = 13;
+ const int reps = 7;
igt_stats_t stats;
int n;
@@ -142,7 +142,7 @@ static void loop(int fd, uint32_t handle, unsigned ring_id, const char *ring_nam
for (n = 0; n < reps; n++) {
struct timespec start, end;
int loops = count;
- sleep(1); /* wait for the hw to go back to sleep */
+ usleep(200000); /* wait 200ms for the hw to go back to sleep */
clock_gettime(CLOCK_MONOTONIC, &start);
while (loops--)
do_ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf);