drm/amd/display: FEC overhead should be checked once for mst slot nums
authorHersen Wu <hersenxs.wu@amd.com>
Mon, 11 Mar 2024 22:18:34 +0000 (18:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 01:59:29 +0000 (21:59 -0400)
commit8b2cb32cf0c613fd937ebb49a331798985f50826
tree8e62dee38741b242b442d359355ed5b933b272a6
parent029faefb7302f1079173410697b0e14d2e56e19a
drm/amd/display: FEC overhead should be checked once for mst slot nums

[Why] Mst slot nums equals to pbn / pbn_div.

Today, pbn_div refers to dm_mst_get_pbn_divider ->
dc_link_bandwidth_kbps. In dp_link_bandwidth_kbps,
which includes effect of FEC overhead already. As
result, we should not include effect of FEC overhead
again while calculating pbn by kpbs_to_peak_pbn
(stream_kbps).

[How] Include FEC overhead within dp_link_bandwidth_kbps.
Remove FEC overhead from kbps_to_peak_pbn.

Reviewed-by: Wayne Lin <wayne.lin@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@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_mst_types.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h