From: Chunming Zhou Date: Thu, 30 Jun 2016 09:30:42 +0000 (+0800) Subject: drm/amdgpu: put old hw fence of job if gpu reset X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c7c5fbcdc3b064943491d8dd1229cb25479e9093;p=linux-beck.git drm/amdgpu: put old hw fence of job if gpu reset Signed-off-by: Chunming Zhou Reviewed-by: Christian König Signed-off-by: Alex Deucher --- 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) } err: + /* if gpu reset, hw fence will be replaced here */ + fence_put(job->fence); job->fence = fence; return fence; }