Bug 10933

Summary: nouveau defaults to first graphics card in system even when xorg instructed differently
Product: xorg Reporter: Mark Carey <mark.carey>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
syslog showing drm working to init 1:0:0 not 2:4:0 and then failing on an instruction the card does not understand
none
Xorg.log showing working with 2:4:0 does warn about missing device section for 1:0:0
none
glxinfo with mesa git on paths
none
kern.log with insmod drm.ko debug=1
none
matching Xorg.0.log
none
enabling Randr12 appears to be ok as well none

Description Mark Carey 2007-05-12 13:51:45 UTC
Testing nouveau on a system with both;

01:00.0 VGA compatible controller: nVidia Corporation NV5 [RIVA TNT2/TNT2 Pro] (rev 15) (prog-if 00 [VGA])
        Subsystem: Compaq Computer Corporation Unknown device 001f
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
        Memory at 42000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 50000000 (32-bit, prefetchable) [size=32M]
        [virtual] Expansion ROM at 43000000 [disabled] [size=64K]
        Capabilities: [60] Power Management version 1
        Capabilities: [44] AGP version 2.0
00: de 10 28 00 06 00 b0 02 15 00 00 03 00 40 00 00

02:04.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) (prog-if 00 [VGA])
        Subsystem: XFX Pine Group Inc. Unknown device 203e
        Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 20
        Memory at 40000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 48000000 (32-bit, prefetchable) [size=128M]
        [virtual] Expansion ROM at 41020000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
00: de 10 22 03 07 00 b0 02 a1 00 00 03 00 40 00 00

/etc/X11/xorg.conf 

Section "Device"
        Identifier      "Generic Video Card"
        Driver          "nouveau"
        Busid           "PCI:2:4:0"
        Option          "MigrationHeuristic"    "greedy"
EndSection

i.e xorg is configured to use 2:4:0, after insmod drm.ko debug=1, the drm appears to enable interrupts from both cards (will attache syslog) however only works with the first card it sees.

Resulting in repeatable failures on method 0x03b0 as nv05 0028 doesnt understand method 0x03b0 (does not appear in a clean renouveau output for 10de0028).

May 13 08:38:03 daisy kernel: [ 1528.379012] [drm:nouveau_pgraph_irq_handler] *ERROR* NV: PGRAPH error interrupt
May 13 08:38:03 daisy kernel: [ 1528.379023] [drm:nouveau_pgraph_irq_handler] *ERROR* nsource:0x00040000^Instatus:0x01000000
May 13 08:38:03 daisy kernel: [ 1528.379031] [drm:nouveau_pgraph_irq_handler] *ERROR* instance:0x00002920
May 13 08:38:03 daisy kernel: [ 1528.379041] [drm:nouveau_graph_dump_trap_info] *ERROR* NV: nSource: 0x00040000, nStatus: 0x01000000
May 13 08:38:03 daisy kernel: [ 1528.379051] [drm:nouveau_graph_dump_trap_info] *ERROR* NV: Channel 1/7 (class 0x0697) -Method 0x03b0, Data 0x00100000
Comment 1 Mark Carey 2007-05-12 13:53:20 UTC
Created attachment 9947 [details]
syslog showing drm working to init 1:0:0 not 2:4:0 and then failing on an instruction the card does not understand
Comment 2 Mark Carey 2007-05-12 13:55:13 UTC
Created attachment 9948 [details]
Xorg.log showing working with 2:4:0 does warn about missing device section for 1:0:0
Comment 3 Mark Carey 2007-05-12 13:56:00 UTC
Created attachment 9949 [details]
glxinfo with mesa git on paths
Comment 4 Maarten Maathuis 2008-02-01 11:24:04 UTC
What's the status on this bug?
Comment 5 Mark Carey 2008-02-01 11:50:24 UTC
I expect will be significantly different now that nouveau has Randr1.2
support will get a prerelease Xorg up and running and retest
Comment 6 Mark Carey 2008-02-01 15:09:39 UTC
Ubuntu 8.04 alpha
X.Org X Server 1.4.0.90
drm c77b0937f290568604961fa0013691349c5fcf3b
xf86-video-nouveau 5b79b0a9e54fe99eaae5b411f46a601b6944b773

with /etc/X11/xorg.conf instructing the server to start on pci 2:4:0
appears to work,

cat /var/log/messages

Feb  2 11:15:32 daisy syslogd 1.5.0#1ubuntu1: restart.
Feb  2 11:43:11 daisy -- MARK --
Feb  2 11:44:00 daisy kernel: [ 2605.976093] [drm] Initialized drm
1.1.0 20060810
Feb  2 11:44:15 daisy kernel: [ 2621.092922] [drm] Initialized drm
1.1.0 20060810
Feb  2 11:44:25 daisy kernel: [ 2631.198486] PCI: Enabling device
0000:01:00.0 (0004 -> 0006)
Feb  2 11:44:25 daisy kernel: [ 2631.198508] ACPI: PCI Interrupt
0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 19
Feb  2 11:44:25 daisy kernel: [ 2631.198653] [drm] Detected an NV4
generation card (0x20154000)
Feb  2 11:44:25 daisy kernel: [ 2631.198757] [drm] Initialized nouveau
0.0.10 20060213 on minor 0
Feb  2 11:44:25 daisy kernel: [ 2631.198796] ACPI: PCI Interrupt
0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 20
Feb  2 11:44:25 daisy kernel: [ 2631.198929] [drm] Detected an NV30
generation card (0x034200b1)
Feb  2 11:44:25 daisy kernel: [ 2631.199003] [drm] Initialized nouveau
0.0.10 20060213 on minor 1
Feb  2 11:51:06 daisy kernel: [ 3032.064186] [drm] Allocating FIFO number 0
Feb  2 11:51:06 daisy kernel: [ 3032.066462] [drm] nouveau_fifo_alloc:
initialised FIFO 0
Feb  2 11:51:06 daisy kernel: [ 3032.084842] [drm] Allocating FIFO number 1
Feb  2 11:51:06 daisy kernel: [ 3032.086085] [drm] nouveau_fifo_alloc:
initialised FIFO 1
Feb  2 11:51:15 daisy kernel: [ 3040.848176] [drm] nouveau_fifo_free:
freeing fifo 1
Feb  2 11:51:16 daisy kernel: [ 3041.544707] [drm] nouveau_fifo_free:
freeing fifo 0
Feb  2 11:51:18 daisy kernel: [ 3044.543767] [drm] Allocating FIFO number 0
Feb  2 11:51:18 daisy kernel: [ 3044.546051] [drm] nouveau_fifo_alloc:
initialised FIFO 0
Feb  2 11:51:18 daisy kernel: [ 3044.564260] [drm] Allocating FIFO number 1
Feb  2 11:51:18 daisy kernel: [ 3044.565471] [drm] nouveau_fifo_alloc:
initialised FIFO 1

will attach detailed kernel log and Xorg.0.log, but believe is fixed
Comment 7 Mark Carey 2008-02-01 15:14:18 UTC
Created attachment 14081 [details]
kern.log with insmod drm.ko debug=1
Comment 8 Mark Carey 2008-02-01 15:14:52 UTC
Created attachment 14082 [details]
matching Xorg.0.log
Comment 9 Mark Carey 2008-02-01 15:31:31 UTC
Created attachment 14083 [details]
enabling Randr12 appears to be ok as well

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.