diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-05-18 16:51:43 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-05-18 18:14:39 -0400 |
commit | 9e3c256d7d56a12a3242222945ce8e6347f93fa0 (patch) | |
tree | aaa92124f2ea1be58a936954e73f3ca16617c9ed /drivers/gpu | |
parent | 56184e3da005e0259fc628706351b54fcc4527db (diff) |
drm/i915: initialize gen6 rps work queue on Sandy Bridge and Ivy Bridge
It's not used on Ironlake, but is used on later generations, so make
sure it exists before we try to use it in the interrupt handlers.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 349a03e48481..b79619a7b788 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -1736,6 +1736,8 @@ void ironlake_irq_preinstall(struct drm_device *dev) | |||
1736 | 1736 | ||
1737 | INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func); | 1737 | INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func); |
1738 | INIT_WORK(&dev_priv->error_work, i915_error_work_func); | 1738 | INIT_WORK(&dev_priv->error_work, i915_error_work_func); |
1739 | if (IS_GEN6(dev) || IS_IVYBRIDGE(dev)) | ||
1740 | INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work); | ||
1739 | 1741 | ||
1740 | I915_WRITE(HWSTAM, 0xeffe); | 1742 | I915_WRITE(HWSTAM, 0xeffe); |
1741 | 1743 | ||
@@ -1887,7 +1889,6 @@ void i915_driver_irq_preinstall(struct drm_device * dev) | |||
1887 | 1889 | ||
1888 | INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func); | 1890 | INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func); |
1889 | INIT_WORK(&dev_priv->error_work, i915_error_work_func); | 1891 | INIT_WORK(&dev_priv->error_work, i915_error_work_func); |
1890 | INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work); | ||
1891 | 1892 | ||
1892 | if (I915_HAS_HOTPLUG(dev)) { | 1893 | if (I915_HAS_HOTPLUG(dev)) { |
1893 | I915_WRITE(PORT_HOTPLUG_EN, 0); | 1894 | I915_WRITE(PORT_HOTPLUG_EN, 0); |