File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
drivers/gpu/drm/amd/display/amdgpu_dm Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -11303,14 +11303,23 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,
11303
11303
if (range -> flags != 1 )
11304
11304
continue ;
11305
11305
11306
- amdgpu_dm_connector -> min_vfreq = range -> min_vfreq ;
11307
- amdgpu_dm_connector -> max_vfreq = range -> max_vfreq ;
11308
- amdgpu_dm_connector -> pixel_clock_mhz =
11309
- range -> pixel_clock_mhz * 10 ;
11310
-
11311
11306
connector -> display_info .monitor_range .min_vfreq = range -> min_vfreq ;
11312
11307
connector -> display_info .monitor_range .max_vfreq = range -> max_vfreq ;
11313
11308
11309
+ if (edid -> revision >= 4 ) {
11310
+ if (data -> pad2 & DRM_EDID_RANGE_OFFSET_MIN_VFREQ )
11311
+ connector -> display_info .monitor_range .min_vfreq += 255 ;
11312
+ if (data -> pad2 & DRM_EDID_RANGE_OFFSET_MAX_VFREQ )
11313
+ connector -> display_info .monitor_range .max_vfreq += 255 ;
11314
+ }
11315
+
11316
+ amdgpu_dm_connector -> min_vfreq =
11317
+ connector -> display_info .monitor_range .min_vfreq ;
11318
+ amdgpu_dm_connector -> max_vfreq =
11319
+ connector -> display_info .monitor_range .max_vfreq ;
11320
+ amdgpu_dm_connector -> pixel_clock_mhz =
11321
+ range -> pixel_clock_mhz * 10 ;
11322
+
11314
11323
break ;
11315
11324
}
11316
11325
You can’t perform that action at this time.
0 commit comments