]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix allocate_mst_payload assert on resume
authorRoman Li <Roman.Li@amd.com>
Thu, 17 Mar 2022 23:55:05 +0000 (19:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 15:42:32 +0000 (11:42 -0400)
commitf4346fb3edf7720db3f7f5e1cab1f667cd024280
tree91cb45b07cdb1bcf03899b1708ef0dd7c6fd05fe
parentb2075fce104b88b789c15ef1ed2b91dc94198e26
drm/amd/display: Fix allocate_mst_payload assert on resume

[Why]
On resume we do link detection for all non-MST connectors.
MST is handled separately. However the condition for telling
if connector is on mst branch is not enough for mst hub case.
Link detection for mst branch link leads to mst topology reset.
That causes assert in dc_link_allocate_mst_payload()

[How]
Use link type as indicator for mst link.

Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Roman Li <Roman.Li@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