drm/xe: Call __guc_exec_queue_fini_async direct for KERNEL exec_queues
authorMatthew Brost <matthew.brost@intel.com>
Fri, 11 Aug 2023 13:27:34 +0000 (06:27 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:19 +0000 (11:40 -0500)
commita20c75dba192af6ba63d618514a064268dbbe7db
tree1632ac280b1c89ee819cde784646607546397642
parentca8656a2eb0930b991151588fd04e60c75465543
drm/xe: Call __guc_exec_queue_fini_async direct for KERNEL exec_queues

Usually we call __guc_exec_queue_fini_async via a worker as the
exec_queue fini can be done from within the GPU scheduler which creates
a circular dependency without a worker. Kernel exec_queues are fini'd at
driver unload (not from within the GPU scheduler) so it is safe to
directly call __guc_exec_queue_fini_async.

Suggested-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c