]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Correct Slice reset calculation
authorChris Park <Chris.Park@amd.com>
Tue, 15 Mar 2022 16:21:43 +0000 (12:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Apr 2022 15:26:19 +0000 (11:26 -0400)
commit2b1825dd6e02ccadfb83fa906c46932b6d214d8a
tree871c3bc794f37e14167650d5dbcefa97d39c19cc
parent38c33ae0ce7dbea08e2e3af72399c92b97d12dea
drm/amd/display: Correct Slice reset calculation

[Why]
Once DSC slice cannot fit pixel clock, we incorrectly
reset min slices to 0 and allow max slice to operate,
even when max slice itself cannot fit the pixel clock
properly.

[How]
Change the sequence such that we correctly determine
DSC is not possible when both min slices and max
slices cannot fit pixel clock per slice.

Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Chris Park <Chris.Park@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/dsc/dc_dsc.c