]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Improve the accuracy of get_scanout_pos on CTG+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Sep 2013 10:02:07 +0000 (13:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Oct 2013 15:12:35 +0000 (17:12 +0200)
commitd9673e051bfa910527b025c6dbfcb16392577ef7
treea6968305855a797f1507ee06b4159c15cfcecf2d
parent2c621574064d6b64eecf02a083336e3c1996247f
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 <mario.kleiner@tuebingen.mpg.de>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: mario.kleiner.de@gmail.com
Tested-by: mario.kleiner.de@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c