Commit e749dd10 authored by Hersen Wu's avatar Hersen Wu Committed by Alex Deucher
Browse files

drm/amd/display: edp do not add non-edid timings



[Why] most edp support only timings from edid. applying
non-edid timings, especially those timings out of edp
bandwidth, may damage edp.

[How] do not add non-edid timings for edp.

Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Acked-by: default avatarStylon Wang <stylon.wang@amd.com>
Signed-off-by: default avatarHersen Wu <hersenxs.wu@amd.com>
Reviewed-by: default avatarRoman Li <roman.li@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 34e5a543
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -7196,6 +7196,12 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
				drm_add_modes_noedid(connector, 1920, 1080);
	} else {
		amdgpu_dm_connector_ddc_get_modes(connector, edid);
		/* most eDP supports only timings from its edid,
		 * usually only detailed timings are available
		 * from eDP edid. timings which are not from edid
		 * may damage eDP
		 */
		if (connector->connector_type != DRM_MODE_CONNECTOR_eDP)
			amdgpu_dm_connector_add_common_modes(encoder, connector);
		amdgpu_dm_connector_add_freesync_modes(connector, edid);
	}