]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Do Not Consider DSC if Valid Config Not Found
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Thu, 20 Mar 2025 17:58:24 +0000 (13:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Apr 2025 19:18:37 +0000 (15:18 -0400)
commit146a4429b5674b7520a96aea34233949731c6086
treebaf1decf1a2564cc3a3aeb7996b5557911ea9858
parenta3b7dc4a1ec4e184f48c2f8205d2ec88d31310fe
drm/amd/display: Do Not Consider DSC if Valid Config Not Found

[why]
In the mode validation, mst dsc is considered for bw calculation after
common dsc config is determined. Currently it considered common dsc config
is found if max and min target bpp are non zero which is not accurate. Invalid
max and min target bpp values would not get max_kbps and min_kbps calculated,
leading to falsefully pass a mode that does not have valid dsc parameters
available.

[how]
Use the return value of decide_dsc_bandwidth_range() to determine whether valid
dsc common config is found or not. Prune out modes that do not have valid common
dsc config determined.

Reviewed-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@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