drm/amdgpu:make ctx_add_fence interruptible(v2)
authorMonk Liu <Monk.Liu@amd.com>
Fri, 15 Sep 2017 05:40:31 +0000 (13:40 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:13 +0000 (15:14 -0400)
commiteb01abc7c4fd1faa26d0787f410894d9c704eb60
tree645e1a8f4c2cae1784f9363e0c9bab99d9147c45
parentf840cc5f8447db7efff447a25bcddbf084bd3e2e
drm/amdgpu:make ctx_add_fence interruptible(v2)

otherwise a gpu hang will make application couldn't be killed
under timedout=0 mode

v2:
Fix memoryleak job/job->s_fence issue
unlock mn
remove the ERROR msg after waiting being interrupted

Signed-off-by: Monk Liu <Monk.Liu@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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c