[Intel-gfx] [PATCH i-g-t] amdgpu/amd_prime: Reduce setup time

Chris Wilson chris at chris-wilson.co.uk
Wed Jul 4 12:38:23 UTC 2018


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.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/amdgpu/amd_prime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/amdgpu/amd_prime.c b/tests/amdgpu/amd_prime.c
index bb68ccf31..6c64c3af9 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) {
 		if (count == size) {
 			size *= 2;
 			contexts = realloc(contexts, size * sizeof(*contexts));
-- 
2.18.0



More information about the Intel-gfx mailing list