public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: don't disable the DP port if the link is lost
@ 2014-01-16 16:35 Imre Deak
  2014-01-16 16:35 ` [PATCH 2/2] drm/i915: don't disable DP port after a failed link training Imre Deak
  0 siblings, 1 reply; 10+ messages in thread
From: Imre Deak @ 2014-01-16 16:35 UTC (permalink / raw)
  To: intel-gfx

Currently if the DP link is lost (either because of a hot unplug, or
failed link status check) we disable the DP port, but leave the rest
of the pipe running. This is incompatible with the modeset disabling
sequence of some platforms/configurations. At least this is the case for
DP ports on the CPU as opposed to PCH.

Atm we'll also get a warning when we do a modeset disable after the
above link lost event, since we expect the DP port to be enabled at this
point (see the bugzilla ticket for the related dmesg).

Note that with this patch we'll still end up disabling the port, thanks
to the HPD uevent and subsequent modeset disable.

See also the next patch fixing the other half of this issue.

Solution suggested by Ville.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70570
Signed-off-by: Imre Deak <imre.deak@intel.com>

	unload
---
 drivers/gpu/drm/i915/intel_dp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index e265488..0c62035 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2891,13 +2891,11 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
 
 	/* Try to read receiver status if the link appears to be up */
 	if (!intel_dp_get_link_status(intel_dp, link_status)) {
-		intel_dp_link_down(intel_dp);
 		return;
 	}
 
 	/* Now read the DPCD to see if it's actually running */
 	if (!intel_dp_get_dpcd(intel_dp)) {
-		intel_dp_link_down(intel_dp);
 		return;
 	}
 
-- 
1.8.4

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

end of thread, other threads:[~2014-01-17 17:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 16:35 [PATCH 1/2] drm/i915: don't disable the DP port if the link is lost Imre Deak
2014-01-16 16:35 ` [PATCH 2/2] drm/i915: don't disable DP port after a failed link training Imre Deak
2014-01-16 16:58   ` Chris Wilson
2014-01-16 17:01     ` Daniel Vetter
2014-01-16 20:39       ` Chris Wilson
2014-01-16 21:27         ` Daniel Vetter
2014-01-16 17:05     ` Imre Deak
2014-01-17 13:46   ` [PATCH] " Imre Deak
2014-01-17 13:58     ` Chris Wilson
2014-01-17 17:13       ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox