[PATCH 2/5] switch-off
Chris Wilson
chris at chris-wilson.co.uk
Wed Feb 10 17:23:51 UTC 2021
---
drivers/gpu/drm/i915/gt/intel_gt_pm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_gt_pm.c b/drivers/gpu/drm/i915/gt/intel_gt_pm.c
index 0bd303d2823e..f41612faa269 100644
--- a/drivers/gpu/drm/i915/gt/intel_gt_pm.c
+++ b/drivers/gpu/drm/i915/gt/intel_gt_pm.c
@@ -295,6 +295,9 @@ void intel_gt_suspend_prepare(struct intel_gt *gt)
wait_for_suspend(gt);
intel_uc_suspend(>->uc);
+
+ /* Flush all the contexts and internal state before turning off GGTT */
+ gt_sanitize(gt, false);
}
static suspend_state_t pm_suspend_target(void)
@@ -337,7 +340,7 @@ void intel_gt_suspend_late(struct intel_gt *gt)
intel_llc_disable(>->llc);
}
- gt_sanitize(gt, false);
+ gt_sanitize(gt, false); /* Be paranoid, remove all residual GPU state */
GT_TRACE(gt, "\n");
}
--
2.20.1
More information about the Intel-gfx-trybot
mailing list