<div class="gmail_quote">On Mon, Feb 27, 2012 at 13:09, Jesse Barnes <span dir="ltr">&lt;<a href="mailto:jbarnes@virtuousgeek.org">jbarnes@virtuousgeek.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, 23 Feb 2012 21:19:20 +0100<br>
Torsten Kaiser &lt;<a href="mailto:just.for.lkml@googlemail.com">just.for.lkml@googlemail.com</a>&gt; wrote:<br>
<br>
&gt; On Wed, Feb 22, 2012 at 8:56 PM, Dave Airlie &lt;<a href="mailto:airlied@linux.ie">airlied@linux.ie</a>&gt; wrote:<br>
&gt; &gt; Eugeni Dodonov (4):<br>
&gt; &gt;      drm/i915: gen7: implement rczunit workaround<br>
&gt; &gt;      drm/i915: gen7: Implement an L3 caching workaround.<br>
&gt; &gt;      drm/i915: gen7: work around a system hang on IVB<br>
&gt; &gt;      drm/i915: do not enable RC6p on Sandy Bridge<br>
&gt;<br>
&gt; That last patch about RC6p looks wrong.<br>
&gt;<br>
&gt; It does:<br>
&gt;  GEN6_RC_CTL_RC6_ENABLE |<br>
&gt;                       (IS_GEN7(dev_priv-&gt;dev)) ? GEN6_RC_CTL_RC6p_ENABLE : 0;<br>
&gt; But I think this was meant:<br>
&gt;  GEN6_RC_CTL_RC6_ENABLE |<br>
&gt;                       ((IS_GEN7(dev_priv-&gt;dev)) ? GEN6_RC_CTL_RC6p_ENABLE : 0);<br>
&gt;<br>
&gt; Or did I get the operator precedence wrong?<br>
<br>
</div>You&#39;re right, no cookie for Eugeni. :)  This would have prevented RC6<br>
from ever getting enabled though, which should have the same effect as<br>
the patch intended, though at the cost of higher power consumption.<br></blockquote><div><br>Actually, no, it got RC6p enabled - so it got to have all the power savings of RC6 plus some additional ones in the range of 0.1W, but it also resulted in the very same problem as before, when both RC6 and RC6p were enabled.<br>

<br>So, from what we&#39;ve seen with <a href="https://wiki.ubuntu.com/Kernel/PowerManagementRC6">https://wiki.ubuntu.com/Kernel/PowerManagementRC6</a>, the graphics corruptions do only happen when RC6p is enabled (either together with RC6, or individually, on its own). If we have only RC6, all the issues are gone so far.<br>

<br>So this bad patch had its use after all - it served to finally isolate and prove that the i915_enable_rc6-related issues are caused directly by RC6p.<br clear="all"></div></div><br>-- <br>Eugeni Dodonov<a href="http://eugeni.dodonov.net/" target="_blank"><br>

</a><br>