]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cfe51b8b1b142a394520ada55b0194f50481bbc
treec170ca7f263397abf2d5ba8641e1930338e196cf
parent3512be36c1f7dd254eaf1df14dd2238ed4040f4d
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