]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: Move the early vblank IRQ fixup to radeon_get_crtc_scanoutpos()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Oct 2013 19:22:52 +0000 (21:22 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2014 10:21:35 +0000 (12:21 +0200)
commitdad3ce5110006b140751bf7096428e6741836947
treef08bac82c992480223540c77608e0aa26d9af148
parent0ec936505927076032dd904cd2f6a2a53a8ca9da
drm/radeon: Move the early vblank IRQ fixup to radeon_get_crtc_scanoutpos()

i915 doesn't need this kludge for most platforms. Although we do
appear to need something similar on certain platforms, but we can
be more accurate when we apply the adjustment since we know exactly
why the scanline counter doesn't always quite match the vblank
status.

Also the current code doesn't handle interlaced modes correctly,
and we already deal with interlaced modes in i915 code.

So let's just move the current code to radeon_get_crtc_scanoutpos()
since that's why it was added. For i915 we'll add a more finely
targeted variant.

v2: Fix vpos vs. *vpos bug (Mario)

Reviewed-by: mario.kleiner.de@gmail.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_irq.c
drivers/gpu/drm/radeon/radeon_display.c