[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADnq5_Nt9=GqHEFwHAdSLFMqZ_8fQLD19Z-f-DK9cz8-NzWYow@mail.gmail.com>
Date: Fri, 8 Jun 2012 18:28:37 -0400
From: Alex Deucher <alexdeucher@...il.com>
To: Chris Wilson <chris@...is-wilson.co.uk>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Dave Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel.vetter@...ll.ch>,
linux-kernel@...r.kernel.org,
DRI mailing list <dri-devel@...ts.freedesktop.org>
Subject: Re: [git pull] drm intel + exynos fixes
On Fri, Jun 8, 2012 at 6:12 PM, Chris Wilson <chris@...is-wilson.co.uk> wrote:
> On Fri, 8 Jun 2012 14:57:31 -0700, Linus Torvalds <torvalds@...ux-foundation.org> wrote:
>> This breaks things for me. Bisect says:
>>
>> 9e612a008fa7fe493a473454def56aa321479495 is the first bad commit
>> commit 9e612a008fa7fe493a473454def56aa321479495
>> Author: Chris Wilson <chris@...is-wilson.co.uk>
>> Date: Thu May 31 13:08:53 2012 +0100
>>
>> drm/i915/crt: Do not rely upon the HPD presence pin
>>
>> Whilst most monitors do wire up the HPD presence pin, it seems quite a
>> few KVM do not. Therefore if we simply rely on the HPD pin being
>> asserted to indicate a connected monitor we fail miserable, so fall back
>> to performing a DCC query for the EDID.
>>
>> Reported-and-tested-by: Matthieu LAVIE <boiteamadmax@...mail.com>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50501
>> Signed-off-by: Chris Wilson <chris@...is-wilson.co.uk>
>> Signed-off-by: Daniel Vetter <daniel.vetter@...ll.ch>
>>
>> And the symptoms are that it boots in what appears to be the correct
>> mode for my monitor (1920x1200), but when X starts it changes to
>> 1024x768 mode.
>>
>> Which is not good, and not useful.
>>
>> The bad kernel has this in Xorg.0.log:
>>
>> [ 12.796] (II) intel(0): EDID for output VGA1
>> [ 12.796] (II) intel(0): Printing probed modes for output VGA1
>> [ 12.796] (II) intel(0): Modeline "1024x768"x60.0 65.00 1024
>> 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz e)
>> [ 12.796] (II) intel(0): Modeline "800x600"x60.3 40.00 800 840
>> 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz e)
>> [ 12.796] (II) intel(0): Modeline "800x600"x56.2 36.00 800 824
>> 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz e)
>> [ 12.796] (II) intel(0): Modeline "848x480"x60.0 33.75 848 864
>> 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz e)
>> [ 12.796] (II) intel(0): Modeline "640x480"x59.9 25.18 640 656
>> 752 800 480 489 492 525 -hsync -vsync (31.5 kHz e)
>>
>> which is pure and utter garbage. I think it's the "default modes" for
>> the non-EDID case, and has nothing to do with actual hardware.
>>
>> The good kernel doesn't have those incorrect and bogus probed modes,
>> and just has the correct HDMI1 (that the bad kernel *also* has, of
>> course).
>>
>> I have reverted that commit as obviously broken, since I'm not going
>> to release an -rc2 that doesn't even work for me (and since it *is*
>> obviously broken).
>
> Shock, horror, that's how it is meant to work when we cannot determine
> whether or not there is actually an output attached to the VGA. The hw
> autodetect falsely declares some VGA connections, notably through KVM
> switches, as disconnected and so we need to do a manual probe to confirm
> the flaky hw. The first phase of that probe is to request the EDID from
> the monitor, not all monitors supply one and less through a KVM switch,
> so we cannot rely on a negative result from that test. (Absence of
> evidence is not evidence of absence and all that.) So it falls back to
> load-detection, which in your case it cannot do since all the available
> pipes are assigned and so it just reports the VGA connection as unknown.
The whole concept of connector status unknown is basically useless.
There's not really anything reasonable you can do with it and it's
abused in lots of different ways by both drivers and userspace. Some
userspace apps treat unknown as connected, others as disconnected,
others as connected but considered off (e.g., laptop lid closed). And
drivers abuse it similarly (e.g., report lvds as unknown if the lid is
closed). Unknown should be dropped and drivers should really just
report connected or disconnected. If the driver is not able to detect
a monitor, report disconnected even is there may be a monitor behind a
broken KVM that doesn't respond to DDC or load detection.
Unfortunately, everyone's favorite userspace apps will all break in
differing ways...
Alex
> -Chris
>
> --
> Chris Wilson, Intel Open Source Technology Centre
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists