]> git.hungrycats.org Git - linux/commit
drm/amd/display: Fix system hang while resume with TBT monitor
authorTom Chung <chiahsuan.chung@amd.com>
Fri, 13 Sep 2024 07:44:40 +0000 (15:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Oct 2024 21:36:37 +0000 (17:36 -0400)
commit453f86a26945207a16b8f66aaed5962dc2b95b85
treee39edda8d667f76f8b70146204a5dc4d71199ba2
parent9b68445eb657d02d8af3ee842335d33259d1c7e7
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c