]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Forcefully tear down exec queues in GuC submit fini
authorMatthew Brost <matthew.brost@intel.com>
Tue, 10 Mar 2026 22:50:34 +0000 (18:50 -0400)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 14 Mar 2026 01:04:02 +0000 (18:04 -0700)
commita6ab444a111a59924bd9d0c1e0613a75a0a40b89
tree0429e3f7bbca06e6607012b7ae97c1cab0509494
parent78f3bf00be4f15daead02ba32d4737129419c902
drm/xe: Forcefully tear down exec queues in GuC submit fini

In GuC submit fini, forcefully tear down any exec queues by disabling
CTs, stopping the scheduler (which cleans up lost G2H), killing all
remaining queues, and resuming scheduling to allow any remaining cleanup
actions to complete and signal any remaining fences.

Split guc_submit_fini into device related and software only part. Using
device-managed and drm-managed action guarantees the correct ordering of
cleanup.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org
Reviewed-by: Zhanjun Dong <zhanjun.dong@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260310225039.1320161-3-zhanjun.dong@intel.com
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc.h
drivers/gpu/drm/xe/xe_guc_submit.c