summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/include
diff options
context:
space:
mode:
authorTony Cheng <tony.cheng@amd.com>2017-07-25 22:52:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:15:45 -0400
commit2248eb6b4f1fdd7aded987d178a95b021d3a1d91 (patch)
tree48ae241fd297686e648f6c53ad90d1f55725f998 /drivers/gpu/drm/amd/display/include
parentd1f69890658909fad1b3881e618a841fc3bd3d96 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/include')
-rw-r--r--drivers/gpu/drm/amd/display/include/logger_interface.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/display/include/logger_interface.h b/drivers/gpu/drm/amd/display/include/logger_interface.h
index 3adf3cfc7aba..0a872472ecba 100644
--- a/drivers/gpu/drm/amd/display/include/logger_interface.h
+++ b/drivers/gpu/drm/amd/display/include/logger_interface.h
@@ -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__ */