This is a note to let you know that I've just added the patch titled drm/i915: call drm_handle_vblank before finish_page_flip
to the 3.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: drm-i915-call-drm_handle_vblank-before-finish_page_flip.patch and it can be found in the queue-3.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@vger.kernel.org> know about it. >From 74d44445afb9f50126eba052adeb89827cee88f3 Mon Sep 17 00:00:00 2001 From: Daniel Vetter <daniel.vet...@ffwll.ch> Date: Tue, 2 Oct 2012 17:54:35 +0200 Subject: drm/i915: call drm_handle_vblank before finish_page_flip From: Daniel Vetter <daniel.vet...@ffwll.ch> commit 74d44445afb9f50126eba052adeb89827cee88f3 upstream. ... since finish_page_flip needs the vblank timestamp generated in drm_handle_vblank. Somehow all the gmch platforms get it right, but all the pch platform irq handlers get is wrong. Hooray for copy& pasting! Currently this gets papered over by a gross hack in finish_page_flip. A second patch will remove that. Note that without this, the new timestamp sanity checks in flip_test occasionally get tripped up, hence the cc: stable tag. Reviewed-by: mario.klei...@tuebingen.mpg.de Tested-by: Imre Deak <imre.d...@intel.com> Signed-off-by: Daniel Vetter <daniel.vet...@ffwll.ch> Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- drivers/gpu/drm/i915/i915_irq.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -680,12 +680,12 @@ static irqreturn_t ivybridge_irq_handler intel_opregion_gse_intr(dev); for (i = 0; i < 3; i++) { + if (de_iir & (DE_PIPEA_VBLANK_IVB << (5 * i))) + drm_handle_vblank(dev, i); if (de_iir & (DE_PLANEA_FLIP_DONE_IVB << (5 * i))) { intel_prepare_page_flip(dev, i); intel_finish_page_flip_plane(dev, i); } - if (de_iir & (DE_PIPEA_VBLANK_IVB << (5 * i))) - drm_handle_vblank(dev, i); } /* check event from PCH */ @@ -767,6 +767,12 @@ static irqreturn_t ironlake_irq_handler( if (de_iir & DE_GSE) intel_opregion_gse_intr(dev); + if (de_iir & DE_PIPEA_VBLANK) + drm_handle_vblank(dev, 0); + + if (de_iir & DE_PIPEB_VBLANK) + drm_handle_vblank(dev, 1); + if (de_iir & DE_PLANEA_FLIP_DONE) { intel_prepare_page_flip(dev, 0); intel_finish_page_flip_plane(dev, 0); @@ -777,12 +783,6 @@ static irqreturn_t ironlake_irq_handler( intel_finish_page_flip_plane(dev, 1); } - if (de_iir & DE_PIPEA_VBLANK) - drm_handle_vblank(dev, 0); - - if (de_iir & DE_PIPEB_VBLANK) - drm_handle_vblank(dev, 1); - /* check event from PCH */ if (de_iir & DE_PCH_EVENT) { if (pch_iir & hotplug_mask) Patches currently in stable-queue which might be from daniel.vet...@ffwll.ch are queue-3.6/drm-i915-prevent-possible-pin-leak-on-error-path.patch queue-3.6/drm-i915-flush-the-pending-flips-on-the-crtc-before-modification.patch queue-3.6/drm-i915-make-sure-we-write-all-the-dip-data-bytes.patch queue-3.6/drm-i915-fix-gt_mode-default-value.patch queue-3.6/drm-i915-call-drm_handle_vblank-before-finish_page_flip.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html