2009-12-15 22:54:52

by Justin P. Mattock

[permalink] [raw]
Subject: [drm] nouveau iMac crashes and burns

I had figured this would happen,
but was curious to see if this
new bad boy would work.
(probably why fedora 12 doesnt boot as well).

basically the system freezes during boot once
drn nouveau is loaded. here's dmesg captured
with firescope:(a bit long)



<6>[ 6.001461] uvcvideo: Found UVC 1.00 device Built-in iSight (05ac:8502)
<6>[ 6.006567] input: Built-in iSight as
/devices/pci0000:00/0000:00:04.1/usb1/1-4/1-4:1.0/input/input4
<6>[ 6.006643] usbcore: registered new interface driver uvcvideo
<6>[ 6.006644] USB Video Class driver (v0.1.0)
<6>[ 6.062422] nouveau 0000:02:00.0: PCI INT A -> Link[Z003] -> GSI
23 (level, low) -> IRQ 23
<7>[ 6.075927] nouveau 0000:02:00.0: setting latency timer to 64
<6>[ 6.078287] [drm] nouveau 0000:02:00.0: Detected an NV50
generation card (0x094700a1)
<6>[ 6.092826] [drm] nouveau 0000:02:00.0: Attempting to load BIOS
image from PRAMIN
<6>[ 6.175238] [drm] nouveau 0000:02:00.0: ... appears to be valid
<6>[ 6.199990] [drm] nouveau 0000:02:00.0: BIT BIOS found
<6>[ 6.224262] [drm] nouveau 0000:02:00.0: Bios version 62.94.74.00
<4>[ 6.247464] [drm] nouveau 0000:02:00.0: TMDS table revision 2.0
not currently supported
<6>[ 6.270847] [drm] nouveau 0000:02:00.0: Found Display
Configuration Block version 4.0
<6>[ 6.294284] [drm] nouveau 0000:02:00.0: DCB connector table:
VHER 0x40 5 16 4
<6>[ 6.317755] [drm] nouveau 0000:02:00.0: 0: 0x00000040: type
0x40 idx 0 tag 0xff
<6>[ 6.317769] usb 1-1.2: new low speed USB device using ehci_hcd
and address 5
<6>[ 6.364963] [drm] nouveau 0000:02:00.0: 1: 0x00001161: type
0x61 idx 1 tag 0x07
<6>[ 6.388685] [drm] nouveau 0000:02:00.0: 2: 0x00001231: type
0x31 idx 2 tag 0x07
<6>[ 6.411250] [drm] nouveau 0000:02:00.0: 3: 0x01100331: type
0x31 idx 3 tag 0xff
<6>[ 6.433337] [drm] nouveau 0000:02:00.0: 4: 0x01100446: type
0x46 idx 4 tag 0xff
<6>[ 6.455141] [drm] nouveau 0000:02:00.0: 5: 0x02000546: type
0x46 idx 5 tag 0xff
<6>[ 6.476717] [drm] nouveau 0000:02:00.0: 6: 0x00410631: type
0x31 idx 6 tag 0x51
<6>[ 6.498117] [drm] nouveau 0000:02:00.0: 7: 0x00410746: type
0x46 idx 7 tag 0x51
<6>[ 6.519136] [drm] nouveau 0000:02:00.0: 8: 0x00020846: type
0x46 idx 8 tag 0x52
<6>[ 6.540124] [drm] nouveau 0000:02:00.0: 9: 0x00000900: type
0x00 idx 9 tag 0xff
<5>[ 6.560838] [drm] nouveau 0000:02:00.0: Raw DCB entry 0: 01000113 00010034
<5>[ 6.581250] [drm] nouveau 0000:02:00.0: Raw DCB entry 1: 040142a6 0f220010
<5>[ 6.601240] [drm] nouveau 0000:02:00.0: Raw DCB entry 2: 04014242 00020010
<6>[ 6.612124] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
0 at offset 0xD216
<6>[ 6.643094] input: Apple Inc. Apple Keyboard as
/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1.2/1-1.2:1.0/input/input5
<6>[ 6.654659] apple 0003:05AC:021D.0001: input: USB HID v1.11
Keyboard [Apple Inc. Apple Keyboard] on usb-0000:00:04.1-1.2/input0
<6>[ 6.663076] input: HDA Digital PCBeep as
/devices/pci0000:00/0000:00:08.0/input/input6
<6>[ 6.663279] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
1 at offset 0xD685
<6>[ 6.668019] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
2 at offset 0xE64E
<6>[ 6.668025] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
3 at offset 0xE76F
<6>[ 6.671605] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
4 at offset 0xEA96
<6>[ 6.671606] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
at offset 0xEAFB
<4>[ 6.692024] [drm] nouveau 0000:02:00.0: 0xEAFB: Condition still
not met after 20ms, skipping following opcodes
<6>[ 6.692030] [drm] nouveau 0000:02:00.0: 0xB45C: parsing output script 0
<6>[ 6.692032] [drm] nouveau 0000:02:00.0: 0xBB62: parsing output script 0
<6>[ 6.692034] [drm] nouveau 0000:02:00.0: 0xB8A4: parsing output script 0
<6>[ 6.772776] [TTM] Zone kernel: Available graphics memory: 2016034 kiB.
<6>[ 6.772793] [drm] nouveau 0000:02:00.0: 512 MiB VRAM
<6>[ 6.805881] input: Apple Inc. Apple Keyboard as
/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1.2/1-1.2:1.1/input/input7
<6>[ 6.815359] [drm] nouveau 0000:02:00.0: 512 MiB GART (aperture)
<6>[ 6.831344] nouveau 0000:02:00.0: firmware: requesting
nouveau/nv94.ctxprog
<6>[ 6.831853] apple 0003:05AC:021D.0002: input: USB HID v1.11
Device [Apple Inc. Apple Keyboard] on usb-0000:00:04.1-1.2/input1
<3>[ 6.891531] [drm] nouveau 0000:02:00.0: No ctxprog for NV94
<6>[ 6.913304] [drm] nouveau 0000:02:00.0: Allocating FIFO number 1
<6>[ 6.913328] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.913333] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.913337] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.913341] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127

