Bug 12397

Summary: "Couldn't find the DDC routing table" on a Quadro NVS 140M
Product: xorg Reporter: Elias Naur <elias.naur>
Component: Driver/nVidia (open)Assignee: Aaron Plattner <aplattner>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: elias.naur
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log
none
Xorg.0.log
none
The Xorg.log with latest git from a coldboot
none
The Xorg.log with latest git after running once with the nvidia driver
none
Proposed fix none

Description Elias Naur 2007-09-11 14:14:49 UTC
Using the nv driver compiled from a git checkout today on a thinkpad t61 with a Quadro NVS 140M fails to bring up X with the error message:

(EE) NV(0): Couldn't find the DDC routing table.  Mode setting will probably fail!
Comment 1 Elias Naur 2007-09-11 14:15:23 UTC
Created attachment 11524 [details]
Xorg.0.log
Comment 2 Elias Naur 2007-09-16 04:12:39 UTC
Created attachment 11587 [details]
Xorg.0.log

The latest git version of nv gets a bit further. I've attached an updated Xorg.0.log. I also noticed that nv is able to work if the proprietary "nvidia" driver has run before it (that is, start X with the nvidia driver, edit xorg.conf to use "nv", then it works).
Comment 3 Elias Naur 2007-09-16 04:16:59 UTC
I used gdb to attach to the X process which seemed to be hung. Here's the relevant backtrace:

0x00002b34195cb012 in G80DispInit (pScrn=0x80b430)
    at g80_display.c:261
261         while((pNv->reg[0x00610200/4] & 0x1e0000) != 0);
(gdb) bt
#0  0x00002b34195cb012 in G80DispInit (pScrn=0x80b430) at g80_display.c:261
#1  0x00002b34195cc359 in AcquireDisplay (pScrn=0x80b430) at g80_driver.c:469
#2  0x00002b34195cc712 in G80ScreenInit (scrnIndex=<value optimized out>, pScreen=0x8118e0, argc=<value optimized out>, argv=<value optimized out>)
    at g80_driver.c:902
#3  0x0000000000439522 in AddScreen ()
#4  0x0000000000468a48 in InitOutput ()
#5  0x0000000000439d25 in main ()
Comment 4 Aaron Plattner 2007-10-13 21:18:52 UTC
Hi Elias.  This looks like a duplicate of bug 12637.  Please test the latest code in git and close or reopen this bug as appropriate.

*** This bug has been marked as a duplicate of bug 12637 ***
Comment 5 Elias Naur 2007-10-13 23:11:50 UTC
Created attachment 12032 [details]
The Xorg.log with latest git from a coldboot

The latest git version still doesn't work for me, this time failing to find a valid lvds mode (1440x900 for me).
Comment 6 Elias Naur 2007-10-13 23:12:31 UTC
I'm re-opening this bug since the latest version still doesn't work for me
Comment 7 Elias Naur 2007-10-13 23:13:57 UTC
Created attachment 12033 [details]
The Xorg.log with latest git after running once with the nvidia driver

The nv driver works if I start X once with the proprietary nvidia driver. The attached log is from a working nv run.
Comment 8 Aaron Plattner 2007-10-14 14:21:15 UTC
Created attachment 12038 [details] [review]
Proposed fix

Please try the attached patch.
Comment 9 Elias Naur 2007-10-14 23:20:21 UTC
Thanks, that patch successfully brings up X with nv on a cold booted machine.
Comment 10 Aaron Plattner 2007-10-15 01:32:46 UTC
Excellent.  Marking fixed with commit 08870847.

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.