Skip to contentSkip to conversation

drm/amd/display: Enable ODM combine default policy

PATCH In review Aurabindo Pillai 2 participants 2 messages Jul 7, 2022

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

PATCH 1/1 drm/amd/display: Enable ODM combine default policy

[Why&How]
Output Data Mapping is a power saving feature that allows us to run at reduced DPP and DISP clocks compared to what could be achieved with a single pipe.

Set the default policy for single display use case to use 2 to 1 ODM combine. The options are queried by DC and appropriate register programming sequence is initiated to enable this feature.

Fixes e40fcd4afb3fc ("drm/amd/display: add DCN32/321 specific files for Display Core")
---
 drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c   | 4 +++-
 drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +3 -1
index 86d1a0785a31..b166ab187264 100644
@@ -997,7 +997,9 @@ static const struct dc_debug_options debug_defaults_drv = {
 		}
 	},
 	.use_max_lb = true,
-	.force_disable_subvp = true
+	.force_disable_subvp = true,
+	.enable_single_display_2to1_odm_policy = true,
+	.enable_dp_dig_pixel_rate_div_policy = 1,
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c +3 -1
index f8c9aceb2e85..f0eff4c94616 100644
@@ -994,7 +994,9 @@ static const struct dc_debug_options debug_defaults_drv = {
 		}
 	},
 	.use_max_lb = true,
-	.force_disable_subvp = true
+	.force_disable_subvp = true,
+	.enable_single_display_2to1_odm_policy = true,
+	.enable_dp_dig_pixel_rate_div_policy = 1,
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
Signature · 1 line
2.37.0
Acked-by on v1 1/1
#1 lore raw
Quoted 50 lines · Aurabindo Pillai

[Why&How]
Output Data Mapping is a power saving feature that allows us to run at reduced DPP and DISP clocks compared to what could be achieved with a single pipe.

Set the default policy for single display use case to use 2 to 1 ODM combine. The options are queried by DC and appropriate register programming sequence is initiated to enable this feature.

Fixes e40fcd4afb3fc ("drm/amd/display: add DCN32/321 specific files for Display Core")
---
 drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c   | 4 +++-
 drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +3 -1
index 86d1a0785a31..b166ab187264 100644
@@ -997,7 +997,9 @@ static const struct dc_debug_options debug_defaults_drv = {
                }
        },
        .use_max_lb = true,
-       .force_disable_subvp = true
+       .force_disable_subvp = true,
+       .enable_single_display_2to1_odm_policy = true,
+       .enable_dp_dig_pixel_rate_div_policy = 1,
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c +3 -2
index f8c9aceb2e85..f0eff4c94616 100644
@@ -994,7 +994,9 @@ static const struct dc_debug_options debug_defaults_drv = {
                }
        },
        .use_max_lb = true,
-       .force_disable_subvp = true
+       .force_disable_subvp = true,
+       .enable_single_display_2to1_odm_policy = true,
+       .enable_dp_dig_pixel_rate_div_policy = 1,
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
--

2.37.0