<--------cut *this message goes on for a while ----------->

<6>[ 6.914479] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.914483] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.914487] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.914491] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.914494] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915488] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915491] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915495] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915500] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915503] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 6.915506] [drm] nouveau 0000:02:00.0: PFIFO still angry after
101 spins, halt
<6>[ 8.540685] usb 1-1.3: new low speed USB device using ehci_hcd
and address 6
<6>[ 8.545087] [drm] nouveau 0000:02:00.0: nouveau_channel_alloc:
initialised FIFO 1
<6>[ 8.640144] input: Mitsumi Electric Apple Optical USB Mouse as
/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1.3/1-1.3:1.0/input/input8
<6>[ 8.642258] apple 0003:05AC:0304.0003: input: USB HID v1.10
Mouse [Mitsumi Electric Apple Optical USB Mouse] on
usb-0000:00:04.1-1.3/input0
<7>[ 8.798067] ieee1394: The root node is not cycle master capable;
selecting a new root node and resetting...
<7>[ 9.056250] ieee1394: Speed probe of node 0-00:1023 yields S400
<7>[ 9.056708] ieee1394: Node added: ID:BUS[0-00:1023]
GUID[0019e3fffe2ad87e]
<7>[ 9.057063] ieee1394: Host added: ID:BUS[0-01:1023]
GUID[0023dffffe8cd104]

<3>[ 10.166575] [drm] nouveau 0000:02:00.0: PRAMIN flush timeout

machine is an iMac with the gt130 card
I loaded mesa,dri, but didn't find any
firmware(if any) for /lib/firmware

--
Justin P. Mattock


2009-12-15 23:16:37

by Younes Manton

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

On Tue, Dec 15, 2009 at 5:54 PM, Justin Mattock <[email protected]> wrote:
> I had figured this would happen,
> but was curious to see if this
> new bad boy would work.
> (probably why fedora 12 doesnt boot as well).
>
> basically the system freezes during boot once
> drn nouveau is loaded. here's dmesg captured
> with firescope:(a bit long)

<..snip..>
> <3>[ 6.891531] [drm] nouveau 0000:02:00.0: No ctxprog for NV94
<..snip..>

>
> machine is an iMac with the gt130 card
> I loaded mesa,dri, but didn't find any
> firmware(if any) for /lib/firmware

You need the firmware, it's not carried in the upstream tree.[1]
There's also a PPC-specific patch currently in the Nouveau tree and on
various lists that you need to apply.[2]

[1] http://people.freedesktop.org/~pq/
[2] http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=a51b847bebf85e8539db6afe1627a3a17a05dfcc

2009-12-15 23:08:35

by Younes Manton

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

On Tue, Dec 15, 2009 at 6:02 PM, Younes Manton <[email protected]> wrote:
> On Tue, Dec 15, 2009 at 5:54 PM, Justin Mattock <[email protected]> wrote:
>> I had figured this would happen,
>> but was curious to see if this
>> new bad boy would work.
>> (probably why fedora 12 doesnt boot as well).
>>
>> basically the system freezes during boot once
>> drn nouveau is loaded. here's dmesg captured
>> with firescope:(a bit long)
>
> <..snip..>
>> <3>[ 6.891531] [drm] nouveau 0000:02:00.0: No ctxprog for NV94
> <..snip..>
>
>>
>> machine is an iMac with the gt130 card
>> I loaded mesa,dri, but didn't find any
>> firmware(if any) for /lib/firmware
>
> You need the firmware, it's not carried in the upstream tree.[1]
> There's also a PPC-specific patch currently in the Nouveau tree and on
> various lists that you need to apply.[2]
>
> [1] http://people.freedesktop.org/~pq/
> [2] http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=a51b847bebf85e8539db6afe1627a3a17a05dfcc
>

(You only need to apply [2] if yours is a PPC Mac in case it wasn't
obvious, I just assumed PPC for some reason...)

2009-12-15 23:12:45

by Justin P. Mattock

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

On 12/15/09 15:08, Younes Manton wrote:
> On Tue, Dec 15, 2009 at 6:02 PM, Younes Manton<[email protected]> wrote:
>
>> On Tue, Dec 15, 2009 at 5:54 PM, Justin Mattock<[email protected]> wrote:
>>
>>> I had figured this would happen,
>>> but was curious to see if this
>>> new bad boy would work.
>>> (probably why fedora 12 doesnt boot as well).
>>>
>>> basically the system freezes during boot once
>>> drn nouveau is loaded. here's dmesg captured
>>> with firescope:(a bit long)
>>>
>> <..snip..>
>>
>>> <3>[ 6.891531] [drm] nouveau 0000:02:00.0: No ctxprog for NV94
>>>
>> <..snip..>
>>
>>
>>> machine is an iMac with the gt130 card
>>> I loaded mesa,dri, but didn't find any
>>> firmware(if any) for /lib/firmware
>>>
>> You need the firmware, it's not carried in the upstream tree.[1]
>> There's also a PPC-specific patch currently in the Nouveau tree and on
>> various lists that you need to apply.[2]
>>
>> [1] http://people.freedesktop.org/~pq/
>> [2] http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?id=a51b847bebf85e8539db6afe1627a3a17a05dfcc
>>
>>
> (You only need to apply [2] if yours is a PPC Mac in case it wasn't
> obvious, I just assumed PPC for some reason...)
>
>
this is an intel iMac, with the 130 card

Justin P. Mattock

2009-12-16 03:23:15

by Justin P. Mattock

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

