Commit 0c56705d authored by Duncan Ma's avatar Duncan Ma Committed by Alex Deucher

drm/amd/display: Correct min comp buffer size

[Why]
In 3-way mpo pipes, there is a case that we
overbook the CRB buffer size. At rare instances,
overbooking the crb will cause underflow. This only
happens when det_size changes dynamically
based on pipe_cnt.

[How]
Set min compbuff size to 1 segment when preparing BW.
Reviewed-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarDuncan Ma <duncan.ma@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2d017189
...@@ -201,7 +201,7 @@ struct _vcs_dpi_ip_params_st dcn3_15_ip = { ...@@ -201,7 +201,7 @@ struct _vcs_dpi_ip_params_st dcn3_15_ip = {
.hostvm_max_page_table_levels = 2, .hostvm_max_page_table_levels = 2,
.rob_buffer_size_kbytes = 64, .rob_buffer_size_kbytes = 64,
.det_buffer_size_kbytes = DCN3_15_DEFAULT_DET_SIZE, .det_buffer_size_kbytes = DCN3_15_DEFAULT_DET_SIZE,
.min_comp_buffer_size_kbytes = DCN3_15_MIN_COMPBUF_SIZE_KB, .min_comp_buffer_size_kbytes = 64,
.config_return_buffer_size_in_kbytes = 1024, .config_return_buffer_size_in_kbytes = 1024,
.compressed_buffer_segment_size_in_kbytes = 64, .compressed_buffer_segment_size_in_kbytes = 64,
.meta_fifo_size_in_kentries = 32, .meta_fifo_size_in_kentries = 32,
...@@ -297,6 +297,7 @@ struct _vcs_dpi_ip_params_st dcn3_16_ip = { ...@@ -297,6 +297,7 @@ struct _vcs_dpi_ip_params_st dcn3_16_ip = {
.hostvm_max_page_table_levels = 2, .hostvm_max_page_table_levels = 2,
.rob_buffer_size_kbytes = 64, .rob_buffer_size_kbytes = 64,
.det_buffer_size_kbytes = DCN3_16_DEFAULT_DET_SIZE, .det_buffer_size_kbytes = DCN3_16_DEFAULT_DET_SIZE,
.min_comp_buffer_size_kbytes = 64,
.config_return_buffer_size_in_kbytes = 1024, .config_return_buffer_size_in_kbytes = 1024,
.compressed_buffer_segment_size_in_kbytes = 64, .compressed_buffer_segment_size_in_kbytes = 64,
.meta_fifo_size_in_kentries = 32, .meta_fifo_size_in_kentries = 32,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment