File tree Expand file tree Collapse file tree
drivers/gpu/drm/amd/display/amdgpu_dm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13388,7 +13388,8 @@ static void extend_range_from_vsdb(struct drm_display_info *display,
1338813388 *
1338913389 * Work around that by not touching VRR min if it still supports LFC.
1339013390 */
13391- if (vsdb -> min_refresh_rate_hz < vrr_min && (vrr_min * 2 >= vrr_max ))
13391+ if (vsdb -> min_refresh_rate_hz > 0 &&
13392+ vsdb -> min_refresh_rate_hz < vrr_min && (vrr_min * 2 >= vrr_max ))
1339213393 vrr_min = vsdb -> min_refresh_rate_hz ;
1339313394
1339413395 display -> monitor_range .min_vfreq = vrr_min ;
@@ -13476,7 +13477,8 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,
1347613477 monitor_range_from_vsdb (& connector -> display_info , & vsdb_info );
1347713478
1347813479 /* Try extending range if found in AMD vsdb */
13479- extend_range_from_vsdb (& connector -> display_info , & vsdb_info );
13480+ if (vsdb_info .freesync_supported )
13481+ extend_range_from_vsdb (& connector -> display_info , & vsdb_info );
1348013482
1348113483 if (dpcd_caps .allow_invalid_MSA_timing_param )
1348213484 freesync_capable = copy_range_to_amdgpu_connector (connector );
You can’t perform that action at this time.
0 commit comments