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>
main
Jinzhou Su 2021-03-22 05:44:30 +00:00 committed by Marek Olšák
parent cd3681976c
commit f5abbc3033
1 changed files with 1 additions and 1 deletions

View File

@ -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);