提交 1249acef 编写于 作者: B Bhawanpreet Lakha 提交者: Alex Deucher

drm/amd/display: Add debug prints for bandwidth calculations

Using the three functions we can print the dceip, vbios and data struct
for bandwidth calculations. This is useful for debugging bandwidth
calculation issues without a debugger
Signed-off-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 dfd01f29
此差异已折叠。
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "dc.h" #include "dc.h"
#include "core_types.h" #include "core_types.h"
#include "dal_asic_id.h" #include "dal_asic_id.h"
#include "calcs_logger.h"
/* /*
* NOTE: * NOTE:
...@@ -2990,6 +2991,11 @@ bool bw_calcs(struct dc_context *ctx, ...@@ -2990,6 +2991,11 @@ bool bw_calcs(struct dc_context *ctx,
struct bw_fixed mid_yclk = vbios->mid_yclk; struct bw_fixed mid_yclk = vbios->mid_yclk;
struct bw_fixed low_yclk = vbios->low_yclk; struct bw_fixed low_yclk = vbios->low_yclk;
if (ctx->dc->debug.bandwidth_calcs_trace) {
print_bw_calcs_dceip(ctx->logger, dceip);
print_bw_calcs_vbios(ctx->logger, vbios);
print_bw_calcs_data(ctx->logger, data);
}
calculate_bandwidth(dceip, vbios, data); calculate_bandwidth(dceip, vbios, data);
yclk_lvl = data->y_clk_level; yclk_lvl = data->y_clk_level;
......
...@@ -202,6 +202,7 @@ struct dc_debug { ...@@ -202,6 +202,7 @@ struct dc_debug {
bool timing_trace; bool timing_trace;
bool clock_trace; bool clock_trace;
bool validation_trace; bool validation_trace;
bool bandwidth_calcs_trace;
/* stutter efficiency related */ /* stutter efficiency related */
bool disable_stutter; bool disable_stutter;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册