drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/10 drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs
These counters are used for Displayort complinace testing to detect error conditions when executing certain compliance tests. Currently these are used in the EDID tests to determine if the video mode needs to be set to the preferred mode or the failsafe mode.
--- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+)
drivers/gpu/drm/drm_dp_helper.c +2 -0
@@ -654,10 +654,12 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)case DP_AUX_I2C_REPLY_NACK :DRM_DEBUG_KMS ("I2C nack\n" ); + aux->i2c_nack_count++;return -EREMOTEIO ;case DP_AUX_I2C_REPLY_DEFER :DRM_DEBUG_KMS ("I2C defer\n" ); + aux->i2c_defer_count++;usleep_range (400 ,500 );continue ;
include/drm/drm_dp_helper.h +1 -0
@@ -551,6 +551,7 @@ struct drm_dp_aux {struct mutex hw_mutex;ssize_t (*transfer)(struct drm_dp_aux *aux,struct drm_dp_aux_msg *msg); +uint8_t i2c_nack_count, i2c_defer_count; }; ssize_t drm_dp_dpcd_read(struct drm_dp_aux *aux, unsigned int offset,
Signature · 1 line
1.9.1
Sorry for the spam - Ignore the duplicates. There will be one more coming when I post this series to intel-gfx.
-T
-----Original Message-----
From: Todd Previte [mailto:[email protected]]
Sent: Thursday, October 09, 2014 8:33 AM
To: [email protected]
Cc: [email protected]
Subject: [PATCH 02/10] drm/i915: Add counters in the drm_dp_aux struct for I2C NACKs and DEFERs
These counters are used for Displayort complinace testing to detect error conditions when executing certain compliance tests. Currently these are used in the EDID tests to determine if the video mode needs to be set to the preferred mode or the failsafe mode.
--- drivers/gpu/drm/drm_dp_helper.c | 2 ++ include/drm/drm_dp_helper.h | 1 + 2 files changed, 3 insertions(+)
(quoted diff) +0 -0
b/drivers/gpu/drm/drm_dp_helper.c index 08e33b8..8353051 100644
drivers/gpu/drm/drm_dp_helper.c +0 -0
@@ -654,10 +654,12 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux,
struct drm_dp_aux_msg *msg)
case DP_AUX_I2C_REPLY_NACK:
DRM_DEBUG_KMS("I2C nack\n");
+ aux->i2c_nack_count++;
return -EREMOTEIO;
case DP_AUX_I2C_REPLY_DEFER:
DRM_DEBUG_KMS("I2C defer\n");
+ aux->i2c_defer_count++;
usleep_range(400, 500); continue;
include/drm/drm_dp_helper.h index renamed from include/drm/drm_dp_helper.h +0 -0
8edeed0..45f3ee8 100644
include/drm/drm_dp_helper.h +1 -0
@@ -551,6 +551,7 @@ struct drm_dp_aux {struct mutex hw_mutex;ssize_t (*transfer)(struct drm_dp_aux *aux,struct drm_dp_aux_msg *msg); +uint8_t i2c_nack_count, i2c_defer_count; }; ssize_t drm_dp_dpcd_read(struct drm_dp_aux *aux, unsigned int offset,
--
1.9.1