Skip to contentSkip to conversation

New: NV11 card is not detected properly by nouveau on big-endian box

Bug 14393 [email protected] 1 participant 16 messages Feb 6, 2008 – Dec 5, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Summary: NV11 card is not detected properly by nouveau on big-
endian box
Product: xorg
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]

Created an attachment (id=14162)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14162)
Xorg log

The system is a gigabit g4 powermac with a PC AGP NV11 (10de:0110) flashed with a mac ROM.

While the drm module seems to identify it as a NV11, the nouveau ddx driver does not.

[drm] Detected an NV11 generation card (0x011000b2) vs
(--) NOUVEAU(0): Chipset: "NVIDIA NV20"

There's also a message in further down in the log that seems to suggest endian issues.

(EE) NOUVEAU(0): Card is in big endian mode, something is very wrong !

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

A message that is not in the archive (sent off-list or not yet received): bug-14393-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 14393] NV11 card is not detected properly by nouveau on big-endian box

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #1 from Henrik Sørensen <[email protected]> 2008-02-05 17:07:24 PST --- Created an attachment (id=14163)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14163)
Kernel log

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#3 lore raw

[Bug 14393] NV11 card is not detected properly by nouveau on big-endian box

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #14162|0                           |1

is obsolete| |

--- Comment #2 from Henrik Sørensen <[email protected]> 2008-02-14 07:05:43 PST --- Created an attachment (id=14309)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14309)
X log

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#4 lore raw

[Bug 14393] NV11 card is not detected properly by nouveau on big-endian box

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #3 from Henrik Sørensen <[email protected]> 2008-02-14 07:06:44 PST --- Either because of code changes or due to the system firmware being upgraded to 4.2.8, the card is now detected as a nv11. However it does not get far without crashing with a fifo lockup, the x checkboard partern and x cursor is shown for only a second.

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#5 lore raw

[Bug 14393] fifo lockup with nv11 in ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|NV11 card is not detected   |fifo lockup with nv11 in ppc
                   |properly by nouveau on big- |machine
                   |endian box                  |
Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#6 lore raw

[Bug 14393] fifo lockup with nv11 in ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #14163|0                           |1

is obsolete| |

--- Comment #4 from Henrik Sørensen <[email protected]> 2008-02-14 07:08:03 PST --- Created an attachment (id=14310)
--> (http://bugs.freedesktop.org/attachment.cgi?id=14310)
kernel log

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#7 lore raw

[Bug 14393] fifo lockup with nv11 in ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #14162|1                           |0

is obsolete| |

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#8 lore raw

[Bug 14393] fifo lockup with nv11 in ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #14163|1                           |0

is obsolete| |

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#9 lore raw

[Bug 14393] fifo lockup with nv11 in ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #5 from Henrik Sørensen <[email protected]> 2008-02-14 08:10:25 PST --- Sigh.. I was way to quick. The card had been initialised by the nv driver before I started X with the nouveau driver. If the machine is booted without nv having run, it is back to the old behaviour. (NV20 detected and 0 MiB of ram).

Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#10 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

Henrik Sørensen <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|fifo lockup with nv11 in ppc|Card detected as NV20
                   |machine                     |(endian issue?) With nv
                   |                            |driver run first, fifo
                   |                            |lockup on nv11ppc machine
Signature · 7 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
#11 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #6 from Danny <[email protected]> 2008-07-10 21:28:09 PST --- Created an attachment (id=17630)
--> (http://bugs.freedesktop.org/attachment.cgi?id=17630)
correctly set endian access in nouveau_state.c

The first issue (card being in the wrong mode) is probably a bug in the drm. Both nv and nvidiafb set up BE access by writing 0x01000001 to NV03_PMC_BOOT_1 (instead of 0x00000001 as done by drm). This also explains why it worked after running nv (nv set up the card correctly).

Patch is attached. The second problem is probably something else. It may have been fixed in the meantime, so pls test.

Actually, the drm used to write 0x01000001 but this was changed by marcheu in commit 30353c8efcc026ee8940f3eadab084c42a3acd4e. I do not know the reason of this change.

d.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #7 from Pekka Paalanen <[email protected]> 2009-09-23 04:56:41 PST --- The code in current DRM still is:

#ifdef __BIG_ENDIAN
        /* Put the card in BE mode if it's not */
        if (nv_rd32(dev, NV03_PMC_BOOT_1))
                nv_wr32(dev, NV03_PMC_BOOT_1, 0x00000001);

        DRM_MEMORYBARRIER();

#endif

Does the patch change anything?
How does Nouveau currently work with and without the patch?

The patch may not apply as is, but you can easily do the equivalent change by hand in drivers/gpu/drm/nouveau/nouveau_state.c in the nouveau/linux-2.6 kernel tree, near line 540.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #8 from Chi-Thanh Christopher Nguyen <chithanh-CFLBMwTPW48UNGrzBIF7/[email protected]> 2009-09-23 05:16:57 PST --- Reports in IRC suggest that the issue still exists.

It might be a good idea to ask the committer of 30353c8efcc026ee8940f3eadab084c42a3acd4e what was the reasoning behind the change.

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

http://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #9 from Stephane Marchesin <[email protected]> 2009-09-23 05:27:20 PST --- (In reply to comment #8)

Quoted 6 lines

Reports in IRC suggest that the issue still exists.

It might be a good idea to ask the committer of 30353c8efcc026ee8940f3eadab084c42a3acd4e what was the reasoning behind the change.

That change was motivated by the fact that it fixed at least one system.

If you (PPC guys) can come up with a patch that pleases everyone with a PPC, I think we're more than happy to merge it...

Signature · 3 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=14393

--- Comment #10 from Emil Velikov <[email protected]> 2011-08-23 13:32:07 PDT --- Changes almost identical to the proposed patch are part of upstream for a while
now.

Can you try the latest nouvea-git or linux-3.1

Both of which include the commit "drm/nouveau: fix big-endian switch"

Thanks

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw

[Bug 14393] Card detected as NV20 (endian issue?) With nv driver run first, fifo lockup on nv11ppc machine

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=14393

Marcin Slusarz <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.