diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2010-02-08 20:46:19 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-02-10 17:34:13 -0500 |
commit | f072d2e77128c5b332ce217764cf170b660b99dc (patch) | |
tree | b75ba4302ea5a08e7d2e45e62dd186adffc366cb /drivers/gpu | |
parent | b1b87f6b65a770a69f3632cf7c1f9182547c1249 (diff) |
drm/i915: fix flip done interrupt on Ironlake
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 50ddf4a95c5e..a17d6bdfe63e 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -309,21 +309,21 @@ irqreturn_t ironlake_irq_handler(struct drm_device *dev) | |||
309 | if (de_iir & DE_GSE) | 309 | if (de_iir & DE_GSE) |
310 | ironlake_opregion_gse_intr(dev); | 310 | ironlake_opregion_gse_intr(dev); |
311 | 311 | ||
312 | if (de_iir & DE_PLANEA_FLIP_DONE) | 312 | if (de_iir & DE_PLANEA_FLIP_DONE) { |
313 | intel_prepare_page_flip(dev, 0); | 313 | intel_prepare_page_flip(dev, 0); |
314 | intel_finish_page_flip(dev, 0); | ||
315 | } | ||
314 | 316 | ||
315 | if (de_iir & DE_PLANEB_FLIP_DONE) | 317 | if (de_iir & DE_PLANEB_FLIP_DONE) { |
316 | intel_prepare_page_flip(dev, 1); | 318 | intel_prepare_page_flip(dev, 1); |
319 | intel_finish_page_flip(dev, 1); | ||
320 | } | ||
317 | 321 | ||
318 | if (de_iir & DE_PIPEA_VBLANK) { | 322 | if (de_iir & DE_PIPEA_VBLANK) |
319 | drm_handle_vblank(dev, 0); | 323 | drm_handle_vblank(dev, 0); |
320 | intel_finish_page_flip(dev, 0); | ||
321 | } | ||
322 | 324 | ||
323 | if (de_iir & DE_PIPEB_VBLANK) { | 325 | if (de_iir & DE_PIPEB_VBLANK) |
324 | drm_handle_vblank(dev, 1); | 326 | drm_handle_vblank(dev, 1); |
325 | intel_finish_page_flip(dev, 1); | ||
326 | } | ||
327 | 327 | ||
328 | /* check event from PCH */ | 328 | /* check event from PCH */ |
329 | if ((de_iir & DE_PCH_EVENT) && | 329 | if ((de_iir & DE_PCH_EVENT) && |