diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 59068be..86b0bc5 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -2411,6 +2411,8 @@ static void gen6_enable_rps(struct drm_device *dev) WARN_ON(!mutex_is_locked(&dev->struct_mutex)); + gen6_gt_force_wake_get(dev_priv); + /* Here begins a magic sequence of register writes to enable * auto-downclocking. * @@ -2425,8 +2427,6 @@ static void gen6_enable_rps(struct drm_device *dev) I915_WRITE(GTFIFODBG, gtfifodbg); } - gen6_gt_force_wake_get(dev_priv); - rp_state_cap = I915_READ(GEN6_RP_STATE_CAP); gt_perf_status = I915_READ(GEN6_GT_PERF_STATUS);