]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/i915: fix hsw_fdi_link_train "retry" code
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 29 Nov 2012 13:29:31 +0000 (11:29 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 8 Dec 2012 12:59:09 +0000 (13:59 +0100)
commit248138b59880a3cc69e9b7f0e06fb0caedd58305
tree63693f6411677ec63ac33e9aea5cfd30578184cc
parente7d841ca03b7ab668620045cd7b428eda9f41601
drm/i915: fix hsw_fdi_link_train "retry" code

We were previously doing exactly what the "mode set sequence for CRT"
document mandates, but whenever we failed to train the link in the
first tentative, all the other subsequent retries always failed. In
one of my monitors that has 47 modes, I was usually getting around 3
failures when running "testdisplay -a".

After this patch, even if we fail in the first tentative, we can
succeed in the next ones. So now when running "testdisplay -a" I see
around 3 times the message "FDI link training done on step 1" and no
failures.

Notice that now the "retry" code looks a lot like the DP retry code.

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