drm/i915/selftests: Add intel_gt_suspend_prepare
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2019 17:44:05 +0000 (17:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2019 18:52:23 +0000 (18:52 +0000)
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
drivers/gpu/drm/i915/gt/selftest_gt_pm.c

index 3d4e6a008af8bb61f3a5acaffa91a2ec85e78dc3..d1752f15702ac46c456f3aaad13a25e8d956d03a 100644 (file)
@@ -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) {