Skip to content

Commit 4926713

Browse files
baluvivekLucas De Marchi
authored andcommitted
drm/xe/guc: Synchronize Dead CT worker with unbind
Cancel and wait for any Dead CT worker to complete before continuing with device unbinding. Else the worker will end up using resources freed by the undind operation. Cc: Zhanjun Dong <zhanjun.dong@intel.com> Fixes: d2c5a5a ("drm/xe/guc: Dead CT helper") Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Reviewed-by: Stuart Summers <stuart.summers@intel.com> Link: https://patch.msgid.link/20251103123144.3231829-6-balasubramani.vivekanandan@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
1 parent 09c452d commit 4926713

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/xe/xe_guc_ct.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ static void guc_ct_fini(struct drm_device *drm, void *arg)
199199
{
200200
struct xe_guc_ct *ct = arg;
201201

202+
#if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
203+
cancel_work_sync(&ct->dead.worker);
204+
#endif
202205
ct_exit_safe_mode(ct);
203206
destroy_workqueue(ct->g2h_wq);
204207
xa_destroy(&ct->fence_lookup);

0 commit comments

Comments
 (0)