<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - [ilk] GPU hung / Failed to reset chip"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59593#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO --- - [ilk] GPU hung / Failed to reset chip"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59593">bug 59593</a>
              from <span class="vcard"><a class="email" href="mailto:jbarnes@virtuousgeek.org" title="Jesse Barnes <jbarnes@virtuousgeek.org>"> <span class="fn">Jesse Barnes</span></a>
</span></b>
        <pre>I wonder if this patch might help with the reset:

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 0cfc778..1c53438 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -744,6 +744,7 @@ static int ironlake_do_reset(struct drm_device *dev)
     int ret;

     gdrst = I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR);
+    gdrst &= ~GRDOM_MASK;
     I915_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR,
            gdrst | GRDOM_RENDER | GRDOM_RESET_ENABLE);
     ret = wait_for(I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR) & 0x1, 500);
@@ -752,6 +753,7 @@ static int ironlake_do_reset(struct drm_device *dev)

     /* We can't reset render&media without also resetting display ... */
     gdrst = I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR);
+    gdrst &= ~GRDOM_MASK;
     I915_WRITE(MCHBAR_MIRROR_BASE + ILK_GDSR,
            gdrst | GRDOM_MEDIA | GRDOM_RESET_ENABLE);
     return wait_for(I915_READ(MCHBAR_MIRROR_BASE + ILK_GDSR) & 0x1, 500);
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 5e91fbb..95ad87c 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -91,6 +91,7 @@
 #define  GRDOM_FULL    (0<<2)
 #define  GRDOM_RENDER    (1<<2)
 #define  GRDOM_MEDIA    (3<<2)
+#define  GRDOM_MASK    (3<<2)
 #define  GRDOM_RESET_ENABLE (1<<0)

 #define GEN6_MBCUNIT_SNPCR    0x900c /* for LLC config */</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 the assignee for the bug.</li>
      </ul>
    </body>
</html>