mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
drm/amdgpu: put old hw fence of job if gpu reset
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
595a9cd68c
commit
c7c5fbcdc3
1 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,8 @@ static struct fence *amdgpu_job_run(struct amd_sched_job *sched_job)
|
|||
}
|
||||
|
||||
err:
|
||||
/* if gpu reset, hw fence will be replaced here */
|
||||
fence_put(job->fence);
|
||||
job->fence = fence;
|
||||
return fence;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue