]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: do not calculate DP2.0 SST payload when link is off
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 29 Apr 2022 19:42:30 +0000 (15:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 May 2022 21:53:12 +0000 (17:53 -0400)
commit58b5b253b5c4fff3f66af8fdd927f690c1deaecf
tree5a862e6e96826b8409d102ce52ad648844948051
parent6fcd18ffbe33a73d5354d61a372c79ec50b7490e
drm/amd/display: do not calculate DP2.0 SST payload when link is off

[Why & How]
There is a chance where the RX issues HPD deassert in the
middle of link training, this will cause our logic to
abort link training and turn off link. However our payload
allocation logic needs to use current link settings to
determine average time slot per MTP. This will need to
use current link bandwidth as divider. This causes divide
by zero error occasionally. The fix is to skip DP2.0 payload
allocation logic if current link is not in 128b/132b mode.

Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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.c