File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -323,27 +323,27 @@ void intel_gvt_check_vblank_emulation(struct intel_gvt *gvt)
323323{
324324 struct intel_gvt_irq * irq = & gvt -> irq ;
325325 struct intel_vgpu * vgpu ;
326- bool have_enabled_pipe = false;
327326 int pipe , id ;
328327
329328 if (WARN_ON (!mutex_is_locked (& gvt -> lock )))
330329 return ;
331330
332- hrtimer_cancel (& irq -> vblank_timer .timer );
333-
334331 for_each_active_vgpu (gvt , vgpu , id ) {
335332 for (pipe = 0 ; pipe < I915_MAX_PIPES ; pipe ++ ) {
336- have_enabled_pipe =
337- pipe_is_enabled (vgpu , pipe );
338- if (have_enabled_pipe )
339- break ;
333+ if (pipe_is_enabled (vgpu , pipe ))
334+ goto out ;
340335 }
341336 }
342337
343- if (have_enabled_pipe )
344- hrtimer_start (& irq -> vblank_timer .timer ,
345- ktime_add_ns (ktime_get (), irq -> vblank_timer .period ),
346- HRTIMER_MODE_ABS );
338+ /* all the pipes are disabled */
339+ hrtimer_cancel (& irq -> vblank_timer .timer );
340+ return ;
341+
342+ out :
343+ hrtimer_start (& irq -> vblank_timer .timer ,
344+ ktime_add_ns (ktime_get (), irq -> vblank_timer .period ),
345+ HRTIMER_MODE_ABS );
346+
347347}
348348
349349static void emulate_vblank_on_pipe (struct intel_vgpu * vgpu , int pipe )
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ static bool is_supported_device(struct drm_i915_private *dev_priv)
4545 return true;
4646 if (IS_SKYLAKE (dev_priv ))
4747 return true;
48- if (IS_KABYLAKE (dev_priv ) && INTEL_DEVID ( dev_priv ) == 0x591D )
48+ if (IS_KABYLAKE (dev_priv ))
4949 return true;
5050 return false;
5151}
You can’t perform that action at this time.
0 commit comments