<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW] GPU hang on ctx load"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83677#c47">Comment # 47</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [HSW] GPU hang on ctx load"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=83677">bug 83677</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Small, but it forces the invalidate after the ctx load:

diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 1a0611bb576b..9676bc729f13 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -1082,11 +1082,11 @@ i915_gem_ringbuffer_submission(struct drm_device *dev,
struct drm_file *file,
                }
        }

-       ret = i915_gem_execbuffer_move_to_gpu(ring, vmas);
+       ret = i915_switch_context(ring, ctx);
        if (ret)
                goto error;

-       ret = i915_switch_context(ring, ctx);
+       ret = i915_gem_execbuffer_move_to_gpu(ring, vmas);
        if (ret)
                goto error;</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>