]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Wait edp HPD to high in detect_sink
authorDale Zhao <dale.zhao@amd.com>
Thu, 22 Nov 2018 09:13:46 +0000 (17:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:23 +0000 (20:02 +0100)
commite1f7735b261fa71ad85021680dbc9ab391c9d9b7
treece4c4964dbf3f9a50866cfdaebff572850521149
parent9c77d1a5311e95522abedf797285afa49f10d920
drm/amd/display: Wait edp HPD to high in detect_sink

[ Upstream commit 0a6414e75d231ee1bb7ffb2f5eb246b682a884cd ]

[Why]
In 99% user case, edp will be post by vbios.
In 1% / current case: Lenovo don't light up edp panel in vbios
post stage, vbios won't be lit up. Thus in dal when we init DCN
10 hw, we power up edp, then we start detect_sink, but internal
time is too short, when we detect it, HPD is still low, so we don't
detect the edp, and edp shows black.

[How]
When we init hw, we wait edp HPD to high after power up edp.

Signed-off-by: Dale Zhao <dale.zhao@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/core/dc_link.c