summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/gvt.h
diff options
context:
space:
mode:
authorPing Gao <ping.a.gao@intel.com>2017-05-24 20:30:17 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-06-08 13:59:16 +0800
commitc713cb2f9b7e1e9ffa8a379cecb13bc6eacd49b6 (patch)
treef32339ea16083a9c68508e535451e1d84896459a /drivers/gpu/drm/i915/gvt/gvt.h
parent089f93c3f94c368157980578b1efc4f6014ebd97 (diff)
downloadlwn-c713cb2f9b7e1e9ffa8a379cecb13bc6eacd49b6.tar.gz
lwn-c713cb2f9b7e1e9ffa8a379cecb13bc6eacd49b6.zip
drm/i915/gvt: Support event based scheduling
This patch decouple the time slice calculation and scheduler, let other event be able to trigger scheduling without impact the calculation for QoS. v2: add only one new enum definition. v3: fix typo. Signed-off-by: Ping Gao <ping.a.gao@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gvt.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/gvt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h
index d3b4d42063da..8fd40f55caf1 100644
--- a/drivers/gpu/drm/i915/gvt/gvt.h
+++ b/drivers/gpu/drm/i915/gvt/gvt.h
@@ -256,7 +256,12 @@ static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915)
enum {
INTEL_GVT_REQUEST_EMULATE_VBLANK = 0,
+
+ /* Scheduling trigger by timer */
INTEL_GVT_REQUEST_SCHED = 1,
+
+ /* Scheduling trigger by event */
+ INTEL_GVT_REQUEST_EVENT_SCHED = 2,
};
static inline void intel_gvt_request_service(struct intel_gvt *gvt,