drm/i915: call drm_handle_vblank before finish_page_flip
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Oct 2012 15:54:35 +0000 (17:54 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Oct 2012 08:33:43 +0000 (10:33 +0200)
commit74d44445afb9f50126eba052adeb89827cee88f3
tree763925fb8f2080134b9c75aa2f24e99742c96e25
parent4d0f817e7482969a31c2295a530c966f135faa7e
drm/i915: call drm_handle_vblank before finish_page_flip

... 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.

Cc: stable@vger.kernel.org
Reviewed-by: mario.kleiner@tuebingen.mpg.de
Tested-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c