]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: fix check for identity ratio
authorSamson Tam <Samson.Tam@amd.com>
Tue, 21 Jan 2025 16:01:47 +0000 (11:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:44:02 +0000 (11:44 -0500)
commit0d3004647631aedb713251525a99784661574767
tree8c53b69fcf470d740c666ec80ff1e562cf05f490
parent26873260d394b1e33cdd720154aedf0af95327f9
drm/amd/display: fix check for identity ratio

[Why]
IDENTITY_RATIO check uses 2 bits for integer, which only allows
 checking downscale ratios up to 3.  But we support up to 6x
 downscale

[How]
Update IDENTITY_RATIO to check 3 bits for integer
Add ASSERT to catch if we downscale more than 6x

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Reviewed-by: Jun Lei <jun.lei@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c