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)
commit862a876c3a6372f2fa9d0c6510f1976ac94fc857
tree871c3bc794f37e14167650d5dbcefa97d39c19cc
parentdda81d9761d07541c404dd5fa93e773a8eda5ddc
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