Skip to content

Commit 84b4e04

Browse files
jbarnes993jnikula
authored andcommitted
drm/i915: only apply crt_present check on VLV
Apparently we can't trust this field on other platforms and need to find some other way. This fixes a regression introduced in commit 27da3bd Author: Jesse Barnes <jbarnes@virtuousgeek.org> Date: Fri Apr 4 16:12:07 2014 -0700 drm/i915: use VBT to determine whether to enumerate the VGA port Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Tested-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 33c3b0d commit 84b4e04

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11097,6 +11097,22 @@ const char *intel_output_name(int output)
1109711097
return names[output];
1109811098
}
1109911099

11100+
static bool intel_crt_present(struct drm_device *dev)
11101+
{
11102+
struct drm_i915_private *dev_priv = dev->dev_private;
11103+
11104+
if (IS_ULT(dev))
11105+
return false;
11106+
11107+
if (IS_CHERRYVIEW(dev))
11108+
return false;
11109+
11110+
if (IS_VALLEYVIEW(dev) && !dev_priv->vbt.int_crt_support)
11111+
return false;
11112+
11113+
return true;
11114+
}
11115+
1110011116
static void intel_setup_outputs(struct drm_device *dev)
1110111117
{
1110211118
struct drm_i915_private *dev_priv = dev->dev_private;
@@ -11105,7 +11121,7 @@ static void intel_setup_outputs(struct drm_device *dev)
1110511121

1110611122
intel_lvds_init(dev);
1110711123

11108-
if (!IS_ULT(dev) && !IS_CHERRYVIEW(dev) && dev_priv->vbt.int_crt_support)
11124+
if (intel_crt_present(dev))
1110911125
intel_crt_init(dev);
1111011126

1111111127
if (HAS_DDI(dev)) {

0 commit comments

Comments
 (0)