Skip to content

Commit d1d5151

Browse files
amd-sayenugualexdeucher
authored andcommitted
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: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Saidireddy Yenugu <Saidireddy.Yenugu@amd.com> Co-developed-by: ThummarDip Kishorbhai <ThummarDip.Kishorbhai@amd.com> Signed-off-by: ThummarDip Kishorbhai <ThummarDip.Kishorbhai@amd.com> Signed-off-by: Ray Wu <ray.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent d637dd7 commit d1d5151

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,6 +3614,11 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)
36143614
if (aconnector->mst_root)
36153615
continue;
36163616

3617+
/* Skip eDP detection, when there is no sink present */
3618+
if (aconnector->dc_link->connector_signal == SIGNAL_TYPE_EDP &&
3619+
!aconnector->dc_link->edp_sink_present)
3620+
continue;
3621+
36173622
guard(mutex)(&aconnector->hpd_lock);
36183623
if (!dc_link_detect_connection_type(aconnector->dc_link, &new_connection_type))
36193624
drm_err(adev_to_drm(adev), "KMS: Failed to detect connector\n");

0 commit comments

Comments
 (0)