diff options
author | Zeyu Fan <Zeyu.Fan@amd.com> | 2017-06-05 17:56:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:07:52 -0400 |
commit | a235bd9f1ea0c610a5cddfb79f98b651dc8dc5bd (patch) | |
tree | 3789f29b2fe92830113da67c1cc852f336281eeb /drivers/gpu/drm | |
parent | 909e8c9e417945f313b68ed6c5a559fe5266be8b (diff) |
drm/amd/display: Add function to log connectivity
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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')
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/basics/log_helpers.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dm_helpers.h | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index 01d04fa2419e..64db62e609eb 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | |||
@@ -322,6 +322,12 @@ bool dm_helpers_dp_mst_send_payload_allocation( | |||
322 | return true; | 322 | return true; |
323 | } | 323 | } |
324 | 324 | ||
325 | bool dm_helpers_dc_conn_log(struct dc_context*ctx, const char *msg) | ||
326 | { | ||
327 | return true; | ||
328 | } | ||
329 | |||
330 | |||
325 | bool dm_helpers_dp_mst_start_top_mgr( | 331 | bool dm_helpers_dp_mst_start_top_mgr( |
326 | struct dc_context *ctx, | 332 | struct dc_context *ctx, |
327 | const struct dc_link *link, | 333 | const struct dc_link *link, |
diff --git a/drivers/gpu/drm/amd/display/dc/basics/log_helpers.c b/drivers/gpu/drm/amd/display/dc/basics/log_helpers.c index c4eddee8de1b..1268be9ebaf3 100644 --- a/drivers/gpu/drm/amd/display/dc/basics/log_helpers.c +++ b/drivers/gpu/drm/amd/display/dc/basics/log_helpers.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "core_types.h" | 26 | #include "core_types.h" |
27 | #include "logger.h" | 27 | #include "logger.h" |
28 | #include "include/logger_interface.h" | 28 | #include "include/logger_interface.h" |
29 | #include "dm_helpers.h" | ||
29 | 30 | ||
30 | #define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0])) | 31 | #define NUM_ELEMENTS(a) (sizeof(a) / sizeof((a)[0])) |
31 | 32 | ||
@@ -94,6 +95,8 @@ void dc_conn_log(struct dc_context *ctx, | |||
94 | dm_logger_append(&entry, "%2.2X ", hex_data[i]); | 95 | dm_logger_append(&entry, "%2.2X ", hex_data[i]); |
95 | 96 | ||
96 | dm_logger_append(&entry, "^\n"); | 97 | dm_logger_append(&entry, "^\n"); |
98 | dm_helpers_dc_conn_log(ctx, entry.buf); | ||
97 | dm_logger_close(&entry); | 99 | dm_logger_close(&entry); |
100 | |||
98 | va_end(args); | 101 | va_end(args); |
99 | } | 102 | } |
diff --git a/drivers/gpu/drm/amd/display/dc/dm_helpers.h b/drivers/gpu/drm/amd/display/dc/dm_helpers.h index c15a25ce8049..9fb606c49217 100644 --- a/drivers/gpu/drm/amd/display/dc/dm_helpers.h +++ b/drivers/gpu/drm/amd/display/dc/dm_helpers.h | |||
@@ -68,6 +68,10 @@ bool dm_helpers_dp_mst_start_top_mgr( | |||
68 | const struct dc_link *link, | 68 | const struct dc_link *link, |
69 | bool boot); | 69 | bool boot); |
70 | 70 | ||
71 | bool dm_helpers_dc_conn_log( | ||
72 | struct dc_context*ctx, | ||
73 | const char *msg); | ||
74 | |||
71 | void dm_helpers_dp_mst_stop_top_mgr( | 75 | void dm_helpers_dp_mst_stop_top_mgr( |
72 | struct dc_context *ctx, | 76 | struct dc_context *ctx, |
73 | const struct dc_link *link); | 77 | const struct dc_link *link); |