Skip to content

Commit

Permalink
drm/i915/selftests: Add intel_gt_suspend_prepare
Browse files Browse the repository at this point in the history
Call suspend_prepare first so that we don't leave GuC so confused.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191101174405.7389-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Nov 1, 2019
1 parent c601cb2 commit 833e979
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/gt/selftest_gt_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ static int live_gt_resume(void *arg)

/* Do several suspend/resume cycles to check we don't explode! */
do {
intel_gt_suspend_prepare(gt);
intel_gt_suspend_late(gt);

if (gt->rc6.enabled) {
Expand Down

0 comments on commit 833e979

Please sign in to comment.