Skip to content

Commit

Permalink
Once signald job->fence, drm will cleanup job->base. Thus tracepoint …
Browse files Browse the repository at this point in the history
…should be in before that to avoid race. (#218)

Signed-off-by: Min Ma <min.ma@amd.com>
  • Loading branch information
mamin506 authored Aug 22, 2024
1 parent 5771d8a commit be2b8bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/amdxdna/aie2_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ aie2_sched_notify(struct amdxdna_sched_job *job)
struct dma_fence *fence = job->fence;

job->hwctx->completed++;
trace_xdna_job(&job->base, job->hwctx->name, "signale fence", job->seq);
dma_fence_signal(fence);
trace_xdna_job(&job->base, job->hwctx->name, "signaled fence", job->seq);
dma_fence_put(fence);
mmput(job->mm);
amdxdna_job_put(job);
Expand Down

0 comments on commit be2b8bf

Please sign in to comment.