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
parent
cd3681976c
commit
f5abbc3033
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue