]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Do not deregister queues in TDR
authorMatthew Brost <matthew.brost@intel.com>
Sat, 10 Jan 2026 01:27:36 +0000 (17:27 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 10 Jan 2026 21:39:52 +0000 (13:39 -0800)
commit58624c195b9a90950ebff166b72ee712f8d5a4c7
tree16837003bf928ba5d02b31fddca671b42bd97058
parentdd1ef5e2456558876244795bb22a4d90cb24f160
drm/xe: Do not deregister queues in TDR

Deregistering queues in the TDR introduces unnecessary complexity,
requiring reference-counting techniques to function correctly,
particularly to prevent use-after-free (UAF) issues while a
deregistration initiated from the TDR is in progress.

All that's needed in the TDR is to kick the queue off the hardware,
which is achieved by disabling scheduling. Queue deregistration should
be handled in a single, well-defined point in the cleanup path, tied to
the queue's reference count.

v4:
 - Explain why extra ref were needed prior to this patch (Niranjana)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patch.msgid.link/20260110012739.2888434-5-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c