]> www.infradead.org Git - nvme.git/commit
drm/i915: Calculate vblank delay more accurately
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 24 Jun 2024 19:10:19 +0000 (22:10 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Jul 2024 11:22:42 +0000 (14:22 +0300)
commit3b0974d7b74a908d1caa27f05a97551943e1bffe
tree49879d4e106d28ab4dcdde6d0b00590cab887545
parent61fe488fc78a3024b8d4cafc90a34158f4562dae
drm/i915: Calculate vblank delay more accurately

Calculate the vblank delay in the vblank evasion code correctly
for interlaced modes.

The current code assumes that we won't be using an interlaced mode.
That assumption is actually valid since we've defeatured interlaced
scanout in commit f71c9b7bc35f ("drm/i915/display: Prune Interlace
modes for Display >=12") for DSB capable platforms. However the
feature is still present in the hardware, and if we ever find the
need to re-enable it seems better to calculate the vblank delay
correctly.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240624191032.27333-2-ville.syrjala@linux.intel.com
Reviewed-by: Animesh Manna <animesh.manna@intel.com>
drivers/gpu/drm/i915/display/intel_vblank.c