]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amd/display: Enable DML2 override_det_buffer_size_kbytes
authorYihan Zhu <Yihan.Zhu@amd.com>
Mon, 26 Aug 2024 18:44:04 +0000 (14:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2024 20:15:07 +0000 (16:15 -0400)
[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>
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c

index 46ad684fe19205ac6f8d5f07f51956875bfddd77..893a9d9ee870df9edafb49c4ee66a41ddc4f6654 100644 (file)
@@ -2155,6 +2155,7 @@ static bool dcn35_resource_construct(
 
        dc->dml2_options.max_segments_per_hubp = 24;
        dc->dml2_options.det_segment_size = DCN3_2_DET_SEG_SIZE;/*todo*/
+       dc->dml2_options.override_det_buffer_size_kbytes = true;
 
        if (dc->config.sdpif_request_limit_words_per_umc == 0)
                dc->config.sdpif_request_limit_words_per_umc = 16;/*todo*/
index 4c5e722baa3a683b9e9470968991046541a30e8d..514c6d56925d54089c21623a60077ae94a834b06 100644 (file)
@@ -2133,6 +2133,7 @@ static bool dcn351_resource_construct(
 
        dc->dml2_options.max_segments_per_hubp = 24;
        dc->dml2_options.det_segment_size = DCN3_2_DET_SEG_SIZE;/*todo*/
+       dc->dml2_options.override_det_buffer_size_kbytes = true;
 
        if (dc->config.sdpif_request_limit_words_per_umc == 0)
                dc->config.sdpif_request_limit_words_per_umc = 16;/*todo*/