]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/tv: Use the scanline counter for timestamps on i965gm TV output
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Jan 2019 18:19:31 +0000 (20:19 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Jan 2019 13:53:32 +0000 (15:53 +0200)
commit4d9431505aa5f78fd2a3d10dcb0067a6bf29027c
tree7ea7b9f71ce244b3f4a9ba839d908166c3cdeda6
parent813da293dc46504702241785d9b1bce10ad590ab
drm/i915/tv: Use the scanline counter for timestamps on i965gm TV output

Just like the frame counter, the pixel counter also reads zero
all the time when the TV encoder is used. Fortunately the
scanline counter still works sufficiently well so let's use that
to correct the vblank timestamps. Otherwise the timestamps may
en up out of whack, and since we use them to guesstimate the
vblank counter value that may end up incorrect as well.

Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125181931.19482-2-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_tv.c