]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Release MST resources on switch from MST to SST
authorVladimir Stempen <vladimir.stempen@amd.com>
Wed, 19 May 2021 17:55:46 +0000 (13:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:20:26 +0000 (12:20 -0400)
commit3f8518b60c10aa96f3efa38a967a0b4eb9211ac0
treed98fb4ad4aba260b14ff20172b9711bedc297519
parent74b4afad00dd70ee77ce2f3d31d6700f4dfb15ef
drm/amd/display: Release MST resources on switch from MST to SST

[why]
When OS overrides training link training parameters
for MST device to SST mode, MST resources are not
released and leak of the resource may result crash and
incorrect MST discovery during following hot plugs.

[how]
Retaining sink object to be reused by SST link and
releasing MST  resources.

Signed-off-by: Vladimir Stempen <vladimir.stempen@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c