]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix LFC tearing at top of screen
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 6 Apr 2018 16:12:06 +0000 (12:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:54 +0000 (11:10 -0500)
commite39ae29599c2099602eef738ff0c83a7a072bcbf
treeaf46c33fef29ae89d124bfe475218538e87af1a5
parentfe3ba0fd102b9fcd2d17207fabd886f93d8e8e77
drm/amd/display: fix LFC tearing at top of screen

Tearing occurred because new VTOTAL MIN/MAX was being programmed
too early.
The flip can happen within the VUPDATE high region, and the new min/max
would take effect immediately. But this means that frame is not variable
anymore, and tearing would occur when the flip actually happens.

The fixed insert duration should be programmed on the first VUPDATE
interrupt instead.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c