diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-06-30 05:30:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-07 15:06:12 -0400 |
commit | c7c5fbcdc3b064943491d8dd1229cb25479e9093 (patch) | |
tree | f0171bd7cd5bc239588db1c0f438ff6b177c7559 | |
parent | 595a9cd68c132e474ee5daf97067d4d15c618739 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index 327f4df55c86..0b5502554018 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |||
@@ -178,6 +178,8 @@ static struct fence *amdgpu_job_run(struct amd_sched_job *sched_job) | |||
178 | } | 178 | } |
179 | 179 | ||
180 | err: | 180 | err: |
181 | /* if gpu reset, hw fence will be replaced here */ | ||
182 | fence_put(job->fence); | ||
181 | job->fence = fence; | 183 | job->fence = fence; |
182 | return fence; | 184 | return fence; |
183 | } | 185 | } |