summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinzhou Su <jinzhou.su@amd.com>2021-03-22 05:44:30 +0000
committerMarek Olšák <marek.olsak@amd.com>2021-03-24 11:34:04 -0400
commitf5abbc30336198002ff2777284c8ad8816d08757 (patch)
treedce49223fa8bff8361738dbe8e96ecbb585b11a2
parentcd3681976c3bbefa08236be86551c11bd4599c88 (diff)
test/amdgpu: remove static varible in Syncobj test
In syncobj test, wait thread and signal thread create simultaneously. The ptr for GFX IB and SDMA IP should be operated separately. With static, there will be risk that GFX NOP is in SDMA IB or SDMA NOP is in GFX IB, then GFX or SDMA hang caused. Signed-off-by: Jinzhou Su <Jinzhou.Su@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--tests/amdgpu/syncobj_tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/amdgpu/syncobj_tests.c b/tests/amdgpu/syncobj_tests.c
index 3a7b38eb..143c38b8 100644
--- a/tests/amdgpu/syncobj_tests.c
+++ b/tests/amdgpu/syncobj_tests.c
@@ -99,7 +99,7 @@ static int syncobj_command_submission_helper(uint32_t syncobj_handle, bool
uint32_t expired;
int i, r;
uint64_t seq_no;
- static uint32_t *ptr;
+ uint32_t *ptr;
r = amdgpu_cs_ctx_create(device_handle, &context_handle);
CU_ASSERT_EQUAL(r, 0);