]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Drop registration of guc_submit_wedged_fini from xe_guc_submit_wedge()
authorMatthew Brost <matthew.brost@intel.com>
Thu, 26 Mar 2026 21:01:16 +0000 (14:01 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 27 Mar 2026 20:23:15 +0000 (13:23 -0700)
commit4a706bd93c4fb156a13477e26ffdf2e633edeb10
tree67c61177ade4507e8712697b391ec5356612e5df
parentb08ceb443866808b881b12d4183008d214d816c1
drm/xe: Drop registration of guc_submit_wedged_fini from xe_guc_submit_wedge()

xe_guc_submit_wedge() runs in the DMA-fence signaling path, where
GFP_KERNEL memory allocations are not permitted. However, registering
guc_submit_wedged_fini via drmm_add_action_or_reset() triggers such an
allocation.

Avoid this by moving the logic from guc_submit_wedged_fini() into
guc_submit_fini(), where wedged exec queue references are dropped during
normal teardown.

Fixes: 8ed9aaae39f3 ("drm/xe: Force wedged state and block GT reset upon any GPU hang")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260326210116.202585-3-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c