Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Fix system hang while resume with TBT monitor

[Why]
Connected with a Thunderbolt monitor and do the suspend and the system
may hang while resume.

The TBT monitor HPD will be triggered during the resume procedure
and call the drm_client_modeset_probe() while
struct drm_connector connector->dev->master is NULL.

It will mess up the pipe topology after resume.

[How]
Skip the TBT monitor HPD during the resume procedure because we
currently will probe the connectors after resume by default.

Reviewed-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tom Chung and committed by
Alex Deucher
453f86a2 9b68445e

+6
+6
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
··· 770 770 return; 771 771 } 772 772 773 + /* Skip DMUB HPD IRQ in suspend/resume. We will probe them later. */ 774 + if (notify->type == DMUB_NOTIFICATION_HPD && adev->in_suspend) { 775 + DRM_INFO("Skip DMUB HPD IRQ callback in suspend/resume\n"); 776 + return; 777 + } 778 + 773 779 link_index = notify->link_index; 774 780 link = adev->dm.dc->links[link_index]; 775 781 dev = adev->dm.ddev;