[Bug 54089] [SNB regression] Power consumption goes postal after resume

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 14 06:48:03 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=54089

--- Comment #70 from Chris Wilson <chris at chris-wilson.co.uk> ---
Can you please try this:

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 7756668..12a9d9c 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4551,6 +4551,7 @@ static void gen6_init_clock_gating(struct drm_device
*dev)
 {
        struct drm_i915_private *dev_priv = dev->dev_private;
        uint32_t dspclk_gate = ILK_VRHUNIT_CLOCK_GATE_DISABLE;
+       u32 tmp;

        I915_WRITE(ILK_DSPCLK_GATE_D, dspclk_gate);

@@ -4622,8 +4623,11 @@ static void gen6_init_clock_gating(struct drm_device
*dev)
                   ILK_DPFDUNIT_CLOCK_GATE_ENABLE);

        /* WaMbcDriverBootEnable:snb */
-       I915_WRITE(GEN6_MBCTL, I915_READ(GEN6_MBCTL) |
-                  GEN6_MBCTL_ENABLE_BOOT_FETCH);
+       tmp = I915_READ(GEN6_MBCTL);
+       I915_WRITE(GEN6_MBCTL, tmp | GEN6_MBCTL_ENABLE_BOOT_FETCH);
+       POSTING_READ(GEN6_MBCTL);
+       usleep(100);
+       I915_WRITE(GEN6_MBCTL, tmp & ~GEN6_MBCTL_ENABLE_BOOT_FETCH);

        g4x_disable_trickle_feed(dev);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20130714/e3b8c69b/attachment.html>


More information about the intel-gfx-bugs mailing list