diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-04 13:36:35 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-04 15:06:01 +0100 |
commit | 20f4aee0fbc5f5a0b375a512d340e4c453b67de9 (patch) | |
tree | f745644a2438485267f09c66a1a08beede2c2e79 /tests/amdgpu | |
parent | aeb3f4143572b81a907921ad9442858aafe1931e (diff) |
amdgpu/amd_prime: Reduce setup time
If we allow 5s (+20% systematic error) to construct the fences, we may
reasonably assume that it will take equally as long to consume them. As
we only have 10s before the vgem fence times out, there is no margin of
safety. Err on the side of safety and reduce it down to 2s, we won't test
importing as many fences simultaneously, but after the first full pages
we should be good at spotting errors!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r-- | tests/amdgpu/amd_prime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/amdgpu/amd_prime.c b/tests/amdgpu/amd_prime.c index bb68ccf3..9bf298a4 100644 --- a/tests/amdgpu/amd_prime.c +++ b/tests/amdgpu/amd_prime.c @@ -348,7 +348,7 @@ static void amd_to_i915(int i915, int amd, amdgpu_device_handle device) count = 0; size = 64 << 10; contexts = malloc(size * sizeof(*contexts)); - igt_until_timeout(5) { + igt_until_timeout(2) { /* must all complete within vgem timeout (10s) */ if (count == size) { size *= 2; contexts = realloc(contexts, size * sizeof(*contexts)); |