Commit c7c5fbcd authored by Chunming Zhou's avatar Chunming Zhou Committed by Alex Deucher

drm/amdgpu: put old hw fence of job if gpu reset

Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 595a9cd6
...@@ -178,6 +178,8 @@ static struct fence *amdgpu_job_run(struct amd_sched_job *sched_job) ...@@ -178,6 +178,8 @@ static struct fence *amdgpu_job_run(struct amd_sched_job *sched_job)
} }
err: err:
/* if gpu reset, hw fence will be replaced here */
fence_put(job->fence);
job->fence = fence; job->fence = fence;
return fence; return fence;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment