Bug 692588

Summary: Nouveau doesn't work 2.6.38.2-9.fc15.x86_64
Product: [Fedora] Fedora Reporter: Mathieu Chouquet-Stringer <mathieu-acct>
Component: xorg-x11-drv-nouveauAssignee: Ben Skeggs <bskeggs>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: airlied, ajax, bskeggs, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mcepl, sdodson
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.38.3-18.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-08 15:34:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
F14 Kernel Log
none
F14 Kernel Log
none
F15 Kernel Log none

Description Mathieu Chouquet-Stringer 2011-03-31 15:55:44 UTC
Description of problem:

Hello,

Booting 2.6.38.2-9.fc15.x86_64 on F15 Alpha, I don't get any nouveau support.  As a result I run X in Vesa mode...

The same setup used to work perfectly fine with F14.

Here's what the kernel says:
[    0.928000] ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
[    0.928293] nouveau 0000:05:00.0: PCI INT A -> Link[APC3] -> GSI 18 (level, low) -> IRQ 18
[    0.928755] nouveau 0000:05:00.0: setting latency timer to 64
[    0.933018] [drm] nouveau 0000:05:00.0: Detected an NV30 generation card (0x034a00b1)
[    0.933596] [drm] nouveau 0000:05:00.0: Attempting to load BIOS image from PRAMIN
[    1.011665] [drm] nouveau 0000:05:00.0: ... appears to be valid
[    1.012276] [drm] nouveau 0000:05:00.0: BMP BIOS found
[    1.012529] [drm] nouveau 0000:05:00.0: BMP version 5.41
[    1.012782] [drm] nouveau 0000:05:00.0: Bios version 04.34.20.84
[    1.013047] [drm] nouveau 0000:05:00.0: Found Display Configuration Block version 2.2
[    1.013506] [drm] nouveau 0000:05:00.0: Raw DCB entry 0: 01000300 000088b8
[    1.013762] [drm] nouveau 0000:05:00.0: Raw DCB entry 1: 02010310 000088b8
[    1.014027] [drm] nouveau 0000:05:00.0: Raw DCB entry 2: 01000302 00000000
[    1.014283] [drm] nouveau 0000:05:00.0: Raw DCB entry 3: 04010312 00000000
[    1.014904] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 0 at offset 0xC188
[    1.015522] usb 1-5: new high speed USB device using ehci_hcd and address 3
[    1.019040] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 1 at offset 0xC43D
[    1.019508] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 2 at offset 0xC583
[    1.020037] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 3 at offset 0xC70C
[    1.020497] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 4 at offset 0xC729
[    1.020958] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 5 at offset 0xC746
[    1.057427] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 6 at offset 0xC8DF
[    1.077847] [drm] nouveau 0000:05:00.0: 0 available performance level(s)
[    1.078126] [drm] nouveau 0000:05:00.0: c: memory 405MHz core 252MHz
[    1.078465] [TTM] Zone  kernel: Available graphics memory: 511104 kiB.
[    1.078720] [TTM] Initializing pool allocator.
[    1.078983] [drm] nouveau 0000:05:00.0: Detected 64MiB VRAM
[    1.079682] [drm] nouveau 0000:05:00.0: Error creating sgdma object: -12
[    1.079943] [drm] nouveau 0000:05:00.0: Error initialising PCI(E): -12
[    1.080246] [TTM] Finalizing pool allocator.
[    1.080553] [TTM] Zone  kernel: Used memory at exit: 0 kiB.
[    1.081742] nouveau 0000:05:00.0: PCI INT A disabled
[    1.082033] nouveau: probe of 0000:05:00.0 failed with error -12

Here's what I used to get in F14:
[    0.886908] ACPI: PCI Interrupt Link [APC3] enabled at IRQ 18
[    0.887200] nouveau 0000:05:00.0: PCI INT A -> Link[APC3] -> GSI 18 (level, low) -> IRQ 18
[    0.892396] [drm] nouveau 0000:05:00.0: Detected an NV30 generation card (0x034a00b1)
[    0.893024] [drm] nouveau 0000:05:00.0: Attempting to load BIOS image from PRAMIN
[    0.971315] [drm] nouveau 0000:05:00.0: ... appears to be valid
[    0.971849] [drm] nouveau 0000:05:00.0: BMP BIOS found
[    0.972112] [drm] nouveau 0000:05:00.0: BMP version 5.41
[    0.972366] [drm] nouveau 0000:05:00.0: Bios version 04.34.20.84
[    0.972621] [drm] nouveau 0000:05:00.0: Found Display Configuration Block version 2.2
[    0.973090] [drm] nouveau 0000:05:00.0: Raw DCB entry 0: 01000300 000088b8
[    0.973347] [drm] nouveau 0000:05:00.0: Raw DCB entry 1: 02010310 000088b8
[    0.973603] [drm] nouveau 0000:05:00.0: Raw DCB entry 2: 01000302 00000000
[    0.973859] [drm] nouveau 0000:05:00.0: Raw DCB entry 3: 04010312 00000000
[    0.974430] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 0 at offset 0xC188
[    0.978043] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 1 at offset 0xC43D
[    0.978513] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 2 at offset 0xC583
[    0.979043] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 3 at offset 0xC70C
[    0.979506] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 4 at offset 0xC729
[    0.979968] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 5 at offset 0xC746
[    1.032244] [drm] nouveau 0000:05:00.0: Parsing VBIOS init table 6 at offset 0xC8DF
[    1.032706] [drm] nouveau 0000:05:00.0: Detected 64MiB VRAM
[    1.033281] [TTM] Zone  kernel: Available graphics memory: 510900 kiB.
[    1.033537] [TTM] Initializing pool allocator.
[    1.035872] [drm] nouveau 0000:05:00.0: 64 MiB GART (aperture)
[    1.036195] [drm] nouveau 0000:05:00.0: Saving VGA fonts
[    1.113886] usb 1-5: new high speed USB device using ehci_hcd and address 3
[    1.116689] [drm] nouveau 0000:05:00.0: Allocating FIFO number 0
[    1.117321] [drm] nouveau 0000:05:00.0: nouveau_channel_alloc: initialised FIFO 0
[    1.117801] [drm] nouveau 0000:05:00.0: Setting dpms mode 3 on vga encoder (output 0)
[    1.118273] [drm] nouveau 0000:05:00.0: Setting dpms mode 3 on vga encoder (output 1)
[    1.118742] [drm] nouveau 0000:05:00.0: Setting dpms mode 3 on tmds encoder (output 2)
[    1.119222] [drm] nouveau 0000:05:00.0: Setting dpms mode 3 on tmds encoder (output 3)
[    1.358035] [drm] nouveau 0000:05:00.0: allocated 1280x1024 fb: 0x48000, bo ffff880037fd5400
[    1.358645] fbcon: nouveaufb (fb0) is primary device
[    1.374470] [drm] nouveau 0000:05:00.0: 0xB64D: Parsing digital output script table
[    1.385470] usb 1-5: New USB device found, idVendor=0424, idProduct=2502
[    1.385476] usb 1-5:
[    1.386050] hub 1-5:1.0: USB hub found
[    1.386107] hub 1-5:1.0: 2 ports detected
[    1.425027] [drm] nouveau 0000:05:00.0: Setting dpms mode 0 on tmds encoder (output 2)
[    1.425032] [drm] nouveau 0000:05:00.0: Output DVI-I-1 is running on CRTC 0 using output A
[    1.435492] [drm] nouveau 0000:05:00.0: 0xB73A: Parsing digital output script table
[    1.486036] [drm] nouveau 0000:05:00.0: Setting dpms mode 0 on tmds encoder (output 3)
[    1.486039] [drm] nouveau 0000:05:00.0: Output DVI-I-2 is running on CRTC 1 using output C
[    1.487887] Console: switching to colour frame buffer device 160x64
[    1.490650] fb0: nouveaufb frame buffer device
[    1.490661] drm: registered panic notifier
[    1.490681] Slow work thread pool: Starting up
[    1.490743] Slow work thread pool: Ready
[    1.490755] [drm] Initialized nouveau 0.0.16 20090420 for 0000:05:00.0 on minor 0
[    1.527543] dracut: Starting plymouth daemon

Here's my smolt profile:
http://www.smolts.org/client/show/pub_7058659f-701c-45f0-9188-e9fa203e6d24

Let me know what I can do to help...

Best,
Mathieu

Comment 1 Mathieu Chouquet-Stringer 2011-04-01 14:17:11 UTC
Booted with drm.debug=14 and nouveau.reg_debug=0x3FF

[    1.085787] [drm] nouveau 0000:05:00.0: Detected 64MiB VRAM
[    1.086391] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_init:241 - 
[    1.086397] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:336 - pinst=0x00010000 vinst=0xffffffffffffffff size=0x00001000 flags=0x00000002
[    1.086402] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:341 - gpuobj ffff880039a22b40
[    1.086453] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:336 - pinst=0x00011200 vinst=0xffffffffffffffff size=0x00000200 flags=0x00000002
[    1.086456] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:341 - gpuobj ffff880039a22ba0
[    1.086462] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:336 - pinst=0x00011400 vinst=0xffffffffffffffff size=0x00000800 flags=0x00000002
[    1.086466] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new_fake:341 - gpuobj ffff880039a22c00
[    1.086507] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new:178 - ch-1 size=524296 align=16 flags=0x00000006
[    1.086511] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_new:183 - gpuobj ffff880039a22c60
[    1.086515] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_del:283 - gpuobj ffff880039a22c60
[    1.086518] [drm] nouveau 0000:05:00.0: Error creating sgdma object: -12
[    1.086777] [drm] nouveau 0000:05:00.0: Error initialising PCI(E): -12
[    1.087064] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_del:283 - gpuobj ffff880039a22b40
[    1.087067] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_del:283 - gpuobj ffff880039a22ba0
[    1.087069] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_del:283 - gpuobj ffff880039a22c00
[    1.087072] [drm] nouveau 0000:05:00.0: nouveau_gpuobj_takedown:258 - 
[    1.087093] [TTM] Finalizing pool allocator.
[    1.087384] [TTM] Zone  kernel: Used memory at exit: 0 kiB.
[    1.087886] [drm] nouveau 0000:05:00.0: NVWriteVgaCrtc: head 0 index 0x44 data 0x04
[    1.087892] [drm] nouveau 0000:05:00.0: NVReadVgaCrtc: head 0 index 0x1f data 0x03
[    1.087895] [drm] nouveau 0000:05:00.0: NVWriteVgaCrtc: head 0 index 0x1f data 0x99
[    1.088570] nouveau 0000:05:00.0: PCI INT A disabled
[    1.088840] nouveau: probe of 0000:05:00.0 failed with error -12

So it looks like we fail here (drivers/gpu/drm/nouveau/nouveau_object.c:210):

                ret = instmem->get(gpuobj, size, align);
                if (ret) {
                        nouveau_gpuobj_ref(NULL, &gpuobj);
                        return ret;
                }

Comment 2 Chuck Ebbert 2011-04-03 19:04:22 UTC
It now says:

[    1.078983] [drm] nouveau 0000:05:00.0: Detected 64MiB VRAM

Before it was:

[    1.035872] [drm] nouveau 0000:05:00.0: 64 MiB GART (aperture)

Please post the complete boot messages (contents of /var/log/dmesg after bootup) from both the old and new kernels, as separate plain-text attachments.

Comment 3 Mathieu Chouquet-Stringer 2011-04-03 19:13:23 UTC
By old kernel you mean F14?  With debug on or?

Comment 4 Mathieu Chouquet-Stringer 2011-04-04 08:43:05 UTC
Created attachment 489719 [details]
F14 Kernel Log

Comment 5 Mathieu Chouquet-Stringer 2011-04-04 08:43:32 UTC
Created attachment 489720 [details]
F14 Kernel Log

Comment 6 Mathieu Chouquet-Stringer 2011-04-04 08:47:52 UTC
Created attachment 489721 [details]
F15 Kernel Log

Comment 7 Mathieu Chouquet-Stringer 2011-04-04 08:48:14 UTC
There you go, kernel logs from F14 and F15...

Comment 8 Chuck Ebbert 2011-04-07 23:37:55 UTC
OK, there's nothing there about GART failing to load in the F15 kernel.

Comment 9 Ben Skeggs 2011-04-07 23:56:27 UTC
Oh, interesting.  I wasn't aware there were any PCIE nv30 boards around, I believe I know what's going on here, will look into a fix today.

Comment 10 Ben Skeggs 2011-04-08 04:50:44 UTC
The kernel that's now building at http://koji.fedoraproject.org/koji/taskinfo?taskID=2983205 should fix the issue, hopefully!

Please let me know :)

Comment 11 Mathieu Chouquet-Stringer 2011-04-08 05:05:53 UTC
I'm waiting for it! :-)  I'll let you know asap.

Comment 12 Mathieu Chouquet-Stringer 2011-04-08 06:28:40 UTC
Success!  It works...  Now I'll have to look at your patch to see what you changed...  Ok gnome 3 doesn't work at all with it but at least I got my screens back!

Thanks,

Comment 13 Matěj Cepl 2011-04-08 15:34:59 UTC
Thank you for letting us know.

Comment 14 Fedora Update System 2011-04-22 15:55:54 UTC
kernel-2.6.38.3-18.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/kernel-2.6.38.3-18.fc15

Comment 15 Fedora Update System 2011-04-27 02:39:01 UTC
kernel-2.6.38.3-18.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.