File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
drivers/gpu/drm/amd/display/amdgpu_dm Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -7196,7 +7196,13 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
7196
7196
drm_add_modes_noedid (connector , 1920 , 1080 );
7197
7197
} else {
7198
7198
amdgpu_dm_connector_ddc_get_modes (connector , edid );
7199
- amdgpu_dm_connector_add_common_modes (encoder , connector );
7199
+ /* most eDP supports only timings from its edid,
7200
+ * usually only detailed timings are available
7201
+ * from eDP edid. timings which are not from edid
7202
+ * may damage eDP
7203
+ */
7204
+ if (connector -> connector_type != DRM_MODE_CONNECTOR_eDP )
7205
+ amdgpu_dm_connector_add_common_modes (encoder , connector );
7200
7206
amdgpu_dm_connector_add_freesync_modes (connector , edid );
7201
7207
}
7202
7208
amdgpu_dm_fbc_init (connector );
You can’t perform that action at this time.
0 commit comments