drm/i915/gt: Sanitize GT first
[sfrench/cifs-2.6.git] / drivers / gpu / drm / i915 / gt / intel_gt_pm.c
index 4c4c74ef4f213820b5158d7d5ffdb1a5f418db5b..5097786f43759dad770f194fb863737c2b2ad529 100644 (file)
@@ -198,11 +198,12 @@ int intel_gt_resume(struct intel_gt *gt)
         * Only the kernel contexts should remain pinned over suspend,
         * allowing us to fixup the user contexts on their first pin.
         */
+       gt_sanitize(gt, true);
+
        intel_gt_pm_get(gt);
 
        intel_uncore_forcewake_get(gt->uncore, FORCEWAKE_ALL);
        intel_rc6_sanitize(&gt->rc6);
-       gt_sanitize(gt, true);
        if (intel_gt_is_wedged(gt)) {
                err = -EIO;
                goto out_fw;