]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1adce2beedd7b59fba933f14a613f7a6bd4bab24
tree78ba78e823757f961ce0ad619f515b00950077b9
parent138c17df3f64005efa334f62b4a948211529c21c
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