diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2013-07-30 19:27:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-04 04:51:12 -0400 |
commit | c9af307d38974264922d35c77bb71087d171f8f8 (patch) | |
tree | 3d13d773c85dd7d8577cdec8920b6d2071f35180 | |
parent | 9682e399d77f9bc0a5c9230bd1d69a3e75572ef1 (diff) |
drm/i915: fix missed hunk after GT access breakage
commit e1b4d3036c07ff137955fb1c0197ab62534f46ec upstream.
Upon some code refactoring, a hunk was missed. This was fixed for
next, but missed the current trees, and hasn't yet been merged by Dave
Airlie. It is fixed in:
commit 907b28c56ea40629aa6595ddfa414ec2fc7da41c
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Fri Jul 19 20:36:52 2013 +0100
drm/i915: Colocate all GT access routines in the same file
It is introduced by:
commit 181d1b9e31c668259d3798c521672afb8edd355c
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Sun Jul 21 13:16:24 2013 +0200
drm/i915: fix up gt init sequence fallout
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 4d61e09bc212..f9685900bad8 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -1608,6 +1608,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) | |||
1608 | intel_detect_pch(dev); | 1608 | intel_detect_pch(dev); |
1609 | 1609 | ||
1610 | intel_irq_init(dev); | 1610 | intel_irq_init(dev); |
1611 | intel_pm_init(dev); | ||
1611 | intel_gt_sanitize(dev); | 1612 | intel_gt_sanitize(dev); |
1612 | intel_gt_init(dev); | 1613 | intel_gt_init(dev); |
1613 | 1614 | ||
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index c76244159a1f..47d8b68c5004 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1475,6 +1475,7 @@ void i915_hangcheck_elapsed(unsigned long data); | |||
1475 | void i915_handle_error(struct drm_device *dev, bool wedged); | 1475 | void i915_handle_error(struct drm_device *dev, bool wedged); |
1476 | 1476 | ||
1477 | extern void intel_irq_init(struct drm_device *dev); | 1477 | extern void intel_irq_init(struct drm_device *dev); |
1478 | extern void intel_pm_init(struct drm_device *dev); | ||
1478 | extern void intel_hpd_init(struct drm_device *dev); | 1479 | extern void intel_hpd_init(struct drm_device *dev); |
1479 | extern void intel_gt_init(struct drm_device *dev); | 1480 | extern void intel_gt_init(struct drm_device *dev); |
1480 | extern void intel_gt_sanitize(struct drm_device *dev); | 1481 | extern void intel_gt_sanitize(struct drm_device *dev); |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 81a9e1d7647f..2cfe9f6b0bf2 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -4548,6 +4548,12 @@ void intel_gt_init(struct drm_device *dev) | |||
4548 | dev_priv->gt.force_wake_get = __gen6_gt_force_wake_get; | 4548 | dev_priv->gt.force_wake_get = __gen6_gt_force_wake_get; |
4549 | dev_priv->gt.force_wake_put = __gen6_gt_force_wake_put; | 4549 | dev_priv->gt.force_wake_put = __gen6_gt_force_wake_put; |
4550 | } | 4550 | } |
4551 | } | ||
4552 | |||
4553 | void intel_pm_init(struct drm_device *dev) | ||
4554 | { | ||
4555 | struct drm_i915_private *dev_priv = dev->dev_private; | ||
4556 | |||
4551 | INIT_DELAYED_WORK(&dev_priv->rps.delayed_resume_work, | 4557 | INIT_DELAYED_WORK(&dev_priv->rps.delayed_resume_work, |
4552 | intel_gen6_powersave_work); | 4558 | intel_gen6_powersave_work); |
4553 | } | 4559 | } |