Commit d1d51519 authored by Saidireddy Yenugu's avatar Saidireddy Yenugu Committed by Alex Deucher
Browse files

drm/amd/display: Skip eDP detection when no sink



[Why & How]
When there is no eDP panel connected and during
s0ix resume, unnecessary eDP power sequence and
HPD happening, resulting in ~2 seconds delay.

Fixed the issue by avoiding link detect for eDP
connection with no sink in dm_resume.

Reviewed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarSaidireddy Yenugu <Saidireddy.Yenugu@amd.com>
Co-developed-by: default avatarThummarDip Kishorbhai <ThummarDip.Kishorbhai@amd.com>
Signed-off-by: default avatarThummarDip Kishorbhai <ThummarDip.Kishorbhai@amd.com>
Signed-off-by: default avatarRay Wu <ray.wu@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d637dd72
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3614,6 +3614,11 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)
		if (aconnector->mst_root)
			continue;

		/* Skip eDP detection, when there is no sink present */
		if (aconnector->dc_link->connector_signal == SIGNAL_TYPE_EDP &&
		    !aconnector->dc_link->edp_sink_present)
			continue;

		guard(mutex)(&aconnector->hpd_lock);
		if (!dc_link_detect_connection_type(aconnector->dc_link, &new_connection_type))
			drm_err(adev_to_drm(adev), "KMS: Failed to detect connector\n");