intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse()
@ 2018-09-18  7:20 Dhinakaran Pandiyan
  2018-09-18  7:20 ` [PATCH 2/5] drm/i915/dp: Restrict link retrain workaround to external monitors Dhinakaran Pandiyan
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Dhinakaran Pandiyan @ 2018-09-18  7:20 UTC (permalink / raw)
  To: intel-gfx; +Cc: Jan-Marek Glogowski, Dhinakaran Pandiyan, Rodrigo Vivi

Comment claims link needs to be retrained because the connected sink raised
a long pulse to indicate link loss. If the sink did so,
intel_dp_hotplug() would have handled link retraining. Looking at the
logs in Bugzilla referenced in commit '3cf71bc9904d ("drm/i915: Re-apply
Perform link quality check, unconditionally during long pulse"")', the
issue is that the sink does not trigger an interrupt. We want the
->detect() from user space to check link status and retrain. Ville's
review for the original patch also indicates the same root cause.

I have also renamed long_pulse() to full_detect().
v2: Patch split and rewrote comment..

Cc: Lyude Paul <lyude@redhat.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jan-Marek Glogowski <glogow@fbihome.de>
References: 3cf71bc9904d ("drm/i915: Re-apply "Perform link quality check, unconditionally during long pulse"")
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 436c22de33b6..cac1c7c6cbfd 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -5074,16 +5074,8 @@ intel_dp_long_pulse(struct intel_connector *connector,
 		goto out;
 	} else {
 		/*
-		 * If display is now connected check links status,
-		 * there has been known issues of link loss triggering
-		 * long pulse.
-		 *
-		 * Some sinks (eg. ASUS PB287Q) seem to perform some
-		 * weird HPD ping pong during modesets. So we can apparently
-		 * end up with HPD going low during a modeset, and then
-		 * going back up soon after. And once that happens we must
-		 * retrain the link to get a picture. That's in case no
-		 * userspace component reacted to intermittent HPD dip.
+		 * Some monitors do not signal loss of link synchronization
+		 * with an IRQ_HPD, so force a link status check.
 		 */
 		struct intel_encoder *encoder = &dp_to_dig_port(intel_dp)->base;
 
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-09-22 23:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-18  7:20 [PATCH 1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse() Dhinakaran Pandiyan
2018-09-18  7:20 ` [PATCH 2/5] drm/i915/dp: Restrict link retrain workaround to external monitors Dhinakaran Pandiyan
2018-09-18 15:33   ` Lyude Paul
2018-09-18 15:50     ` Rodrigo Vivi
2018-09-19 17:58       ` Pandiyan, Dhinakaran
2018-09-19 18:28         ` Lyude Paul
2018-09-18  7:20 ` [PATCH 3/5] drm/i915/dp: Remove intel_dp->detect_done flag Dhinakaran Pandiyan
2018-09-19 17:28   ` Ville Syrjälä
2018-09-19 17:43     ` Pandiyan, Dhinakaran
2018-09-18  7:20 ` [PATCH 4/5] drm/i915/dp: Fix duplication of DEVICE_SERVICE_IRQ handling Dhinakaran Pandiyan
2018-09-18  7:20 ` [PATCH 5/5] drm/i915/dp: Move hdcp link check function into short pulse handler Dhinakaran Pandiyan
2018-09-19 17:30   ` Ville Syrjälä
2018-09-19 17:49     ` Pandiyan, Dhinakaran
2018-09-19 18:05       ` Ville Syrjälä
2018-09-21 19:06         ` Dhinakaran Pandiyan
2018-09-22 23:08         ` Pandiyan, Dhinakaran
2018-09-18  7:39 ` ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915/dp: Fix link retraining comment in intel_dp_long_pulse() Patchwork
2018-09-18  7:55 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-09-18 15:51 ` [PATCH 1/5] " Rodrigo Vivi
2018-09-18 19:03   ` Pandiyan, Dhinakaran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).