]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Give new born vGPU higher scheduling chance
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 30 Aug 2018 03:33:43 +0000 (11:33 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 3 Sep 2018 06:28:23 +0000 (14:28 +0800)
commitd6abb30862d0120b96276531d323568099b2e3fd
tree476cf733b30aaeb96566a95bed6192d2d4100170
parent9bdb2e787480ad1f97bce51c11b160e288dd049e
drm/i915/gvt: Give new born vGPU higher scheduling chance

This trys to give new born vGPU with higher scheduling chance
not only with adding to sched list head and also have higher
priority for workload sched for 2 seconds after starting to
schedule it. In order for fast GPU execution during VM boot,
and ensure guest driver setup with required state given in time.

This fixes recent failure seen on one VM with multiple linux VMs
running on kernel with commit 894a686213785("drm/i915: Provide a timeout to i915_gem_wait_for_idle() on setup"),
which had shorter setup timeout that caused context state init failed.

v2: change to 2s for higher scheduling period

Cc: Yuan Hang <hang.yuan@intel.com>
Reviewed-by: Hang Yuan <hang.yuan@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/sched_policy.c