Skip to content

Commit

Permalink
drm/i915: initialize gen6 rps work queue on Sandy Bridge and Ivy Bridge
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Keith Packard <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
jbarnes993 authored and keith-packard committed May 18, 2011
1 parent 56184e3 commit 9e3c256
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1736,6 +1736,8 @@ void ironlake_irq_preinstall(struct drm_device *dev)

INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func);
INIT_WORK(&dev_priv->error_work, i915_error_work_func);
if (IS_GEN6(dev) || IS_IVYBRIDGE(dev))
INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work);

I915_WRITE(HWSTAM, 0xeffe);

Expand Down Expand Up @@ -1887,7 +1889,6 @@ void i915_driver_irq_preinstall(struct drm_device * dev)

INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func);
INIT_WORK(&dev_priv->error_work, i915_error_work_func);
INIT_WORK(&dev_priv->rps_work, gen6_pm_rps_work);

if (I915_HAS_HOTPLUG(dev)) {
I915_WRITE(PORT_HOTPLUG_EN, 0);
Expand Down

0 comments on commit 9e3c256

Please sign in to comment.