]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drm/amd/display: Add signal type check when verify stream backends same
authorDale Zhao <dale.zhao@amd.com>
Tue, 28 Dec 2021 08:50:28 +0000 (16:50 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:40:32 +0000 (14:40 +0200)
commite82bf9dae78bb55bb4882c1f2a33fe44cc1c3ca2
tree3eab4d1fc53d350340fd3041518667f7d9fd0319
parentbd4e57cd5efc5db0fad15782fc49eefbd7ddbab7
drm/amd/display: Add signal type check when verify stream backends same

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit 047db281c026de5971cedb5bb486aa29bd16a39d ]

[Why]
For allow eDP hot-plug feature, the stream signal may change to VIRTUAL
when plug-out and back to eDP when plug-in. OS will still setPathMode
with same timing for each plugging, but eDP gets no stream update as we
don't check signal type changing back as keeping it VIRTUAL. It's also
unsafe for future cases that stream signal is switched with same timing.

[How]
Check stream signal type change include previous HDMI signal case.

Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Dale Zhao <dale.zhao@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit c4b64a80554e57a68b594f2920988f4bc39768d9)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c