From: Ville Syrjälä Date: Wed, 6 Nov 2013 15:56:27 +0000 (-0200) Subject: drm/i915: Fix gen3/4 vblank counter wraparound X-Git-Tag: v3.14-rc1~47^2~90^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edc08d0a40f7ddab6bf7249e59ecf692d36c7192;p=pandora-kernel.git drm/i915: Fix gen3/4 vblank counter wraparound When the hardware frame counter reads 0xffffff and we're already past vblank start, we'd return 0x1000000 as the vblank counter value. Once we'd cross into the next frame's active portion, the vblank counter would wrap to 0. So we're reporting two different vblank counter values for the same frame. Fix the problem by masking the cooked value by 0xffffff to make sure the counter wraps already after vblank start. Signed-off-by: Ville Syrjälä Signed-off-by: Rodrigo Vivi Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed