diff options
author | Lang Yu <Lang.Yu@amd.com> | 2022-11-09 14:29:57 +0800 |
---|---|---|
committer | Lang Yu <Lang.Yu@amd.com> | 2022-11-09 14:57:14 +0800 |
commit | 0a8fad5f5c2197c7585daa04e414fd9c67042e10 (patch) | |
tree | 4c1258fed83be4ae42938dbf5216f81b63ab32e7 | |
parent | b9ca37b3134861048986b75896c0915cbf2e97f9 (diff) | |
download | drm-0a8fad5f5c2197c7585daa04e414fd9c67042e10.tar.gz |
tests/amdgpu: use AMDGPU_TIMEOUT_INFINITE to query fence
We need to wait longer when running on emulator.
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
-rw-r--r-- | tests/amdgpu/basic_tests.c | 4 |
1 files 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); |