Bug 21162 - [[GM45]] intel fail to detect screens
Summary: [[GM45]] intel fail to detect screens
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: Other NetBSD
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
Depends on:
Reported: 2009-04-13 20:06 UTC by Jeremy C. Reed
Modified: 2010-06-02 18:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Xorg.0.log (34.63 KB, text/plain)
2009-04-13 20:06 UTC, Jeremy C. Reed
no flags Details
xorg.conf with ModeDebug (1.31 KB, text/plain)
2009-04-13 20:07 UTC, Jeremy C. Reed
no flags Details

Description Jeremy C. Reed 2009-04-13 20:06:32 UTC
Created attachment 24779 [details]


Fails to detect screens. Please note that 2.6.3 does work to detect screens but sometimes core dumps (see bug 20994).

$ uname -a -p
NetBSD tx.reedmedia.net 5.0_RC3 NetBSD 5.0_RC3 (GENERIC) #1: Wed Mar 25 17:26:06 CDT 2009  reed@new-host-4:/home/reed/src/sys/arch/amd64/compile/GENERIC amd64 x86_64
Comment 1 Jeremy C. Reed 2009-04-13 20:07:10 UTC
Created attachment 24780 [details]
xorg.conf with ModeDebug
Comment 2 Gordon Jin 2009-04-13 22:31:38 UTC
The log says:
(II) intel(0): Skipping LVDS from driver feature BDB's LVDS config info.

I think this should be fixed by below commit. It should be in Could you double check if your source really includes it:

commit a03feab1b7ce511e1704bee96c83290d1c7b2785
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Wed Mar 25 11:13:52 2009 +0800

    Disable LVDS config parsing from VBT for now
    As wider tests showed that this doesn't work for all VBIOS, so
    disable it for now and reenable it after we get reliable method.
    (cherry picked from commit 375b2e40fcb17e94538a75392950e2533c1bb031)

diff --git a/src/i830_bios.c b/src/i830_bios.c
index 9b13bf4..4f2355d 100644
--- a/src/i830_bios.c
+++ b/src/i830_bios.c
@@ -181,6 +181,12 @@ parse_driver_feature(I830Ptr pI830, struct bdb_header *bdb)
     if (!IS_I9XX(pI830))
+    /* XXX Disable this parsing, as it looks doesn't work for all
+       VBIOS. Reenable it if we could find out the reliable VBT parsing
+       for LVDS config later. */
+    if (1)
+	return;
     feature = find_section(bdb, BDB_DRIVER_FEATURES);
     if (!feature)
Comment 3 Jeremy C. Reed 2009-04-14 05:46:22 UTC
It is and it does have that new code.
Comment 4 Gordon Jin 2009-04-14 19:22:14 UTC
Are you able to git bisect the xf86-video-intel master branch to see which commit causes this regression? (we can only provide limited support on NetBSD as we are only working on Linux, but the git bisect info will be quite helpful)
Comment 5 Jeremy C. Reed 2009-04-15 09:43:18 UTC
git bisect is fun! Thank you for having me use it.

$ git bisect good                                                              
f6d8ae69b0f97e696c142f06c8038f336ed024f9 is first bad commit
commit f6d8ae69b0f97e696c142f06c8038f336ed024f9
Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
Date:   Wed Feb 25 09:57:00 2009 +0800

    Use LVDS config in Driver feature BDB for integrated LVDS check
    The LVDS config bits in VBT driver feature block is used by vendor
    to identify the board implement of integrated LVDS/eDP or SDVO LVDS.
    And video bios uses these bits for LVDS enabling or not. So check
    these bits for integrated LVDS might eliminate more quirks.

:040000 040000 eb0c7e78bd6dae7037076dfbcd74da57e8b4cbad bd0a7e774f3260589000e6d8cc9a8b948a0e6361 M      src

I saved the Xorg.0.log for every good and bad test. Let me know if you want me to post these for you. Also if you want to login to this NetBSD/amd64 system, please let me know.
Comment 6 Jeremy C. Reed 2009-05-07 14:03:45 UTC
Anything else I can provide? I tested latest code again today and still not working. A couple weeks ago, I provided the bisect to show where it stopped working for me.

The version that does detect my video crashes frequently (as reported in my other ticket here).

Any other suggestions on what I can do?

Is there another source of Xorg drivers for G45 other than from http://intellinuxgraphics.org/  (since that says for "Linux" and I don't have Linux)?

I have good experiences with xf86-video-intel on other non-Linux systems in the past (but haven't tried recent versions yet).
Comment 7 Wang Zhenyu 2009-08-18 23:16:48 UTC
Does current xf86-video-intel 2.8.0 or git tip work for you now?
Comment 8 Wang Zhenyu 2010-06-02 18:54:31 UTC
Jeremy, I assume NetBSD has fixed GM45 support. Correct me if I'm wrong.
Comment 9 Wang Zhenyu 2010-06-02 18:55:00 UTC
Jeremy, I assume NetBSD has fixed GM45 support. Correct me if I'm wrong.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.