drm/amdgpu: Fix skipping hangged job reset during gpu recover.
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix skipping hangged job reset during gpu recover.
Problem:
During GPU recover DAL would hang inamdgpu_pm_compute_clocks->amdgpu_fence_wait_empty
Fix:
Turns out there was what looks like a typo introduced by 3320b8d drm/amdgpu: remove job->ring which caused skipping amdgpu_fence_driver_force_completion for guilty's job fence and so it was never force signaled and this would cause the hang later in DAL.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -3363,7 +3363,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,kthread_park (ring->sched.thread); -if (job && job->base.sched == &ring->sched) +if (job && job->base.sched != &ring->sched)continue ;drm_sched_hw_job_reset (&ring->sched, job ? &job->base :NULL );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1540996593-20284-1-git-send-email-andrey.grodzovsky-5C7GfCeVMHo@public.gmane.org
Am 31.10.18 um 15:36 schrieb Andrey Grodzovsky:
Quoted 11 lines
Problem:
During GPU recover DAL would hang inamdgpu_pm_compute_clocks->amdgpu_fence_wait_emptyFix:
Turns out there was what looks like a typo introduced by 3320b8d drm/amdgpu: removejob->ringwhich caused skippingamdgpu_fence_driver_force_completionfor guilty's job fence and so it was never force signaled and this would cause the hang later in DAL.Signed-off-by Andrey Grodzovsky <[email protected]>
Crap, I was already staring at that code for a while as well but didn't realized what was wrong with it.
Patch is Reviewed-by: Christian König <[email protected]>
Regards,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c int amdgpu_device_gpu_recover(struct amdgpu_device *adev, · line 3369
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -3363,7 +3363,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,kthread_park (ring->sched.thread); -if (job && job->base.sched == &ring->sched) +if (job && job->base.sched != &ring->sched)continue ;drm_sched_hw_job_reset (&ring->sched, job ? &job->base :NULL );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx