Skip to content

Commit dd2db2d

Browse files
Daniel Miessalexdeucher
authored andcommitted
drm/amd/display: Adjust downscaling limits for dcn314
[Why] Lower max_downscale_ratio and ARGB888 downscale factor to prevent cases where underflow may occur on dcn314 [How] Set max_downscale_ratio to 400 and ARGB downscale factor to 250 for dcn314 Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Alex Hung <[email protected]> Signed-off-by: Daniel Miess <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent ea062fd commit dd2db2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,9 @@ static const struct dc_plane_cap plane_cap = {
874874
},
875875

876876
// 6:1 downscaling ratio: 1000/6 = 166.666
877+
// 4:1 downscaling ratio for ARGB888 to prevent underflow during P010 playback: 1000/4 = 250
877878
.max_downscale_factor = {
878-
.argb8888 = 167,
879+
.argb8888 = 250,
879880
.nv12 = 167,
880881
.fp16 = 167
881882
},
@@ -1763,7 +1764,7 @@ static bool dcn314_resource_construct(
17631764
pool->base.underlay_pipe_index = NO_UNDERLAY_PIPE;
17641765
pool->base.pipe_count = pool->base.res_cap->num_timing_generator;
17651766
pool->base.mpcc_count = pool->base.res_cap->num_timing_generator;
1766-
dc->caps.max_downscale_ratio = 600;
1767+
dc->caps.max_downscale_ratio = 400;
17671768
dc->caps.i2c_speed_in_khz = 100;
17681769
dc->caps.i2c_speed_in_khz_hdcp = 100;
17691770
dc->caps.max_cursor_size = 256;

0 commit comments

Comments
 (0)