drm/amdgpu: Skip ring soft recovery when fence was NULL
authorwentalou <Wentao.Lou@amd.com>
Thu, 6 Dec 2018 02:29:52 +0000 (10:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Dec 2018 22:53:47 +0000 (17:53 -0500)
commit49ebca798696a6a5da02a562cd1fd0e645264511
treec170ca7f263397abf2d5ba8641e1930338e196cf
parent53450efd6eb9e3155e16c14ce2ece387fc2d65e7
drm/amdgpu: Skip ring soft recovery when fence was NULL

amdgpu_ring_soft_recovery would have Call-Trace,
when s_fence->parent was NULL inside amdgpu_job_timedout.
Check fence first, as drm_sched_hw_job_reset did.

Signed-off-by: Wentao Lou <Wentao.Lou@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_ring.c