<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Maybe add Bug links for:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://gitlab.freedesktop.org/drm/amd/-/issues/1522" id="LPNoLPOWALinkPreview">https://gitlab.freedesktop.org/drm/amd/-/issues/1522</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<div><a href="https://gitlab.freedesktop.org/drm/amd/-/issues/1709" id="LPNoLPOWALinkPreview_1">https://gitlab.freedesktop.org/drm/amd/-/issues/1709</a></div>
<div><a href="https://gitlab.freedesktop.org/drm/amd/-/issues/1655" id="LPNoLPOWALinkPreview_2">https://gitlab.freedesktop.org/drm/amd/-/issues/1655</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_2 _EReadonly_1"><a href="https://gitlab.freedesktop.org/drm/amd/-/issues/1403" id="LPNoLPOWALinkPreview_3">https://gitlab.freedesktop.org/drm/amd/-/issues/1403</a></div>
<br>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_3 _EReadonly_1"></div>
<br>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview_1 _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Rodrigo Siqueira <Rodrigo.Siqueira@amd.com><br>
<b>Sent:</b> Friday, December 17, 2021 4:23 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Wang, Chao-kai (Stylon) <Stylon.Wang@amd.com>; Cyr, Aric <Aric.Cyr@amd.com>; Li, Sun peng (Leo) <Sunpeng.Li@amd.com>; Wentland, Harry <Harry.Wentland@amd.com>; Zhuo, Qingqing (Lillian) <Qingqing.Zhuo@amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>;
 Li, Roman <Roman.Li@amd.com>; Chiu, Solomon <Solomon.Chiu@amd.com>; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Wang, Angus <Angus.Wang@amd.com>; Lin, Wayne <Wayne.Lin@amd.com>; Lipski, Mikita <Mikita.Lipski@amd.com>; Lakha, Bhawanpreet <Bhawanpreet.Lakha@amd.com>;
 Gutierrez, Agustin <Agustin.Gutierrez@amd.com>; Kotarac, Pavle <Pavle.Kotarac@amd.com><br>
<b>Subject:</b> [PATCH 10/19] drm/amd/display: Changed pipe split policy to allow for multi-display pipe split</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">From: Angus Wang <angus.wang@amd.com><br>
<br>
[WHY]<br>
Current implementation of pipe split policy prevents pipe split with<br>
multiple displays connected, which caused the MCLK speed to be stuck at<br>
max<br>
<br>
[HOW]<br>
Changed the pipe split policies so that pipe split is allowed for<br>
multi-display configurations<br>
<br>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com><br>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com><br>
Signed-off-by: Angus Wang <angus.wang@amd.com><br>
---<br>
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c   | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c   | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c   | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 +-<br>
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c   | 2 +-<br>
 8 files changed, 8 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
index 2a72517e2b28..2bc93df023ad 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c<br>
@@ -1069,7 +1069,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
                 .timing_trace = false,<br>
                 .clock_trace = true,<br>
                 .disable_pplib_clock_request = true,<br>
-               .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,<br>
+               .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
                 .force_single_disp_pipe_split = false,<br>
                 .disable_dcc = DCC_ENABLE,<br>
                 .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c<br>
index d6acf9a8590a..0bb7d3dd53fa 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_resource.c<br>
@@ -603,7 +603,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
                 .timing_trace = false,<br>
                 .clock_trace = true,<br>
                 .disable_pplib_clock_request = true,<br>
-               .pipe_split_policy = MPC_SPLIT_AVOID,<br>
+               .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
                 .force_single_disp_pipe_split = false,<br>
                 .disable_dcc = DCC_ENABLE,<br>
                 .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c<br>
index ca1bbc942fd4..e5cc6bf45743 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c<br>
@@ -873,7 +873,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
                 .clock_trace = true,<br>
                 .disable_pplib_clock_request = true,<br>
                 .min_disp_clk_khz = 100000,<br>
-               .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,<br>
+               .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
                 .force_single_disp_pipe_split = false,<br>
                 .disable_dcc = DCC_ENABLE,<br>
                 .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
index 369ceeeddc7e..e12660c609ee 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c<br>
@@ -840,7 +840,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
         .timing_trace = false,<br>
         .clock_trace = true,<br>
         .disable_pplib_clock_request = true,<br>
-       .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,<br>
+       .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
         .force_single_disp_pipe_split = false,<br>
         .disable_dcc = DCC_ENABLE,<br>
         .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
index b4001233867c..c1c6e602b06c 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c<br>
@@ -686,7 +686,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
         .disable_clock_gate = true,<br>
         .disable_pplib_clock_request = true,<br>
         .disable_pplib_wm_range = true,<br>
-       .pipe_split_policy = MPC_SPLIT_AVOID,<br>
+       .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
         .force_single_disp_pipe_split = false,<br>
         .disable_dcc = DCC_ENABLE,<br>
         .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
index 003e95368672..2e9cbfa7663b 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn302/dcn302_resource.c<br>
@@ -211,7 +211,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
                 .timing_trace = false,<br>
                 .clock_trace = true,<br>
                 .disable_pplib_clock_request = true,<br>
-               .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,<br>
+               .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
                 .force_single_disp_pipe_split = false,<br>
                 .disable_dcc = DCC_ENABLE,<br>
                 .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
index 01ba9d656c72..2de687f64cf6 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c<br>
@@ -193,7 +193,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
                 .timing_trace = false,<br>
                 .clock_trace = true,<br>
                 .disable_pplib_clock_request = true,<br>
-               .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,<br>
+               .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
                 .force_single_disp_pipe_split = false,<br>
                 .disable_dcc = DCC_ENABLE,<br>
                 .vsr_support = true,<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c<br>
index 6d07dcecc953..7c64317a56f7 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c<br>
@@ -1003,7 +1003,7 @@ static const struct dc_debug_options debug_defaults_drv = {<br>
         .timing_trace = false,<br>
         .clock_trace = true,<br>
         .disable_pplib_clock_request = false,<br>
-       .pipe_split_policy = MPC_SPLIT_AVOID,<br>
+       .pipe_split_policy = MPC_SPLIT_DYNAMIC,<br>
         .force_single_disp_pipe_split = false,<br>
         .disable_dcc = DCC_ENABLE,<br>
         .vsr_support = true,<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>