summaryrefslogtreecommitdiff
path: root/tests/amdgpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-07-04 13:36:35 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-07-04 15:06:01 +0100
commit20f4aee0fbc5f5a0b375a512d340e4c453b67de9 (patch)
treef745644a2438485267f09c66a1a08beede2c2e79 /tests/amdgpu
parentaeb3f4143572b81a907921ad9442858aafe1931e (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.c2
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));