]> 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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 29 Apr 2026 15:27:38 +0000 (11:27 -0400)
commita0fc362f095330f7b3f68ac0c55ef8da18290c87
treee5b41d74df974e6cb22906c36f2e1bb4d67ad010
parent254f49634ee16a731174d2ae34bc50bd5f45e731
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
(cherry picked from commit 4a706bd93c4fb156a13477e26ffdf2e633edeb10)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c