]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix pbn to kbps Conversion
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Fri, 7 Nov 2025 20:01:30 +0000 (15:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Nov 2025 15:51:50 +0000 (10:51 -0500)
commite0dec00f3d05e8c0eceaaebfdca217f8d10d380c
treece0d2657b6f47c152393c77cc09d7387cbde378a
parenta6ec17263235b33051804851b2750ac8fb24186c
drm/amd/display: Fix pbn to kbps Conversion

[Why]
Existing routine has two conversion sequence,
pbn_to_kbps and kbps_to_pbn with margin.
Non of those has without-margin calculation.

kbps_to_pbn with margin conversion includes
fec overhead which has already been included in
pbn_div calculation with 0.994 factor considered.
It is a double counted fec overhead factor that causes
potential bw loss.

[How]
Add without-margin calculation.
Fix fec overhead double counted issue.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3735
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Tested-by: Dan 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