All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Clear the VBT defaults for unused ports
@ 2017-03-03 13:01 Manasi Navare
  2017-03-03 14:48 ` ✗ Fi.CI.BAT: warning for " Patchwork
  2017-03-03 15:09 ` [PATCH] " Ville Syrjälä
  0 siblings, 2 replies; 5+ messages in thread
From: Manasi Navare @ 2017-03-03 13:01 UTC (permalink / raw)
  To: intel-gfx

If during VBT parsing we find that the port is unused,
the driver code just bails out without clearing the
defaults for that port. This can cause failures down
the path through link training for unused Port.
This patch fixes this issue by clearing the defaults
before bailing out from the VBT parsing function.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
 drivers/gpu/drm/i915/intel_bios.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
index e144f03..3ac3d24 100644
--- a/drivers/gpu/drm/i915/intel_bios.c
+++ b/drivers/gpu/drm/i915/intel_bios.c
@@ -1148,9 +1148,15 @@ static void parse_ddi_port(struct drm_i915_private *dev_priv, enum port port,
 			}
 		}
 	}
-	if (!child)
-		return;
+	if (!child) {
+		/* Clear the DDI VBT Port info values */
+		info->supports_dvi = 0;
+		info->supports_hdmi = 0;
+		info->supports_dp = 0;
+		info->supports_edp = 0;
 
+		return;
+	}
 	aux_channel = child->common.aux_channel;
 	ddc_pin = child->common.ddc_pin;
 
-- 
2.1.4

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

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

end of thread, other threads:[~2017-03-09 17:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-03 13:01 [PATCH] drm/i915: Clear the VBT defaults for unused ports Manasi Navare
2017-03-03 14:48 ` ✗ Fi.CI.BAT: warning for " Patchwork
2017-03-03 15:09 ` [PATCH] " Ville Syrjälä
2017-03-07 17:36   ` Jani Nikula
2017-03-09 17:52     ` Manasi Navare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.