Skip to content

Commit ee2698c

Browse files
Angus Wangalexdeucher
authored andcommitted
drm/amd/display: Changed pipe split policy to allow for multi-display pipe split
[WHY] Current implementation of pipe split policy prevents pipe split with multiple displays connected, which caused the MCLK speed to be stuck at max [HOW] Changed the pipe split policies so that pipe split is allowed for multi-display configurations Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1522 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1709 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1655 Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1403 Note this is a backport of this commit from amdgpu drm-next for 5.16. Tested-by: Daniel Wheeler <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Angus Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 33bb639 commit ee2698c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ static const struct dc_debug_options debug_defaults_drv = {
10691069
.timing_trace = false,
10701070
.clock_trace = true,
10711071
.disable_pplib_clock_request = true,
1072-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
1072+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
10731073
.force_single_disp_pipe_split = false,
10741074
.disable_dcc = DCC_ENABLE,
10751075
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static const struct dc_debug_options debug_defaults_drv = {
603603
.timing_trace = false,
604604
.clock_trace = true,
605605
.disable_pplib_clock_request = true,
606-
.pipe_split_policy = MPC_SPLIT_AVOID,
606+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
607607
.force_single_disp_pipe_split = false,
608608
.disable_dcc = DCC_ENABLE,
609609
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ static const struct dc_debug_options debug_defaults_drv = {
874874
.clock_trace = true,
875875
.disable_pplib_clock_request = true,
876876
.min_disp_clk_khz = 100000,
877-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
877+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
878878
.force_single_disp_pipe_split = false,
879879
.disable_dcc = DCC_ENABLE,
880880
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static const struct dc_debug_options debug_defaults_drv = {
840840
.timing_trace = false,
841841
.clock_trace = true,
842842
.disable_pplib_clock_request = true,
843-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
843+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
844844
.force_single_disp_pipe_split = false,
845845
.disable_dcc = DCC_ENABLE,
846846
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ static const struct dc_debug_options debug_defaults_drv = {
686686
.disable_clock_gate = true,
687687
.disable_pplib_clock_request = true,
688688
.disable_pplib_wm_range = true,
689-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
689+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
690690
.force_single_disp_pipe_split = false,
691691
.disable_dcc = DCC_ENABLE,
692692
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static const struct dc_debug_options debug_defaults_drv = {
211211
.timing_trace = false,
212212
.clock_trace = true,
213213
.disable_pplib_clock_request = true,
214-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
214+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
215215
.force_single_disp_pipe_split = false,
216216
.disable_dcc = DCC_ENABLE,
217217
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static const struct dc_debug_options debug_defaults_drv = {
193193
.timing_trace = false,
194194
.clock_trace = true,
195195
.disable_pplib_clock_request = true,
196-
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
196+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
197197
.force_single_disp_pipe_split = false,
198198
.disable_dcc = DCC_ENABLE,
199199
.vsr_support = true,

drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ static const struct dc_debug_options debug_defaults_drv = {
10021002
.timing_trace = false,
10031003
.clock_trace = true,
10041004
.disable_pplib_clock_request = false,
1005-
.pipe_split_policy = MPC_SPLIT_AVOID,
1005+
.pipe_split_policy = MPC_SPLIT_DYNAMIC,
10061006
.force_single_disp_pipe_split = false,
10071007
.disable_dcc = DCC_ENABLE,
10081008
.vsr_support = true,

0 commit comments

Comments
 (0)