]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: cancel pending job timer before freeing scheduler
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Tue, 25 Feb 2025 04:57:54 +0000 (10:27 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Wed, 26 Feb 2025 05:29:17 +0000 (10:59 +0530)
commit18fbd567e75f9b97b699b2ab4f1fa76b7cf268f6
tree44b60059cd906017c97b66e61a844e0e5ab0c83a
parent6b68c4542ffecc36087a9e14db8fc990c88bb01b
drm/xe: cancel pending job timer before freeing scheduler

The async call to __guc_exec_queue_fini_async frees the scheduler
while a submission may time out and restart. To prevent this race
condition, the pending job timer should be canceled before freeing
the scheduler.

V3(MattB):
 - Adjust position of cancel pending job
 - Remove gitlab issue# from commit message
V2(MattB):
 - Cancel pending jobs before scheduler finish

Fixes: a20c75dba192 ("drm/xe: Call __guc_exec_queue_fini_async direct for KERNEL exec_queues")
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250225045754.600905-1-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c