OSDN Git Service

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)
commit54ff01fd0d44b9681615f77c15fe9ea6dfadb501
tree476cf733b30aaeb96566a95bed6192d2d4100170
parentb244ffa15c8b1aabdc117c0b6008086df7b668b7
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 2621cefaa42b3("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