drm/amd/display: Add PBN per slot calculation for DSC
authorMikita Lipski <mikita.lipski@amd.com>
Sat, 16 Nov 2019 20:45:37 +0000 (15:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jan 2020 23:07:47 +0000 (18:07 -0500)
commitdcade880e342407fb76bdf4529b886c3ebedc6b3
tree17a715c9290fc4db29d3e7a9d0800893a493a813
parent9e5b959036ff76dda397998d1185b0ec0ae58568
drm/amd/display: Add PBN per slot calculation for DSC

[why]
Need to calculate VCPI slots differently for DSC
to take in account current link rate, link count
and FEC.
[how]
Add helper to get pbn_div from dc_link

Acked-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@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