drm/i915/guc: Flush context destruction worker at suspend
authorAlan Previn <alan.previn.teres.alexis@intel.com>
Thu, 28 Dec 2023 04:55:57 +0000 (20:55 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 9 Jan 2024 17:33:07 +0000 (09:33 -0800)
commit5e83c060e95bea2cf76d01fa554cd31a1727e19a
tree439dab8a417c2db39e21a6dcda2206ec3306678d
parenta797099562267ebb281acd59750f1a8dbba36eef
drm/i915/guc: Flush context destruction worker at suspend

When suspending, flush the context-guc-id
deregistration worker at the final stages of
intel_gt_suspend_late when we finally call gt_sanitize
that eventually leads down to __uc_sanitize so that
the deregistration worker doesn't fire off later as
we reset the GuC microcontroller.

Signed-off-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Tested-by: Mousumi Jana <mousumi.jana@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231228045558.536585-2-alan.previn.teres.alexis@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h
drivers/gpu/drm/i915/gt/uc/intel_uc.c