Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix timeout value check in amd_sched_job_recovery

Could be that we don't actually have a timeout set.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
bdf00137 847927bb

+1 -1
+1 -1
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
··· 405 405 spin_lock(&sched->job_list_lock); 406 406 s_job = list_first_entry_or_null(&sched->ring_mirror_list, 407 407 struct amd_sched_job, node); 408 - if (s_job) 408 + if (s_job && sched->timeout != MAX_SCHEDULE_TIMEOUT) 409 409 schedule_delayed_work(&s_job->work_tdr, sched->timeout); 410 410 411 411 list_for_each_entry_safe(s_job, tmp, &sched->ring_mirror_list, node) {