]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: define weight according to vGPU type
authorPing Gao <ping.a.gao@intel.com>
Wed, 29 Mar 2017 16:36:37 +0000 (00:36 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 30 Mar 2017 05:33:58 +0000 (13:33 +0800)
commit9f1f11cbae6df18b0ef1e7b4ccd9124123958850
tree44601a644c9de39dfa6900d51412faab207b0152
parent930a294edd3db79fc4ab4fa4c68b5882358d9e07
drm/i915/gvt: define weight according to vGPU type

The weight defines proportional control of physical GPU resource
shared between vGPUs. So far the weight is tied to a specific vGPU
type, i.e when creating multiple vGPUs with different types, they
will inherit different weights.

e.g. The weight of type GVTg_V5_2 is 8, the weight of type GVTg_V5_4
is 4, so vGPU of type GVTg_V5_2 has double vGPU resource of vGPU type
GVTg_V5_4.

TODO: allow user control the weight setting in the future.

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/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/sched_policy.c
drivers/gpu/drm/i915/gvt/vgpu.c