<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [regression 4.7] [BISECT]Low package c-states used only after forcing DPMS to off"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96645#c18">Comment # 18</a>
on <a class="bz_bug_link
bz_status_NEEDINFO "
title="NEEDINFO - [regression 4.7] [BISECT]Low package c-states used only after forcing DPMS to off"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96645">bug 96645</a>
from <span class="vcard"><a class="email" href="mailto:gabriele.mzt@gmail.com" title="Gabriele Mazzotta <gabriele.mzt@gmail.com>"> <span class="fn">Gabriele Mazzotta</span></a>
</span></b>
<pre>I applied the attached patch to 4.10-rc8 as follows and it fixed my problem:
right after a reboot the CPU can enter pc7 and intel_watermak reports the same
values it did with the unpatched kernel after toggling DPSM.
diff --git a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 891c86aef99d..0b15b694baa0 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -16497,12 +16497,11 @@ int intel_modeset_init(struct drm_device *dev)
}
}
- intel_update_czclk(dev_priv);
- intel_update_cdclk(dev_priv);
- dev_priv->atomic_cdclk_freq = dev_priv->cdclk_freq;
-
intel_shared_dpll_init(dev);
+ intel_update_czclk(dev_priv);
+ intel_modeset_init_hw(dev);
+
if (dev_priv->max_cdclk_freq == 0)
intel_update_max_cdclk(dev_priv);
@@ -17057,8 +17056,6 @@ void intel_modeset_gem_init(struct drm_device *dev)
intel_init_gt_powersave(dev_priv);
- intel_modeset_init_hw(dev);
-
intel_setup_overlay(dev_priv);
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>