[Bug 83677] [HSW] GPU hang on ctx load

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Oct 10 05:20:12 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=83677

--- Comment #47 from Chris Wilson <chris at chris-wilson.co.uk> ---
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;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20141010/b4427b5b/attachment.html>


More information about the intel-gfx-bugs mailing list