Commit 708ea872 authored by Chris Wilson's avatar Chris Wilson Committed by Rodrigo Vivi
Browse files

drm/i915: Only reset seqno if actually idle

Before we can reset the seqno, we have to be sure the engines are idle.
In debugfs/i915_drop_caches_set, we do wait_for_idle but allow ourselves
to be interrupted. We should only proceed to reset the seqno then if we
were not interrupted, and so also avoid overwriting the error status.

Fixes: 6b048706

 ("drm/i915: Forcibly flush unwanted requests in drop-caches")
Signed-off-by: default avatarChris Wilson <>
Cc: Joonas Lahtinen <>
Reviewed-by: default avatarJoonas Lahtinen <>
(cherry picked from commit 88a83f3c

Signed-off-by: default avatarRodrigo Vivi <>
parent 9b273901
......@@ -4189,7 +4189,7 @@ i915_drop_caches_set(void *data, u64 val)
if (val & DROP_RESET_SEQNO) {
if (ret == 0 && val & DROP_RESET_SEQNO) {
ret = i915_gem_set_global_seqno(&i915->drm, 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment