]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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 18:00:51 +0000 (14:00 -0400)
commit84f2902bfcfe79e94adf5dfe9bf85ad334a4c63a
treec11e3310d07eb9ba7daff92d1e53f66b3fd8fd7b
parent34659c1a1f4fd4c148ab13e13b11fd64df01ffcd
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>
(cherry picked from commit fe7645d22bc0f7c1558296538ec49987bf268ef6)
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/modules/freesync/freesync.c