Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8bd3e1c authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: stop trying to schedule() with a spin held

Drop the lock before calling cancel_delayed_work_sync().

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96445



Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Tested-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e70a15f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -339,7 +339,9 @@ static void amd_sched_job_finish(struct work_struct *work)
	if (sched->timeout != MAX_SCHEDULE_TIMEOUT) {
		struct amd_sched_job *next;

		spin_unlock_irqrestore(&sched->job_list_lock, flags);
		cancel_delayed_work_sync(&s_job->work_tdr);
		spin_lock_irqsave(&sched->job_list_lock, flags);

		/* queue TDR for next job */
		next = list_first_entry_or_null(&sched->ring_mirror_list,