aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorJun Lei <Jun.Lei@amd.com>2018-06-22 16:51:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-16 17:11:50 -0400
commitd6e75df4e5e10362a140c5c6ce8ced3612296ae3 (patch)
tree23083f4dda646a4b667eea2c602f44900dfec78e /drivers/gpu/drm
parent68199bd16cb56d121ade83918d5858933d07ae8a (diff)
drm/amd/display: add new dc debug structure to track debug data
[why] Some DTN tests still failing @ 2% Need to reduce. [how] add instrumentation code to driver so we can get more information from failed runs. Signed-off-by: Jun Lei <Jun.Lei@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Leo Li <sunpeng.li@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/dc/core/dc_link_dp.c3
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h5
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index 54e396452345..701a882505e9 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -1028,6 +1028,9 @@ enum link_training_result dc_link_dp_perform_link_training(
1028 lt_settings.lane_settings[0].VOLTAGE_SWING, 1028 lt_settings.lane_settings[0].VOLTAGE_SWING,
1029 lt_settings.lane_settings[0].PRE_EMPHASIS); 1029 lt_settings.lane_settings[0].PRE_EMPHASIS);
1030 1030
1031 if (status != LINK_TRAINING_SUCCESS)
1032 link->ctx->dc->debug.debug_data.ltFailCount++;
1033
1031 return status; 1034 return status;
1032} 1035}
1033 1036
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index 85f5ddded418..f74ad8e3fd4e 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -259,6 +259,11 @@ struct dc_debug {
259 bool scl_reset_length10; 259 bool scl_reset_length10;
260 bool hdmi20_disable; 260 bool hdmi20_disable;
261 261
262 struct {
263 uint32_t ltFailCount;
264 uint32_t i2cErrorCount;
265 uint32_t auxErrorCount;
266 } debug_data;
262}; 267};
263struct dc_state; 268struct dc_state;
264struct resource_pool; 269struct resource_pool;