drm/amd/display: Display lost signal on playing video
authorpo-tchen <robin.chen@amd.com>
Fri, 20 Sep 2024 07:41:55 +0000 (15:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:11:49 +0000 (14:11 -0400)
commitaacbed5b41d93bb741d8dab6e3e008a732f3e3df
treec1e8aadd0edbce0030622e2cafcacf890c3dd76c
parentffa1e31f70d2e97c121709b44a8960f5d7becb10
drm/amd/display: Display lost signal on playing video

[Why]
When Source extend the vblank to reach the minimum panel
refresh rate, the vtotal length could have 1 line longer
than the maximum supported vtotal.
The reason is we optimized the vtotal/refresh-rate calculation
to get more accurate vtotal number by rounding the calculation
result. But when the target refresh rate is the minimum
refresh rate, the vtotal result could be round up and over
the maximum supported vtotal.

Reviewed-by: Anthony Koo <anthony.koo@amd.com>
Signed-off-by: po-tchen <robin.chen@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c