Skip to content

Commit 70ac54d

Browse files
committed
drm/i915: Don't register CRT connector when DDI E can't be used
On HSW/BDW DDI A and E share 2 lanes, so when DDI A requires the shared lanes DDI E can't be used. The lanes are not supposed to be dynamically switched between the two uses, so there's no point in registering the CRT connector when DDI E has no lanes. v2: Fix typos in the commit message (Paulo) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1449005396-15319-1-git-send-email-ville.syrjala@linux.intel.com
1 parent 65e472e commit 70ac54d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14260,6 +14260,10 @@ static bool intel_crt_present(struct drm_device *dev)
1426014260
if (HAS_PCH_LPT_H(dev) && I915_READ(SFUSE_STRAP) & SFUSE_STRAP_CRT_DISABLED)
1426114261
return false;
1426214262

14263+
/* DDI E can't be used if DDI A requires 4 lanes */
14264+
if (HAS_DDI(dev) && I915_READ(DDI_BUF_CTL(PORT_A)) & DDI_A_4_LANES)
14265+
return false;
14266+
1426314267
if (IS_VALLEYVIEW(dev) && !dev_priv->vbt.int_crt_support)
1426414268
return false;
1426514269

0 commit comments

Comments
 (0)