]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Fix Mode Cutoff in DSC Passthrough to DP2.1 Monitor
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Mon, 2 Dec 2024 18:30:37 +0000 (13:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:49:30 +0000 (13:49 +0100)
commit231ebd6ee902a6b08b18bfdaabfa8150a252edd1
tree1a4cc331d10d52b30cb5b7707ff3d510623aa511
parent9a6d43844de2479a3ff8d674c3e2a16172e01598
drm/amd/display: Fix Mode Cutoff in DSC Passthrough to DP2.1 Monitor

[ Upstream commit e56ad45e991128bf4db160b75a1d9f647a341d8f ]

Source --> DP2.1 MST hub --> DP1.4/2.1 monitor

When change from DP1.4 to DP2.1 from monitor manual, modes higher than
4k120 are all cutoff by mode validation. Switch back to DP1.4 gets all
the modes up to 4k240 available to be enabled by dsc passthrough.

[why]
Compared to DP1.4 link from hub to monitor, DP2.1 link has larger
full_pbn value that causes overflow in the process of doing conversion
from pbn to kbps.

[how]
Change the data type accordingly to fit into the data limit during
conversion calculation.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c