]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Track whether the DP link is trained or not
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Jan 2018 19:21:49 +0000 (21:21 +0200)
committerLyude Paul <lyude@redhat.com>
Tue, 6 Mar 2018 22:59:08 +0000 (17:59 -0500)
commit6ba4a4a12c296a2564c719df6a6f659e2671301b
tree9f399467492e16478c866d124af10b295dd148b2
parent8e75022c58f888c433d790831000d7e1b91fa6f2
drm/i915: Track whether the DP link is trained or not

LSPCON likes to throw short HPDs during the enable seqeunce prior to the
link being trained. These obviously result in the channel CR/EQ check
failing and thus we schedule a pointless hotplug work to retrain the
link. Avoid that by ignoring the bad CR/EQ status until we've actually
initially trained the link.

I've not actually investigated to see what LSPCON is trying to signal
with the short pulse. But as long as it signals anything I think we're
supposed to check the link status anyway, so I don't really see other
good ways to solve this. I've not seen these short pulses being
generated by normal DP sinks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180117192149.17760-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_dp_link_training.c
drivers/gpu/drm/i915/intel_drv.h