drm/amd/display: Added case for when RR equals panel's max RR using freesync
authorHarold Sun <Harold.Sun@amd.com>
Thu, 19 Jun 2025 18:52:54 +0000 (14:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 15:59:00 +0000 (11:59 -0400)
commitfe7645d22bc0f7c1558296538ec49987bf268ef6
tree9889d25a623f5ea6008c710959acea95b210be62
parent660a467a5e7366cd6642de61f1aaeaf0d253ee68
drm/amd/display: Added case for when RR equals panel's max RR using freesync

[WHY]
Rounding error sometimes occurs when the refresh rate is equal to a panel's
max refresh rate, causing HDMI compliance failures.

[HOW]
Added a case so that we round up to avoid v_total_min to be below a panel's
minimum bound.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Harold Sun <Harold.Sun@amd.com>
Signed-off-by: Ray Wu <ray.wu@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/dc_hw_types.h
drivers/gpu/drm/amd/display/modules/freesync/freesync.c