<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BAT SKL] GPU death starting with first symptom: WARNING backtrace: "DC6 already programmed to be enabled.""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93768#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [BAT SKL] GPU death starting with first symptom: WARNING backtrace: "DC6 already programmed to be enabled.""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93768">bug 93768</a>
              from <span class="vcard"><a class="email" href="mailto:mika.kuoppala@intel.com" title="Mika Kuoppala <mika.kuoppala@intel.com>"> <span class="fn">Mika Kuoppala</span></a>
</span></b>
        <pre>(In reply to Chris Wilson from <a href="show_bug.cgi?id=93768#c2">comment #2</a>)
<span class="quote">> diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c
> b/drivers/gpu/drm/i915/inte
> index bbca527..a90d4d0 100644
> --- a/drivers/gpu/drm/i915/intel_runtime_pm.c
> +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
> @@ -497,7 +497,8 @@ static void gen9_set_dc_state(struct drm_i915_private
> *dev_p
>         val &= ~mask;
>         val |= state;
>         I915_WRITE(DC_STATE_EN, val);
> -       POSTING_READ(DC_STATE_EN);
> +       if (wait_for((I915_READ(DC_STATE_EN) & mask) == state, 500))
> +               DRM_ERROR("Timeout whilst enabling DC6\n");
>  }
>  
>  void bxt_enable_dc9(struct drm_i915_private *dev_priv)</span >

Indeed something goes wrong around here. Sometimes when we disable,
DC6 stays disabled for only short amount of time (and/or few reads) but it pops
back up as enabled. Thats still a mystery.

But what happens next is that we have DC6 ON and we try to reset, and
apparently the resetting while on dc6 doesn't lead to success.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>