o.k. I didn't see the urls at the bottom pointing
to where to get the firmware(was figuring out the trace thing.

Anyways I think I need to generate a new firmware file because
even with the firmware compiled in I still freeze up:


<7>[ 6.492976] nouveau 0000:02:00.0: setting latency timer to 64
<6>[ 6.495238] [drm] nouveau 0000:02:00.0: Detected an NV50
generation card (0x094700a1)
<6>[ 6.515838] [drm] nouveau 0000:02:00.0: Attempting to load BIOS
image from PRAMIN
<6>[ 6.565633] usb 1-1.3: new low speed USB device using ehci_hcd
and address 6
<6>[ 6.593407] [drm] nouveau 0000:02:00.0: ... appears to be valid
<6>[ 6.607755] [drm] nouveau 0000:02:00.0: BIT BIOS found
<6>[ 6.621926] [drm] nouveau 0000:02:00.0: Bios version 62.94.74.00
<4>[ 6.635626] [drm] nouveau 0000:02:00.0: TMDS table revision 2.0
not currently supported
<6>[ 6.649157] [drm] nouveau 0000:02:00.0: Found Display
Configuration Block version 4.0
<6>[ 6.662635] [drm] nouveau 0000:02:00.0: DCB connector table:
VHER 0x40 5 16 4
<6>[ 6.669105] input: Mitsumi Electric Apple Optical USB Mouse as
/devices/pci0000:00/0000:00:04.1/usb1/1-1/1-1.3/1-1.3:1.0/input/input8
<6>[ 6.669194] apple 0003:05AC:0304.0003: input: USB HID v1.10
Mouse [Mitsumi Electric Apple Optical USB Mouse] on
usb-0000:00:04.1-1.3/input0
<6>[ 6.704298] [drm] nouveau 0000:02:00.0: 0: 0x00000040: type
0x40 idx 0 tag 0xff
<6>[ 6.718420] [drm] nouveau 0000:02:00.0: 1: 0x00001161: type
0x61 idx 1 tag 0x07
<6>[ 6.732352] [drm] nouveau 0000:02:00.0: 2: 0x00001231: type
0x31 idx 2 tag 0x07
<6>[ 6.746063] [drm] nouveau 0000:02:00.0: 3: 0x01100331: type
0x31 idx 3 tag 0xff
<6>[ 6.746065] [drm] nouveau 0000:02:00.0: 4: 0x01100446: type
0x46 idx 4 tag 0xff
<6>[ 6.746067] [drm] nouveau 0000:02:00.0: 5: 0x02000546: type
0x46 idx 5 tag 0xff
<6>[ 6.746069] [drm] nouveau 0000:02:00.0: 6: 0x00410631: type
0x31 idx 6 tag 0x51
<6>[ 6.746070] [drm] nouveau 0000:02:00.0: 7: 0x00410746: type
0x46 idx 7 tag 0x51
<6>[ 6.746072] [drm] nouveau 0000:02:00.0: 8: 0x00020846: type
0x46 idx 8 tag 0x52
<6>[ 6.746074] [drm] nouveau 0000:02:00.0: 9: 0x00000900: type
0x00 idx 9 tag 0xff
<5>[ 6.746076] [drm] nouveau 0000:02:00.0: Raw DCB entry 0: 01000113 00010034
<5>[ 6.746078] [drm] nouveau 0000:02:00.0: Raw DCB entry 1: 040142a6 0f220010
<5>[ 6.746079] [drm] nouveau 0000:02:00.0: Raw DCB entry 2: 04014242 00020010
<6>[ 6.746086] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
0 at offset 0xD216
<6>[ 6.934477] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
1 at offset 0xD685
<6>[ 6.962090] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
2 at offset 0xE64E
<6>[ 6.974498] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
3 at offset 0xE76F
<6>[ 6.988191] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
4 at offset 0xEA96
<6>[ 7.000396] [drm] nouveau 0000:02:00.0: Parsing VBIOS init table
at offset 0xEAFB
<4>[ 7.033096] [drm] nouveau 0000:02:00.0: 0xEAFB: Condition still
not met after 20ms, skipping following opcodes
<6>[ 7.055682] [drm] nouveau 0000:02:00.0: 0xB45C: parsing output script 0
<6>[ 7.078326] [drm] nouveau 0000:02:00.0: 0xBB62: parsing output script 0
<6>[ 7.100583] [drm] nouveau 0000:02:00.0: 0xB8A4: parsing output script 0
<6>[ 7.225581] [TTM] Zone kernel: Available graphics memory: 2016018 kiB.
<6>[ 7.240487] [drm] nouveau 0000:02:00.0: 512 MiB VRAM
<7>[ 7.240520] ieee1394: The root node is not cycle master capable;
selecting a new root node and resetting...
<6>[ 7.264721] [drm] nouveau 0000:02:00.0: 512 MiB GART (aperture)
<6>[ 7.277953] nouveau 0000:02:00.0: firmware: using built-in
firmware nouveau/nv94.ctxprog
<6>[ 7.290232] nouveau 0000:02:00.0: firmware: using built-in
firmware nouveau/nv94.ctxvals
<6>[ 7.302607] [drm] nouveau 0000:02:00.0: Allocating FIFO number 1
<6>[ 7.302626] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 7.302629] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 7.302632] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127


