]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: put old hw fence of job if gpu reset
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 30 Jun 2016 09:30:42 +0000 (17:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:12 +0000 (15:06 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

index 327f4df55c86efc36f561fc52c3cc85f26966a64..0b550255401842bfb35269aaa942de5ef71c2f49 100644 (file)
@@ -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;
 }