Skip to content

Commit 35c2f2a

Browse files
Wayne Lingregkh
authored andcommitted
drm/amd/display: Validate mdoe under MST LCT=1 case as well
commit b5cd418 upstream. [Why & How] Currently in dm_dp_mst_is_port_support_mode(), when valdidating mode under dsc decoding at the last DP link config, we only validate the case when there is an UFP. However, if the MSTB LCT=1, there is no UFP. Under this case, use root_link_bw_in_kbps as the available bw to compare. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/3720 Fixes: fa57924 ("drm/amd/display: Refactor function dm_dp_mst_is_port_support_mode()") Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Reviewed-by: Jerry Zuo <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Signed-off-by: Tom Chung <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit a04d953) Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ec74481 commit 35c2f2a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,11 +1831,15 @@ enum dc_status dm_dp_mst_is_port_support_mode(
18311831
if (immediate_upstream_port) {
18321832
virtual_channel_bw_in_kbps = kbps_from_pbn(immediate_upstream_port->full_pbn);
18331833
virtual_channel_bw_in_kbps = min(root_link_bw_in_kbps, virtual_channel_bw_in_kbps);
1834-
if (bw_range.min_kbps > virtual_channel_bw_in_kbps) {
1835-
DRM_DEBUG_DRIVER("MST_DSC dsc decode at last link."
1836-
"Max dsc compression can't fit into MST available bw\n");
1837-
return DC_FAIL_BANDWIDTH_VALIDATE;
1838-
}
1834+
} else {
1835+
/* For topology LCT 1 case - only one mstb*/
1836+
virtual_channel_bw_in_kbps = root_link_bw_in_kbps;
1837+
}
1838+
1839+
if (bw_range.min_kbps > virtual_channel_bw_in_kbps) {
1840+
DRM_DEBUG_DRIVER("MST_DSC dsc decode at last link."
1841+
"Max dsc compression can't fit into MST available bw\n");
1842+
return DC_FAIL_BANDWIDTH_VALIDATE;
18391843
}
18401844
}
18411845

0 commit comments

Comments
 (0)