Bläddra i källkod

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>
Chunming Zhou 9 år sedan
förälder
incheckning
c7c5fbcdc3
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      drivers/gpu/drm/amd/amdgpu/amdgpu_job.c

+ 2 - 0
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;
 }