drm/i915/gt: Always check to enable timeslicing if not submitting
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jun 2020 12:23:26 +0000 (13:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jun 2020 16:18:17 +0000 (17:18 +0100)
commit12b67c2e9c58f6c716efcd5cfc9411d7e5f45930
tree9700c6777319305a949b8b42d4a3877d5aac2e17
parentfdd4f9416511d7a1f0a84a75052a3476dd163438
drm/i915/gt: Always check to enable timeslicing if not submitting

We may choose not to submit for a number of reasons, yet not fill both
ELSP. In which case we must start timeslicing (there will be no ACK
event on which to hook the start) if the queue would benefit from the
currently active context being evicted.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200605122334.2798-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c