Re: i915: 2.6.36-rc2 wrong resolution on gdm start

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Wilson
Date: Tuesday, August 24, 2010 - 12:49 am

On Tue, 24 Aug 2010 03:00:55 +0200, Ivan Bulatovic <combuster@gmx.com> wrote:

Interesting. I am chasing a spurious TV connection on SDVO that has been
present since time immemorial. How certain are you that you've never have a
false detection in earlier kernels? It may not have affected the choice of
outputs, except sporadically, but it should be recorded in the debug logs
with drm.debug=0x6.

Does this make any difference?

diff --git a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo
index ea2f4ab..e7ff378 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1454,7 +1454,7 @@ intel_sdvo_detect(struct drm_connector *connector,
                return connector_status_unknown;
        if (intel_sdvo->is_tv) {
                /* add 30ms delay when the output type is SDVO-TV */
-               mdelay(30);
+               mdelay(100);
        }
        if (!intel_sdvo_read_response(intel_sdvo, &response, 2))
                return connector_status_unknown;

Or (more likely):

diff --git a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo
index ea2f4ab..77c455b 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1216,8 +1216,8 @@ static int intel_sdvo_dpms(struct drm_encoder
*encoder, in
                temp = I915_READ(intel_sdvo->sdvo_reg);
                if ((temp & SDVO_ENABLE) == 0)
                        intel_sdvo_write_sdvox(intel_sdvo, temp |
SDVO_ENABLE);
-               for (i = 0; i < 2; i++)
-                       intel_wait_for_vblank(dev, intel_crtc->pipe);
+
+               msleep(100);
 
                status = intel_sdvo_get_trained_inputs(intel_sdvo,
                                                       &input1, &input2);

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

Messages in current thread:
i915: 2.6.36-rc2 wrong resolution on gdm start, Ivan Bulatovic, (Mon Aug 23, 6:00 pm)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Chris Wilson, (Tue Aug 24, 12:49 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Ivan Bulatovic, (Tue Aug 24, 1:35 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Chris Wilson, (Tue Aug 24, 1:50 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Pekka Enberg, (Tue Aug 24, 1:54 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Ivan Bulatovic, (Tue Aug 24, 2:12 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Pekka Enberg, (Sun Aug 29, 4:29 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Maciej Rutecki, (Sun Aug 29, 5:59 am)
Re: i915: 2.6.36-rc2 wrong resolution on gdm start, Sitsofe Wheeler, (Sun Aug 29, 6:37 am)