]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/gpu/drm/amd/display/include/logger_interface.h
drm/amd/display: Rename more dc_surface stuff to plane_state
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / amd / display / include / logger_interface.h
index 08a6911d3a3aceb0c99c8402b9a1fc7b4b3f8d9f..beb790937769c1e6241fd121e8594d7297848510 100644 (file)
@@ -32,6 +32,7 @@ struct dc_context;
 struct dc_link;
 struct dc_surface_update;
 struct resource_context;
+struct validate_context;
 
 /*
  *
@@ -76,7 +77,7 @@ void logger_write(struct dal_logger *logger,
 
 void pre_surface_trace(
                const struct dc *dc,
-               const struct dc_surface *const *surfaces,
+               const struct dc_plane_state *const *plane_states,
                int surface_count);
 
 void update_surface_trace(
@@ -90,6 +91,9 @@ void context_timing_trace(
                const struct dc *dc,
                struct resource_context *res_ctx);
 
+void context_clock_trace(
+               const struct dc *dc,
+               struct validate_context *context);
 
 /* Any function which is empty or have incomplete implementation should be
  * marked by this macro.
@@ -112,12 +116,11 @@ void context_timing_trace(
 
 #define DC_ERROR(...) \
        dm_logger_write(dc_ctx->logger, LOG_ERROR, \
-               __VA_ARGS__);
+               __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.....
@@ -127,19 +130,31 @@ void context_timing_trace(
  */
 
 #define CONN_DATA_DETECT(link, hex_data, hex_len, ...) \
-               dc_conn_log(link->ctx, &link->public, hex_data, hex_len, \
+               dc_conn_log(link->ctx, link, hex_data, hex_len, \
                                LOG_EVENT_DETECTION, ##__VA_ARGS__)
 
 #define CONN_DATA_LINK_LOSS(link, hex_data, hex_len, ...) \
-               dc_conn_log(link->ctx, &link->public, hex_data, hex_len, \
+               dc_conn_log(link->ctx, link, hex_data, hex_len, \
                                LOG_EVENT_LINK_LOSS, ##__VA_ARGS__)
 
 #define CONN_MSG_LT(link, ...) \
-               dc_conn_log(link->ctx, &link->public, NULL, 0, \
+               dc_conn_log(link->ctx, link, NULL, 0, \
                                LOG_EVENT_LINK_TRAINING, ##__VA_ARGS__)
 
 #define CONN_MSG_MODE(link, ...) \
-               dc_conn_log(link->ctx, &link->public, NULL, 0, \
+               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__ */