<---long trail of these ----->


<6>[ 7.303118] [drm] nouveau 0000:02:00.0: PFIFO_INTR 0x00000010 - Ch 127
<6>[ 7.303120] [drm] nouveau 0000:02:00.0: PFIFO still angry after
101 spins, halt
<6>[ 7.782786] [drm] nouveau 0000:02:00.0: nouveau_channel_alloc:
initialised FIFO 1
<7>[ 7.972267] ieee1394: Speed probe of node 0-00:1023 yields S400
<7>[ 7.972954] ieee1394: Node added: ID:BUS[0-00:1023]
GUID[0019e3fffe2ad87e]
<7>[ 7.973293] ieee1394: Host added: ID:BUS[0-01:1023]
GUID[0023dffffe8cd104]
<6>[ 7.978665] eth1394: eth0: IPv4 over IEEE 1394 (fw-host0)
<3>[ 9.403981] [drm] nouveau 0000:02:00.0: PRAMIN flush timeout


looking at
http://nouveau.freedesktop.org/wiki/CtxInit
seems understandable to me, and I'm willing to
try this out(even if I go crazy), but could take a while.

--
Justin P. Mattock

2009-12-16 05:31:13

by Justin P. Mattock

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

hm.. any ideas i.g.
it seems renouveau requirements
needs at max 256 mb for memory
on the card(and 2.4 kernel),

looking at mmiotrace(seems the best way)
I've turned on the tracer, but as soon
as I load the module nouvaeu the system freezes!

Justin P. Mattock

2009-12-16 05:55:52

by Younes Manton

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

On Wed, Dec 16, 2009 at 12:31 AM, Justin P. mattock
<[email protected]> wrote:
> hm.. any ideas i.g.
> it seems renouveau requirements
> needs at max 256 mb for memory
> on the card(and 2.4 kernel),
>
> looking at mmiotrace(seems the best way)
> I've turned on the tracer, but as soon
> as I load the module nouvaeu the system freezes!
>
> Justin P. Mattock
>

The page you found is for capturing the firmware as Nvidia's driver
uploads it to the card. We already have your firmware so you don't
need to do that. Apparently this is one of the integrated chips we
haven't got working yet so you'll just have to sit tight until someone
gets their hands on it.

2009-12-16 07:11:57

by Justin P. Mattock

[permalink] [raw]
Subject: Re: [drm] nouveau iMac crashes and burns

On 12/15/09 21:55, Younes Manton wrote:
> On Wed, Dec 16, 2009 at 12:31 AM, Justin P. mattock
> <[email protected]> wrote:
>> hm.. any ideas i.g.
>> it seems renouveau requirements
>> needs at max 256 mb for memory
>> on the card(and 2.4 kernel),
>>
>> looking at mmiotrace(seems the best way)
>> I've turned on the tracer, but as soon
>> as I load the module nouvaeu the system freezes!
>>
>> Justin P. Mattock
>>
>
> The page you found is for capturing the firmware as Nvidia's driver
> uploads it to the card. We already have your firmware so you don't
> need to do that. Apparently this is one of the integrated chips we
> haven't got working yet so you'll just have to sit tight until someone
> gets their hands on it.
>

Alright..
no worries, more curious if anything.

Justin P. Mattock