]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Use the correct max downscaling value for DCN3.x family
authorNikola Cornij <nikola.cornij@amd.com>
Fri, 7 May 2021 02:46:52 +0000 (22:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 May 2021 21:59:06 +0000 (17:59 -0400)
commit84c63d040938f64a7dc195696301166e75231bf5
tree6c8dc9e88c566a6eec33d57420459c2aa3e54739
parentd07f6ca923ea0927a1024dfccafc5b53b61cfecc
drm/amd/display: Use the correct max downscaling value for DCN3.x family

[why]
As per spec, DCN3.x can do 6:1 downscaling and DCN2.x can do 4:1. The
max downscaling limit value for DCN2.x is 250, which means it's
calculated as 1000 / 4 = 250. For DCN3.x this then gives 1000 / 6 = 167.

[how]
Set maximum downscaling limit to 167 for DCN3.x

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c
drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c