|
@@ -11247,12 +11247,11 @@ static void ilk_do_mmio_flip(struct intel_crtc *intel_crtc)
|
|
|
static void intel_do_mmio_flip(struct intel_crtc *intel_crtc)
|
|
|
{
|
|
|
struct drm_device *dev = intel_crtc->base.dev;
|
|
|
- bool atomic_update;
|
|
|
u32 start_vbl_count;
|
|
|
|
|
|
intel_mark_page_flip_active(intel_crtc);
|
|
|
|
|
|
- atomic_update = intel_pipe_update_start(intel_crtc, &start_vbl_count);
|
|
|
+ intel_pipe_update_start(intel_crtc, &start_vbl_count);
|
|
|
|
|
|
if (INTEL_INFO(dev)->gen >= 9)
|
|
|
skl_do_mmio_flip(intel_crtc);
|
|
@@ -11260,8 +11259,7 @@ static void intel_do_mmio_flip(struct intel_crtc *intel_crtc)
|
|
|
/* use_mmio_flip() retricts MMIO flips to ilk+ */
|
|
|
ilk_do_mmio_flip(intel_crtc);
|
|
|
|
|
|
- if (atomic_update)
|
|
|
- intel_pipe_update_end(intel_crtc, start_vbl_count);
|
|
|
+ intel_pipe_update_end(intel_crtc, start_vbl_count);
|
|
|
}
|
|
|
|
|
|
static void intel_mmio_flip_work_func(struct work_struct *work)
|
|
@@ -13646,9 +13644,7 @@ static void intel_begin_crtc_commit(struct drm_crtc *crtc)
|
|
|
|
|
|
/* Perform vblank evasion around commit operation */
|
|
|
if (crtc->state->active)
|
|
|
- intel_crtc->atomic.evade =
|
|
|
- intel_pipe_update_start(intel_crtc,
|
|
|
- &intel_crtc->atomic.start_vbl_count);
|
|
|
+ intel_pipe_update_start(intel_crtc, &intel_crtc->start_vbl_count);
|
|
|
|
|
|
if (!needs_modeset(crtc->state) && INTEL_INFO(dev)->gen >= 9)
|
|
|
skl_detach_scalers(intel_crtc);
|
|
@@ -13658,9 +13654,8 @@ static void intel_finish_crtc_commit(struct drm_crtc *crtc)
|
|
|
{
|
|
|
struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
|
|
|
|
|
|
- if (intel_crtc->atomic.evade)
|
|
|
- intel_pipe_update_end(intel_crtc,
|
|
|
- intel_crtc->atomic.start_vbl_count);
|
|
|
+ if (crtc->state->active)
|
|
|
+ intel_pipe_update_end(intel_crtc, intel_crtc->start_vbl_count);
|
|
|
}
|
|
|
|
|
|
/**
|