Skip to content

Commit

Permalink
drm/i915: fix flip done interrupt on Ironlake
Browse files Browse the repository at this point in the history
On Ironlake plane flip interrupt means flip done event already, the
behavior is not like old chips, and perform like other usual interrupt.
So only need to handle flip done event when receiving that interrupt.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
  • Loading branch information
Zhenyu Wang authored and Eric Anholt committed Feb 10, 2010
1 parent b1b87f6 commit f072d2e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,21 @@ irqreturn_t ironlake_irq_handler(struct drm_device *dev)
if (de_iir & DE_GSE)
ironlake_opregion_gse_intr(dev);

if (de_iir & DE_PLANEA_FLIP_DONE)
if (de_iir & DE_PLANEA_FLIP_DONE) {
intel_prepare_page_flip(dev, 0);
intel_finish_page_flip(dev, 0);
}

if (de_iir & DE_PLANEB_FLIP_DONE)
if (de_iir & DE_PLANEB_FLIP_DONE) {
intel_prepare_page_flip(dev, 1);
intel_finish_page_flip(dev, 1);
}

if (de_iir & DE_PIPEA_VBLANK) {
if (de_iir & DE_PIPEA_VBLANK)
drm_handle_vblank(dev, 0);
intel_finish_page_flip(dev, 0);
}

if (de_iir & DE_PIPEB_VBLANK) {
if (de_iir & DE_PIPEB_VBLANK)
drm_handle_vblank(dev, 1);
intel_finish_page_flip(dev, 1);
}

/* check event from PCH */
if ((de_iir & DE_PCH_EVENT) &&
Expand Down

0 comments on commit f072d2e

Please sign in to comment.