提交 f4e0b29b 编写于 作者: C Chris Wilson

drm/i915: Check if the GPU hung whilst waiting for the ring to clear

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 6dda569f
......@@ -711,6 +711,8 @@ int intel_wait_ring_buffer(struct intel_ring_buffer *ring, int n)
}
msleep(1);
if (atomic_read(&dev_priv->mm.wedged))
return -EAGAIN;
} while (!time_after(jiffies, end));
trace_i915_ring_wait_end (dev);
return -EBUSY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册