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

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

This change causes regression when eDP and external display in mirror
mode. When external display supports low resolution than eDP, use eDP
timing to driver external display may cause corruption on external
display.

This reverts commit e749dd10.

Cc: stable@vger.kernel.org
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2655


Signed-off-by: default avatarHersen Wu <hersenxs.wu@amd.com>
Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 150c2131
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -7253,12 +7253,6 @@ 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);
	}