Commit 4c2a8897 authored by Akash Goel's avatar Akash Goel Committed by Daniel Vetter

drm/i915/skl: Enable the RPS interrupts programming

Enable the RPS interrupts programming(enable/disable/reset) for GEN9,
as missing changes to enable the RPS support on GEN9 have been added.
Signed-off-by: default avatarAkash Goel <akash.goel@intel.com>
Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent aa448626
...@@ -5612,11 +5612,6 @@ static void gen6_suspend_rps(struct drm_device *dev) ...@@ -5612,11 +5612,6 @@ static void gen6_suspend_rps(struct drm_device *dev)
flush_delayed_work(&dev_priv->rps.delayed_resume_work); flush_delayed_work(&dev_priv->rps.delayed_resume_work);
/*
* TODO: disable RPS interrupts on GEN9+ too once RPS support
* is added for it.
*/
if (INTEL_INFO(dev)->gen < 9)
gen6_disable_rps_interrupts(dev); gen6_disable_rps_interrupts(dev);
} }
...@@ -5674,11 +5669,6 @@ static void intel_gen6_powersave_work(struct work_struct *work) ...@@ -5674,11 +5669,6 @@ static void intel_gen6_powersave_work(struct work_struct *work)
mutex_lock(&dev_priv->rps.hw_lock); mutex_lock(&dev_priv->rps.hw_lock);
/*
* TODO: reset/enable RPS interrupts on GEN9+ too, once RPS support is
* added for it.
*/
if (INTEL_INFO(dev)->gen < 9)
gen6_reset_rps_interrupts(dev); gen6_reset_rps_interrupts(dev);
if (IS_CHERRYVIEW(dev)) { if (IS_CHERRYVIEW(dev)) {
...@@ -5698,7 +5688,6 @@ static void intel_gen6_powersave_work(struct work_struct *work) ...@@ -5698,7 +5688,6 @@ static void intel_gen6_powersave_work(struct work_struct *work)
} }
dev_priv->rps.enabled = true; dev_priv->rps.enabled = true;
if (INTEL_INFO(dev)->gen < 9)
gen6_enable_rps_interrupts(dev); gen6_enable_rps_interrupts(dev);
mutex_unlock(&dev_priv->rps.hw_lock); mutex_unlock(&dev_priv->rps.hw_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment