]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Disable garbage collector work item on SVM close
authorMatthew Brost <matthew.brost@intel.com>
Fri, 27 Feb 2026 01:52:25 +0000 (17:52 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 30 Mar 2026 12:52:14 +0000 (08:52 -0400)
commitbce7cd6db2386e7a2b49ad3c09df0beabddfa3c4
tree4e746bcadb9577a589dcc3f5313bd16e95d85f3c
parente3fb579872a8d9cf264c52710d5839de3afa6fc1
drm/xe: Disable garbage collector work item on SVM close

When an SVM is closed, the garbage collector work item must be stopped
synchronously and any future queuing must be prevented. Replace
flush_work() with disable_work_sync() to ensure both conditions are
met.

Fixes: 63f6e480d115 ("drm/xe: Add SVM garbage collector")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20260227015225.3081787-1-matthew.brost@intel.com
(cherry picked from commit 2247feb9badca5a4774df9a437bfc44fba4f22de)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_svm.c