drm/i915/gt: Set timeslicing priority from queue
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jun 2020 12:23:25 +0000 (13:23 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Jun 2020 16:18:04 +0000 (17:18 +0100)
commitfdd4f9416511d7a1f0a84a75052a3476dd163438
tree78ba78e823757f961ce0ad619f515b00950077b9
parentac4fc5b38d1abc039d61eecd15c12fc6fbeb7f33
drm/i915/gt: Set timeslicing priority from queue

If we only submit the first port, leaving the second empty yet have
ready requests pending in the queue, use that to set the timeslicing
priority (i.e. the priority at which we will decided to enabling
timeslicing and evict the currently active context if the queue is of
equal priority after its quantum expired).

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-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c