Commit 78f3bf00 authored by Matthew Brost's avatar Matthew Brost
Browse files

drm/xe: Always kill exec queues in xe_guc_submit_pause_abort



xe_guc_submit_pause_abort is intended to be called after something
disastrous occurs (e.g., VF migration fails, device wedging, or driver
unload) and should immediately trigger the teardown of remaining
submission state. With that, kill any remaining queues in this function.

Fixes: 7c4b7e34 ("drm/xe/vf: Abort VF post migration recovery on failure")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarZhanjun Dong <zhanjun.dong@intel.com>
Reviewed-by: default avatarStuart Summers <stuart.summers@intel.com>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260310225039.1320161-2-zhanjun.dong@intel.com
parent c85ec5c5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2763,8 +2763,7 @@ void xe_guc_submit_pause_abort(struct xe_guc *guc)
			continue;

		xe_sched_submission_start(sched);
		if (exec_queue_killed_or_banned_or_wedged(q))
			xe_guc_exec_queue_trigger_cleanup(q);
		guc_exec_queue_kill(q);
	}
	mutex_unlock(&guc->submission_state.lock);
}