Revert "drm/amd/display: Only use ODM2:1 policy for high pixel rate displays"
Subsystems (3)
PATCH 1/1 Revert "drm/amd/display: Only use ODM2:1 policy for high pixel rate displays"
This reverts commit 047783cdd5f604d87398236beb4971abb4d43293 since it causes higher power consumption for single display use case (4k60).
Also, this patch introduced a 35% performance drop in a Vulkan benchmark.
* The patch disabled the ODM-combination on most popular monitors, including 4K, 2K and FHD monitors at 60Hz.
* ODM-combination can halve the DPP clock to save power, that is the reason why we introduce ODM-combination, and the PM log shows single pipe consumes more power at 4K@60Hz.
* ODM-combination has 2 de-tiled buffer involved, which provides longer self-sustained time, that benefit to the memory power optimization.
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 1 - drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h | 1 - 2 files changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +0 -1
@@ -1918,7 +1918,6 @@ int dcn32_populate_dml_pipes_from_context( context->stream_status[0 ].plane_count ==1 && !dc_is_hdmi_signal (res_ctx->pipe_ctx[i].stream->signal) &&is_h_timing_divisible_by_2 (res_ctx->pipe_ctx[i].stream) && - pipe->stream->timing.pix_clk_100hz *100 >DCN3_2_VMIN_DISPCLK_HZ && dc->debug.enable_single_display_2to1_odm_policy && !vsr_odm_support) { //excluding 2to1 ODM combine on >= 5k vsr pipes[pipe_cnt].pipe.dest.odm_combine_policy = dm_odm_combine_policy_2to1;
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h +0 -1
@@ -37,7 +37,6 @@#define DCN3_2_MBLK_WIDTH 128#define DCN3_2_MBLK_HEIGHT_4BPE 128#define DCN3_2_MBLK_HEIGHT_8BPE 64 -#define DCN3_2_VMIN_DISPCLK_HZ 717000000#define DCN3_2_DCFCLK_DS_INIT_KHZ 10000 // Choose 10Mhz for init DCFCLK DS freq#define SUBVP_HIGH_REFRESH_LIST_LEN 3#define DCN3_2_MAX_SUBVP_PIXEL_RATE_MHZ 1800
Signature · 1 line
2.40.1
Quoted 34 lines · Aurabindo Pillai
This reverts commit
047783cdd5f604d87398236beb4971abb4d43293since it causes higher power consumption for single display use case (4k60).Also, this patch introduced a 35% performance drop in a Vulkan benchmark.
* The patch disabled the ODM-combination on most popular monitors, including 4K, 2K and FHD monitors at 60Hz.
* ODM-combination can halve the DPP clock to save power, that is the reason why we introduce ODM-combination, and the PM log shows single pipe consumes more power at 4K@60Hz.
* ODM-combination has 2 de-tiled buffer involved, which provides longer self-sustained time, that benefit to the memory power optimization.
Signed-off-by Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 1 - drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h | 1 - 2 files changed, 2 deletions(-)drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +0
-1@@ -1918,7 +1918,6 @@ int dcn32_populate_dml_pipes_from_context( context->stream_status[0 ].plane_count ==1 && !dc_is_hdmi_signal (res_ctx->pipe_ctx[i].stream->signal) &&is_h_timing_divisible_by_2 (res_ctx->pipe_ctx[i].stream) && - pipe->stream->timing.pix_clk_100hz *100 >DCN3_2_VMIN_DISPCLK_HZ && dc->debug.enable_single_display_2to1_odm_policy && !vsr_odm_support) { //excluding 2to1 ODM combine on >= 5k vsr pipes[pipe_cnt].pipe.dest.odm_combine_policy = dm_odm_combine_policy_2to1;drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h +0
-0
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h line 42
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h +0
-1@@ -37,7 +37,6 @@#define DCN3_2_MBLK_WIDTH 128#define DCN3_2_MBLK_HEIGHT_4BPE 128#define DCN3_2_MBLK_HEIGHT_8BPE 64 -#define DCN3_2_VMIN_DISPCLK_HZ 717000000#define DCN3_2_DCFCLK_DS_INIT_KHZ 10000 // Choose 10Mhz for init DCFCLK DS freq#define SUBVP_HIGH_REFRESH_LIST_LEN 3#define DCN3_2_MAX_SUBVP_PIXEL_RATE_MHZ 1800