]> 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)
commit082f5e5c62e9a57032e07e9498c675fd56d33470
tree476cf733b30aaeb96566a95bed6192d2d4100170
parent34fb2659fdd9389749d510fbf4f4bdba9f3bd8f8
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 1e8aeb7f35def("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