]> 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)
commitd89a6aa1ab41ad246d22ebdab9a5298c93ec222c
treea6968305855a797f1507ee06b4159c15cfcecf2d
parentfe46ac5728238b5be993cdcb868d67fe3266515d
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