Files
linux/drivers/gpu/drm/xe
Matthew Brost 56b7432b7e drm/xe: Avoid memory allocations in xe_device_declare_wedged()
xe_device_declare_wedged() runs in the DMA-fence signaling path, where
GFP_KERNEL memory allocations are not allowed. However, registering
xe_device_wedged_fini via drmm_add_action_or_reset() triggers a
GFP_KERNEL allocation.

Fix this by deferring the registration of xe_device_wedged_fini until
late in the driver load sequence. Additionally, drop the wedged PM
reference only if the device is actually wedged in
xe_device_wedged_fini.

Fixes: 452bca0edb ("drm/xe: Don't suspend device upon wedge")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260326210116.202585-2-matthew.brost@intel.com
(cherry picked from commit b08ceb443866808b881b12d4183008d214d816c1)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2026-03-30 08:52:20 -04:00
..
2025-10-15 22:48:54 -07:00
2025-07-01 13:58:50 -07:00
2025-12-22 10:22:00 -08:00
2026-01-26 16:43:06 -05:00
2024-05-22 12:03:55 +02:00
2025-11-12 08:57:27 -08:00
2025-01-27 08:54:06 -08:00
2025-02-03 11:51:26 -08:00
2024-05-13 21:36:52 +02:00
2026-01-15 07:05:04 -08:00
2025-06-27 14:52:31 -07:00
2026-01-15 07:05:04 -08:00
2025-12-24 07:59:35 -08:00