Re: [BUG] i915 boot got black screen with 2.6.37-rc5+

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Wilson
Date: Thursday, December 16, 2010 - 3:10 am

On Thu, 16 Dec 2010 10:20:57 +0800, Hui Zhu <teawater@gmail.com> wrote:

The hotplug probe was failing. The only change along that path I could see
was to setting some hotplug flags in the analag adapter register. Can you
try this patch to see if it fixes things for you? Meanwhile I'll check the
docs for the validity of those flags for the various gen.

diff --git a/drivers/gpu/drm/i915/intel_crt.c
b/drivers/gpu/drm/i915/intel_crt.c
index 8df5743..14c276e 100644
--- a/drivers/gpu/drm/i915/intel_crt.c
+++ b/drivers/gpu/drm/i915/intel_crt.c
@@ -148,7 +148,9 @@ static void intel_crt_mode_set(struct drm_encoder *encoder,
                           dpll_md & ~DPLL_MD_UDI_MULTIPLIER_MASK);
        }
 
-       adpa = ADPA_HOTPLUG_BITS;
+       adpa = 0;
+       if (INTEL_INFO(dev)->gen >= 4)
+               adpa |= ADPA_HOTPLUG_BITS;
        if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
                adpa |= ADPA_HSYNC_ACTIVE_HIGH;
        if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)

-- 
Chris Wilson, Intel Open Source Technology Centre
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Chris Wilson, (Wed Dec 15, 2:23 am)
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Chris Wilson, (Wed Dec 15, 3:20 am)
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Chris Wilson, (Thu Dec 16, 3:10 am)
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Woody Suwalski, (Sat Dec 18, 1:55 pm)
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Maciej Rutecki, (Sun Dec 19, 1:42 pm)
Re: [BUG] i915 boot got black screen with 2.6.37-rc5+, Woody Suwalski, (Mon Dec 20, 7:02 am)