Commit dce46c53 authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: performance profiling instrumentation

Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Reviewed-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a9beb6c7
...@@ -41,6 +41,10 @@ unsigned long long dm_get_timestamp(struct dc_context *ctx) ...@@ -41,6 +41,10 @@ unsigned long long dm_get_timestamp(struct dc_context *ctx)
return 0; return 0;
} }
void dm_perf_trace_timestamp(const char *func_name, unsigned int line)
{
}
bool dm_write_persistent_data(struct dc_context *ctx, bool dm_write_persistent_data(struct dc_context *ctx,
const struct dc_sink *sink, const struct dc_sink *sink,
const char *module_name, const char *module_name,
......
...@@ -1047,6 +1047,8 @@ dcn10_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf, ...@@ -1047,6 +1047,8 @@ dcn10_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf,
if (output_tf == NULL || regamma_params == NULL || output_tf->type == TF_TYPE_BYPASS) if (output_tf == NULL || regamma_params == NULL || output_tf->type == TF_TYPE_BYPASS)
return false; return false;
PERF_TRACE();
arr_points = regamma_params->arr_points; arr_points = regamma_params->arr_points;
rgb_resulted = regamma_params->rgb_resulted; rgb_resulted = regamma_params->rgb_resulted;
hw_points = 0; hw_points = 0;
...@@ -1189,6 +1191,8 @@ dcn10_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf, ...@@ -1189,6 +1191,8 @@ dcn10_translate_regamma_to_hw_format(const struct dc_transfer_func *output_tf,
convert_to_custom_float(rgb_resulted, arr_points, hw_points); convert_to_custom_float(rgb_resulted, arr_points, hw_points);
PERF_TRACE();
return true; return true;
} }
......
...@@ -372,6 +372,13 @@ bool dm_dmcu_set_pipe(struct dc_context *ctx, unsigned int controller_id); ...@@ -372,6 +372,13 @@ bool dm_dmcu_set_pipe(struct dc_context *ctx, unsigned int controller_id);
unsigned long long dm_get_timestamp(struct dc_context *ctx); unsigned long long dm_get_timestamp(struct dc_context *ctx);
/*
* performance tracing
*/
void dm_perf_trace_timestamp(const char *func_name, unsigned int line);
#define PERF_TRACE() dm_perf_trace_timestamp(__func__, __LINE__)
/* /*
* Debug and verification hooks * Debug and verification hooks
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment