drm/i915: Remove defunct intel_suspend_gt_powersave()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 23 Mar 2019 21:40:09 +0000 (21:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 24 Mar 2019 21:29:44 +0000 (21:29 +0000)
Since commit b7137e0cf1e5 ("drm/i915: Defer enabling rc6 til after we
submit the first batch/context"), intel_suspend_gt_powersave() has been
a no-op. As we still do not need to do anything explicitly on suspend
(we do everything required on idling), remove the defunct function.

References: b7137e0cf1e5 ("drm/i915: Defer enabling rc6 til after we submit the first batch/context")
Suggested-by: "Hiatt, Don" <don.hiatt@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190323214009.23294-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c

index 4685ed04b35454aa37c96c58ba7be73014927a40..f6cdd5fb9deb9e3bb6ab5e87ac3b4f84644e42a2 100644 (file)
@@ -4397,7 +4397,6 @@ void i915_gem_suspend(struct drm_i915_private *i915)
        GEM_TRACE("\n");
 
        wakeref = intel_runtime_pm_get(i915);
-       intel_suspend_gt_powersave(i915);
 
        flush_workqueue(i915->wq);
 
index 14765a4b31a949acf266c8ed74bd187ccd6b4090..97fcbbd65e64495682f716d9a79d23eb638621e8 100644 (file)
@@ -2374,7 +2374,6 @@ void intel_cleanup_gt_powersave(struct drm_i915_private *dev_priv);
 void intel_sanitize_gt_powersave(struct drm_i915_private *dev_priv);
 void intel_enable_gt_powersave(struct drm_i915_private *dev_priv);
 void intel_disable_gt_powersave(struct drm_i915_private *dev_priv);
-void intel_suspend_gt_powersave(struct drm_i915_private *dev_priv);
 void gen6_rps_busy(struct drm_i915_private *dev_priv);
 void gen6_rps_reset_ei(struct drm_i915_private *dev_priv);
 void gen6_rps_idle(struct drm_i915_private *dev_priv);
index eaf0793ebf6078f3dd6edc1c716ad335051a348f..a9fff971129e553d274cfb6e38c218f74282ef66 100644 (file)
@@ -8494,22 +8494,6 @@ void intel_cleanup_gt_powersave(struct drm_i915_private *dev_priv)
                pm_runtime_put(&dev_priv->drm.pdev->dev);
 }
 
-/**
- * intel_suspend_gt_powersave - suspend PM work and helper threads
- * @dev_priv: i915 device
- *
- * We don't want to disable RC6 or other features here, we just want
- * to make sure any work we've queued has finished and won't bother
- * us while we're suspended.
- */
-void intel_suspend_gt_powersave(struct drm_i915_private *dev_priv)
-{
-       if (INTEL_GEN(dev_priv) < 6)
-               return;
-
-       /* gen6_rps_idle() will be called later to disable interrupts */
-}
-
 void intel_sanitize_gt_powersave(struct drm_i915_private *dev_priv)
 {
        dev_priv->gt_pm.rps.enabled = true; /* force RPS disabling */