drm/amd/display: log HUBP using DTN logging
also simplify DTN INFO. all we need is a way to have DC log register states some where we can compare with golden. going through connectivity is overkill. Signed-off-by: Tony Cheng <tony.cheng@amd.com> Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -70,11 +70,6 @@ void dc_conn_log(struct dc_context *ctx,
|
||||
const char *msg,
|
||||
...);
|
||||
|
||||
void dc_raw_log(struct dc_context *ctx,
|
||||
enum dc_log_type event,
|
||||
const char *msg,
|
||||
...);
|
||||
|
||||
void logger_write(struct dal_logger *logger,
|
||||
enum dc_log_type log_type,
|
||||
const char *msg,
|
||||
@@ -121,16 +116,11 @@ void context_clock_trace(
|
||||
|
||||
#define DC_ERROR(...) \
|
||||
dm_logger_write(dc_ctx->logger, LOG_ERROR, \
|
||||
__VA_ARGS__);
|
||||
|
||||
#define DTN_INFO(...) \
|
||||
dc_raw_log(dc_ctx, LOG_DTN, \
|
||||
__VA_ARGS__)
|
||||
|
||||
#define DC_SYNC_INFO(...) \
|
||||
dm_logger_write(dc_ctx->logger, LOG_SYNC, \
|
||||
__VA_ARGS__);
|
||||
|
||||
__VA_ARGS__)
|
||||
|
||||
/* Connectivity log format:
|
||||
* [time stamp] [drm] [Major_minor] [connector name] message.....
|
||||
@@ -155,4 +145,16 @@ void context_clock_trace(
|
||||
dc_conn_log(link->ctx, link, NULL, 0, \
|
||||
LOG_EVENT_MODE_SET, ##__VA_ARGS__)
|
||||
|
||||
/*
|
||||
* Display Test Next logging
|
||||
*/
|
||||
#define DTN_INFO_BEGIN() \
|
||||
dm_dtn_log_begin(dc_ctx)
|
||||
|
||||
#define DTN_INFO(msg, ...) \
|
||||
dm_dtn_log_append_v(dc_ctx, msg, ##__VA_ARGS__)
|
||||
|
||||
#define DTN_INFO_END() \
|
||||
dm_dtn_log_end(dc_ctx)
|
||||
|
||||
#endif /* __DAL_LOGGER_INTERFACE_H__ */
|
||||
|
مرجع در شماره جدید
Block a user