drm/amd/display: Fix possible underflow for displays with large vblank
authorDaniel Miess <daniel.miess@amd.com>
Tue, 25 Apr 2023 18:29:48 +0000 (14:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:39:44 +0000 (09:39 -0400)
commit1a4bcdbea4319efeb26cc4b05be859a7867e02dc
treeba4f2931b387c0c7b792c78474c6bc874946ac79
parent9c384ee8f997d0646844cd431f1c23e6dbf84a98
drm/amd/display: Fix possible underflow for displays with large vblank

[Why]
Underflow observed when using a display with a large vblank region
and low refresh rate

[How]
Simplify calculation of vblank_nom

Increase value for VBlankNomDefaultUS to 800us

Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Daniel Miess <daniel.miess@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn314/dcn314_fpu.c