aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dm_services.h
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/dc/dm_services.h
parentdrm/amd/display: Add interfaces for new CM blocks (diff)
downloadlinux-dev-2248eb6b4f1fdd7aded987d178a95b021d3a1d91.tar.xz
linux-dev-2248eb6b4f1fdd7aded987d178a95b021d3a1d91.zip
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/dc/dm_services.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dm_services.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h
index ea494a71a80b..e9bf4c417cc7 100644
--- a/drivers/gpu/drm/amd/display/dc/dm_services.h
+++ b/drivers/gpu/drm/amd/display/dc/dm_services.h
@@ -463,4 +463,16 @@ bool dm_dmcu_set_pipe(struct dc_context *ctx, unsigned int controller_id);
#define dm_log_to_buffer(buffer, size, fmt, args)\
vsnprintf(buffer, size, fmt, args)
+/*
+ * Debug and verification hooks
+ */
+bool dm_helpers_dc_conn_log(
+ struct dc_context *ctx,
+ struct log_entry *entry,
+ enum dc_log_type event);
+
+void dm_dtn_log_begin(struct dc_context *ctx);
+void dm_dtn_log_append_v(struct dc_context *ctx, const char *msg, ...);
+void dm_dtn_log_end(struct dc_context *ctx);
+
#endif /* __DM_SERVICES_H__ */