]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: add basic function for weight control
authorPing Gao <ping.a.gao@intel.com>
Thu, 30 Mar 2017 02:03:24 +0000 (10:03 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 30 Mar 2017 05:34:04 +0000 (13:34 +0800)
commitab64c9745d473945c16cd32c0f33a39f90615578
tree078251548e8d10ac542334055d2686efb8288926
parent9f1f11cbae6df18b0ef1e7b4ccd9124123958850
drm/i915/gvt: add basic function for weight control

This method tries to guarantee precision in second level, with the
adjustment conducted in every 100ms. At the end of each vGPU switch
calculate the sched time and subtract it from the time slice
allocated; the allocated time slice for every 100ms together with
remaining timeslice, will be used to decide how much timeslice
allocated to this vGPU in the next 100ms slice, with the end goal
to guarantee weight ratio in second level.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/sched_policy.c