]> Git Repo - linux.git/commitdiff
drm/i915/gt: Always flush the submission queue on checking for idle
authorChris Wilson <[email protected]>
Fri, 5 Feb 2021 17:43:57 +0000 (17:43 +0000)
committerDaniel Vetter <[email protected]>
Wed, 24 Mar 2021 18:31:59 +0000 (19:31 +0100)
We check for idle during debug prints and other debugging actions.
Simplify the flow by not touching execlists state.

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/gt/intel_engine_cs.c

index 0090872964d8a15184acbc16081c352f13ede9d7..eafe9be8878659c296eb9a00a36e9ea5fd62c7e2 100644 (file)
@@ -1254,14 +1254,8 @@ bool intel_engine_is_idle(struct intel_engine_cs *engine)
                return true;
 
        /* Waiting to drain ELSP? */
-       if (execlists_active(&engine->execlists)) {
-               synchronize_hardirq(to_pci_dev(engine->i915->drm.dev)->irq);
-
-               intel_engine_flush_submission(engine);
-
-               if (execlists_active(&engine->execlists))
-                       return false;
-       }
+       synchronize_hardirq(to_pci_dev(engine->i915->drm.dev)->irq);
+       intel_engine_flush_submission(engine);
 
        /* ELSP is empty, but there are ready requests? E.g. after reset */
        if (!RB_EMPTY_ROOT(&engine->execlists.queue.rb_root))
This page took 0.092515 seconds and 4 git commands to generate.