Skip to contentSkip to conversation

drm/amd/display: Set MPC_SPLIT_DYNAMIC for DCN301

PATCH In review Rodrigo Siqueira 3 participants 3 messages Mar 9, 2023 – Mar 11, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: Set MPC_SPLIT_DYNAMIC for DCN301

Since DC version 3.2.226, DC started to use a new internal commit sequence that better deals with hardware limitations. Usually, DC adopts split pipe dynamics to improve the display bandwidth and, in some cases, to save power. This commit sets MPC_SPLIT_DYNAMIC for DCN301, improving the bandwidth and fixing the cursor bug on KDE when it tries hardware rotation.

---
 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c +1 -1
index b93b4498dba4..5ac2a272c380 100644
@@ -687,7 +687,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 	.disable_clock_gate = true,
 	.disable_pplib_clock_request = true,
 	.disable_pplib_wm_range = true,
-	.pipe_split_policy = MPC_SPLIT_AVOID,
+	.pipe_split_policy = MPC_SPLIT_DYNAMIC,
 	.force_single_disp_pipe_split = false,
 	.disable_dcc = DCC_ENABLE,
 	.vsr_support = true,
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Rodrigo Siqueira

Since DC version 3.2.226, DC started to use a new internal commit sequence that better deals with hardware limitations. Usually, DC adopts split pipe dynamics to improve the display bandwidth and, in some cases, to save power. This commit sets MPC_SPLIT_DYNAMIC for DCN301, improving the bandwidth and fixing the cursor bug on KDE when it tries hardware rotation.

Quoted 17 lines
---
  drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c +1 -1
index b93b4498dba4..5ac2a272c380 100644
@@ -687,7 +687,7 @@ static const struct dc_debug_options debug_defaults_drv = {
  	.disable_clock_gate = true,
  	.disable_pplib_clock_request = true,
  	.disable_pplib_wm_range = true,
-	.pipe_split_policy = MPC_SPLIT_AVOID,
+	.pipe_split_policy = MPC_SPLIT_DYNAMIC,
  	.force_single_disp_pipe_split = false,
  	.disable_dcc = DCC_ENABLE,
  	.vsr_support = true,
Signature · 1 line
Hamza
Reviewed-by on v1 1/1
#2 lore raw
In reply to Rodrigo Siqueira
Quoted 6 lines · Rodrigo Siqueira

Since DC version 3.2.226, DC started to use a new internal commit sequence that better deals with hardware limitations. Usually, DC adopts split pipe dynamics to improve the display bandwidth and, in some cases, to save power. This commit sets MPC_SPLIT_DYNAMIC for DCN301, improving the bandwidth and fixing the cursor bug on KDE when it tries hardware rotation.

Hi Siqueira,

Thanks for the work on allowing this pipe split policy change. I've tested SteamDeck system behavior with this change and overall LGTM.

From my previous tests on HW rotation, I don't see glitches when splitting pipe, the issue only appears on one-pipe setup, but Xaver is the best person to validate this on KDE environment.

Thanks,

Quoted 25 lines
---
 drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c +1 -1
index b93b4498dba4..5ac2a272c380 100644
@@ -687,7 +687,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 	.disable_clock_gate = true,
 	.disable_pplib_clock_request = true,
 	.disable_pplib_wm_range = true,
-	.pipe_split_policy = MPC_SPLIT_AVOID,
+	.pipe_split_policy = MPC_SPLIT_DYNAMIC,
 	.force_single_disp_pipe_split = false,
 	.disable_dcc = DCC_ENABLE,
 	.vsr_support = true,
Signature · 1 line
2.39.2