amdgpu_ctx_wait_prev_fence
r = amdgpu_ctx_wait_prev_fence(p->ctx, p->entities[p->gang_leader_idx]);
int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx,