Skip to content

Commit f57b77d

Browse files
Yihan Zhualexdeucher
authored andcommitted
drm/amd/display: Enable DML2 override_det_buffer_size_kbytes
[WHY] Corrupted screen will be observed when 4k144 DP/HDMI display and 4k144 eDP are connected, changing eDP refresh rate from 60Hz to 144Hz. [HOW] override_det_buffer_size_kbytes should be true for DCN35/DCN351. Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Roman Li <roman.li@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Yihan Zhu <Yihan.Zhu@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5a3d3e1 commit f57b77d

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,6 +2155,7 @@ static bool dcn35_resource_construct(
21552155

21562156
dc->dml2_options.max_segments_per_hubp = 24;
21572157
dc->dml2_options.det_segment_size = DCN3_2_DET_SEG_SIZE;/*todo*/
2158+
dc->dml2_options.override_det_buffer_size_kbytes = true;
21582159

21592160
if (dc->config.sdpif_request_limit_words_per_umc == 0)
21602161
dc->config.sdpif_request_limit_words_per_umc = 16;/*todo*/

drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,6 +2133,7 @@ static bool dcn351_resource_construct(
21332133

21342134
dc->dml2_options.max_segments_per_hubp = 24;
21352135
dc->dml2_options.det_segment_size = DCN3_2_DET_SEG_SIZE;/*todo*/
2136+
dc->dml2_options.override_det_buffer_size_kbytes = true;
21362137

21372138
if (dc->config.sdpif_request_limit_words_per_umc == 0)
21382139
dc->config.sdpif_request_limit_words_per_umc = 16;/*todo*/

0 commit comments

Comments
 (0)