]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit8a920e24f05802e2ed88d0454a7253449c4654c1
tree7ea7b9f71ce244b3f4a9ba839d908166c3cdeda6
parent6a2a94041052dd4616a56b6a9aa25dd2ad51c772
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