From 0a8fad5f5c2197c7585daa04e414fd9c67042e10 Mon Sep 17 00:00:00 2001 From: Lang Yu Date: Wed, 9 Nov 2022 14:29:57 +0800 Subject: [PATCH] tests/amdgpu: use AMDGPU_TIMEOUT_INFINITE to query fence We need to wait longer when running on emulator. Signed-off-by: Lang Yu --- tests/amdgpu/basic_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 42176c00..0e4a357b 100644 --- a/tests/amdgpu/basic_tests.c +++ b/tests/amdgpu/basic_tests.c @@ -1293,7 +1293,7 @@ static void amdgpu_semaphore_test(void) fence_status.ip_instance = 0; fence_status.fence = ibs_request[1].seq_no; r = amdgpu_cs_query_fence_status(&fence_status, - 500000000, 0, &expired); + AMDGPU_TIMEOUT_INFINITE, 0, &expired); CU_ASSERT_EQUAL(r, 0); CU_ASSERT_EQUAL(expired, true); @@ -1334,7 +1334,7 @@ static void amdgpu_semaphore_test(void) fence_status.ip_instance = 0; fence_status.fence = ibs_request[1].seq_no; r = amdgpu_cs_query_fence_status(&fence_status, - 500000000, 0, &expired); + AMDGPU_TIMEOUT_INFINITE, 0, &expired); CU_ASSERT_EQUAL(r, 0); CU_ASSERT_EQUAL(expired, true);