From: Ville Syrjälä Date: Mon, 23 Sep 2013 10:02:07 +0000 (+0300) Subject: drm/i915: Improve the accuracy of get_scanout_pos on CTG+ X-Git-Tag: v3.13-rc1~76^2~68^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ddcbd26a677524d4bcd9f2a9539e6d743592d8;p=pandora-kernel.git drm/i915: Improve the accuracy of get_scanout_pos on CTG+ The DSL register increments at the start of horizontal sync, so it manages to miss the entire active portion of the current line. Improve the get_scanoutpos accuracy a bit when the scanout position is close to the start or end of vblank. We can do that by double checking the DSL value against the vblank status bit from ISR. Cc: Mario Kleiner Signed-off-by: Ville Syrjälä Reviewed-by: mario.kleiner.de@gmail.com Tested-by: mario.kleiner.de@gmail.com Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed