Skip to contentSkip to conversation

VPG [BDW] drm/i915/bdw: DP aux channel control timeout change

PATCH In review kirankumar 2 participants 2 messages Nov 26, 2013

Subsystems (2)
lore
Share & tools
lore

kirankumar

author
#0 lore raw

PATCH 1/1 VPG [BDW] drm/i915/bdw: DP aux channel control timeout change

changing DP AUX control timeout to 600 instead of 400 for BDW.

Change-Id Id507ef35490e12bbd896492c9da24d0db367bf1a
---
 drivers/gpu/drm/i915/intel_dp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_dp.c +1 -1
index ae2a057..953a3f6 100644
@@ -351,7 +351,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
 		I915_WRITE(ch_ctl,
 			   DP_AUX_CH_CTL_SEND_BUSY |
 			   (has_aux_irq ? DP_AUX_CH_CTL_INTERRUPT : 0) |
-			   DP_AUX_CH_CTL_TIME_OUT_400us |
+			   DP_AUX_CH_CTL_TIME_OUT_600us |
 			   (send_bytes << DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT) |
 			   (precharge << DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT) |
 			   (aux_clock_divider << DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT) |
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · kirankumar

changing DP AUX control timeout to 600 instead of 400 for BDW.

DP spec says 400 us, so a notch more context in the commit message would be appreciated. E.g. if this is used to work around dp aux failures, then the commit message _must_ mention this. I need this to asses in which branch to put the patch.

Also we still have occasional dp aux woes on older platforms. Do we need a similar timeout extension for those, too?

Remember people: The commit message must explain _why_ something needs to change. If you feel like you need to explain the what of your change, your code probably needs to be rewritten to be esier to understand.

Cheers, Daniel

Quoted 27 lines
Change-Id Id507ef35490e12bbd896492c9da24d0db367bf1a
---
 drivers/gpu/drm/i915/intel_dp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_dp.c +1 -1
index ae2a057..953a3f6 100644
@@ -351,7 +351,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
 		I915_WRITE(ch_ctl,
 			   DP_AUX_CH_CTL_SEND_BUSY |
 			   (has_aux_irq ? DP_AUX_CH_CTL_INTERRUPT : 0) |
-			   DP_AUX_CH_CTL_TIME_OUT_400us |
+			   DP_AUX_CH_CTL_TIME_OUT_600us |
 			   (send_bytes << DP_AUX_CH_CTL_MESSAGE_SIZE_SHIFT) |
 			   (precharge << DP_AUX_CH_CTL_PRECHARGE_2US_SHIFT) |
 			   (aux_clock_divider << DP_AUX_CH_CTL_BIT_CLOCK_2X_SHIFT) |
Signature · 6 lines
1.7.9.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch