]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Incorporate the virtual engine into timeslicing
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 May 2020 13:20:46 +0000 (14:20 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 15 Jun 2020 09:35:53 +0000 (12:35 +0300)
commit594219b1d5b0695c8a0ffdc41524951780000db0
treed2b3e79cb1d622a31134a92f140dc2150bd1f88a
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
drm/i915/gt: Incorporate the virtual engine into timeslicing

It was quite the oversight to only factor in the normal queue to decide
the timeslicing switch priority. By leaving out the next virtual request
from the priority decision, we would not timeslice the current engine if
there was an available virtual request.

Testcase: igt/gem_exec_balancer/sliced
Fixes: 8f8503bb5d42 ("drm/i915/execlists: Enable timeslice on partial virtual engine dequeue")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200519132046.22443-3-chris@chris-wilson.co.uk
(cherry picked from commit 6ad249ba59badc7ff157d4db1f835748f0e2c9b6)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_lrc.c