Skip to content

Commit e619ac4

Browse files
Oleh Kuzhylnyialexdeucher
authored andcommitted
drm/amd/display: Add total_num_dpps_required field to informative structure
[Why] The informative structure needs to be extended by the total number of DPPs required per each active plane. The new informative field is going to be used as a statistical indicator. [How] The dml2_core_calcs_get_informative() routine must count a total number of DPPs. Reviewed-by: Austin Zheng <[email protected]> Signed-off-by: Oleh Kuzhylnyi <[email protected]> Signed-off-by: Roman Li <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent de84d58 commit e619ac4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml2/dml21/inc/dml_top_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ struct dml2_display_cfg_programming {
453453
unsigned int meta_row_height_plane1;
454454
} plane_info[DML2_MAX_PLANES];
455455

456+
struct {
457+
unsigned int total_num_dpps_required;
458+
} dpp;
459+
456460
struct {
457461
unsigned long long total_surface_size_in_mall_bytes;
458462
unsigned int subviewport_lines_needed_in_mall[DML2_MAX_PLANES];

drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13147,8 +13147,11 @@ void dml2_core_calcs_get_informative(const struct dml2_core_internal_display_mod
1314713147
out->informative.watermarks.temp_read_or_ppt_watermark_us = dml_get_wm_temp_read_or_ppt(mode_lib);
1314813148

1314913149
out->informative.mall.total_surface_size_in_mall_bytes = 0;
13150-
for (k = 0; k < out->display_config.num_planes; ++k)
13150+
out->informative.dpp.total_num_dpps_required = 0;
13151+
for (k = 0; k < out->display_config.num_planes; ++k) {
1315113152
out->informative.mall.total_surface_size_in_mall_bytes += mode_lib->mp.SurfaceSizeInTheMALL[k];
13153+
out->informative.dpp.total_num_dpps_required += mode_lib->mp.NoOfDPP[k];
13154+
}
1315213155

1315313156
out->informative.qos.min_return_latency_in_dcfclk = mode_lib->mp.min_return_latency_in_dcfclk;
1315413157
out->informative.qos.urgent_latency_us = dml_get_urgent_latency(mode_lib);

0 commit comments

Comments
 (0)