aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2018-01-15 03:36:11 -0500
committerRodrigo Vivi <rodrigo.vivi@intel.com>2018-02-01 10:32:08 -0500
commit14b4434bff1aab69f3785bc67276efbff7fffa3d (patch)
tree708c0eafdace6b9acd7e6a140d30e2060e99a212
parent412718a10926f77052d8107cb3c5d9dbc96cf8c9 (diff)
drm/i915/gvt: cancel virtual vblank timer when no vGPU exists
Stop irq timer for virtual vblank timer emulation if no vGPU exists, otherwise it will keep gvt service thread busy to handle virtual vblank but no use. Reviewed-by: Zhi Wang <zhi.a.wang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
-rw-r--r--drivers/gpu/drm/i915/gvt/vgpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
index 4688619f6a1c..a8784fa91289 100644
--- a/drivers/gpu/drm/i915/gvt/vgpu.c
+++ b/drivers/gpu/drm/i915/gvt/vgpu.c
@@ -258,6 +258,8 @@ void intel_gvt_destroy_vgpu(struct intel_vgpu *vgpu)
258 258
259 intel_gvt_debugfs_remove_vgpu(vgpu); 259 intel_gvt_debugfs_remove_vgpu(vgpu);
260 idr_remove(&gvt->vgpu_idr, vgpu->id); 260 idr_remove(&gvt->vgpu_idr, vgpu->id);
261 if (idr_is_empty(&gvt->vgpu_idr))
262 intel_gvt_clean_irq(gvt);
261 intel_vgpu_clean_sched_policy(vgpu); 263 intel_vgpu_clean_sched_policy(vgpu);
262 intel_vgpu_clean_submission(vgpu); 264 intel_vgpu_clean_submission(vgpu);
263 intel_vgpu_clean_display(vgpu); 265 intel_vgpu_clean_display(vgpu);