drm/i915: Skip scanning for signalers if we are already inflight
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 Feb 2019 10:23:54 +0000 (10:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Feb 2019 10:45:31 +0000 (10:45 +0000)
commitbabfb1b55ca3a75b695348ca83bcca3590b45fef
tree8b2e8e02d967390d7b27f5040c80b8c711579497
parent69e89032b2a5e35e5bf0ff6372776f4bd830c2a3
drm/i915: Skip scanning for signalers if we are already inflight

When a request has its priority changed, we traverse the graph of all of
its signalers to raise their priorities to match (priority inheritance).
If the request has already started executing its payload, we know that
all of its signalers must have signaled and we do not need to process
our list of signalers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190226102404.29153-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.c