]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: try to train DP even harder
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 29 Jun 2012 19:03:34 +0000 (16:03 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Jul 2012 10:21:39 +0000 (12:21 +0200)
commitce85d0448c072e9c79857bf21e96c6494779bb47
treeff6ab40abe5f3c033adda03ef54cec9bb9a1b090
parenta6781f09544e15d53dc745551b517cd9dd5f4876
drm/i915: try to train DP even harder

While debugging Haswell link train failures I observed that we never
try the maximum voltage configuration more than once consecutively. We
start the training, the monitor keeps telling us to increase the
voltage, then when we reach the maximum we just go back to the start
(because of the "memset" above "voltage_tries = 0"). When we reach
this point, we keep alternating between the maximum and the minimum
voltages until we give up.

The DP spec suggests that we should try the same voltage 5 times
before giving up. This patch makes us try the maximum voltage at
least 5 times before going back to the minimum voltages.

This patch does not fix any particular bug I'm aware of.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c