diff options
author | Alan Previn <alan.previn.teres.alexis@intel.com> | 2023-12-28 05:55:57 +0100 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2024-01-09 18:33:07 +0100 |
commit | 5e83c060e95bea2cf76d01fa554cd31a1727e19a (patch) | |
tree | 439dab8a417c2db39e21a6dcda2206ec3306678d /drivers/gpu/drm/i915/gt/uc/intel_uc.c | |
parent | drm/i915/huc: Allow for very slow HuC loading (diff) | |
download | linux-5e83c060e95bea2cf76d01fa554cd31a1727e19a.tar.xz linux-5e83c060e95bea2cf76d01fa554cd31a1727e19a.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/gt/uc/intel_uc.c')
-rw-r--r-- | drivers/gpu/drm/i915/gt/uc/intel_uc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c b/drivers/gpu/drm/i915/gt/uc/intel_uc.c index 3872d309ed31..b8b09b1bee3e 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c @@ -690,6 +690,8 @@ void intel_uc_suspend(struct intel_uc *uc) return; } + intel_guc_submission_flush_work(guc); + with_intel_runtime_pm(&uc_to_gt(uc)->i915->runtime_pm, wakeref) { err = intel_guc_suspend(guc); if (err) |