Skip to contentSkip to conversation

New: [mesa] [r300] mupen64plus invalid command stream

Bug 42622 [email protected] 1 participant 10 messages Nov 5, 2011 – Dec 5, 2012

lore
Share & tools
lore
#0 lore raw

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

             Bug #: 42622
           Summary: [mesa] [r300] mupen64plus invalid command stream
    Classification: Unclassified
           Product: Mesa
           Version: 7.11
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/r300
        AssignedTo: [email protected]
        ReportedBy: [email protected]

I've just built mupen64 plus emulator and it crashed after a few seconds (after emulator intro screen).

When running it, i get something like this :

Core: R4300: starting 64-bit dynamic recompiler at: 0xbc0200
radeon: The kernel rejected CS, see dmesg for more information.

inspecting dmesg gives this output:

[ 4250.120602] [drm:r100_cs_packet_next_reloc] *ERROR* No packet3 for
relocation for packet at 1140.
[ 4250.120607] [drm] ib[1140]=0x000013C6
[ 4250.120609] [drm] ib[1141]=0x00000001
[ 4250.120611] [drm:r100_packet3_load_vbpntr] *ERROR* No reloc for packet3 47
[ 4250.120613] [drm] ib[1131]=0xC0052F00
[ 4250.120615] [drm] ib[1132]=0x00000003
[ 4250.120617] [drm] ib[1133]=0x0A020804
[ 4250.120618] [drm] ib[1134]=0x103A0980
[ 4250.120620] [drm] ib[1135]=0x00000000
[ 4250.120622] [drm] ib[1136]=0x00000A02
[ 4250.120623] [drm] ib[1137]=0x00000000
[ 4250.120625] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

the same behavior is on current mesa git.

hardware is RV515 (x1300 pro) on 64bit system.

i'd like to know if that's a program issue, or mesa bug?

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.
#1 lore raw

[Bug 42622] [mesa] [r300] mupen64plus invalid command stream

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

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Component|Drivers/DRI/r300 |Drivers/Gallium/r300

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

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

Michel Dänzer <[email protected]> changed:

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

            Summary|[mesa] [r300] mupen64plus   |[r300g] mupen64plus invalid
                   |invalid command stream      |command stream
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

--- Comment #1 from Scott Moreau <[email protected]> 2011-12-18 13:27:37 PST --- I am having the same issue with r300g on rv350 (Radeon 9600). m64+ segfaults with this output:

Core: Starting R4300 emulator: Dynamic Recompiler
radeon: The kernel rejected CS, see dmesg for more information. Segmentation fault

The relevant portion from dmesg:

[ 5295.048418] [drm:r100_cs_packet_next_reloc] *ERROR* No packet3 for
relocation for packet at 1044.
[ 5295.048425] [drm] ib[1044]=0x000013C6
[ 5295.048427] [drm] ib[1045]=0x00000001
[ 5295.048430] [drm:r100_packet3_load_vbpntr] *ERROR* No reloc for packet3 47
[ 5295.048433] [drm] ib[1037]=0xC0032F00
[ 5295.048436] [drm] ib[1038]=0x00000002
[ 5295.048438] [drm] ib[1039]=0x0A020804
[ 5295.048441] [drm] ib[1040]=0xC0213700
[ 5295.048443] [drm] ib[1041]=0x00000000
[ 5295.048446] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

This happens with latest mesa git master.

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.
#5 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

--- Comment #3 from Scott Moreau <[email protected]> 2011-12-18 21:43:34 PST --- Created attachment 54566
--> https://bugs.freedesktop.org/attachment.cgi?id=54566
patch

I went ahead and bisected mesa. Here's what I came up with:

12fa91b6753dccbd3aa12c570d1f1e55c7dc0582 is the first bad commit commit 12fa91b6753dccbd3aa12c570d1f1e55c7dc0582

Author: Thomas Hellstrom <[email protected]>
Date:   Mon Mar 7 11:24:43 2011 +0100

st/mesa: Fix an incorrect user vertex buffer reference

st->user_vb[attr] was always pointing to the same user vb, regardless of the value of attr. Together with reverting the temporary workaround for bug 34378, and a fix in the svga driver, this fixes googleearth on
svga.

:040000 040000 ca575588faeb8fe79c3d768ff28a7a808a64afac
2b9a78c9034e26ee411981d8d0cd06b72133beab M src

The previous commit works. I've attached a patch that simply reverts the relevant bits.

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.
#6 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

--- Comment #4 from Scott Moreau <[email protected]> 2011-12-18 21:48:12 PST --- (In reply to comment #2)

Quoted 1 line

Which kernel version do you have?

I've tested on 2.6.38 and 3.0.0 both 32bit.

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.
#7 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

--- Comment #5 from kowalski marcin <[email protected]> 2012-03-19 02:54:21 PDT --- the problem does not exist anymore on current mesa git and current stable kernel.

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.
#8 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

--- Comment #6 from kowalski marcin <[email protected]> 2012-03-19 02:56:24 PDT --- i'll try this on another set of hardware soon to make sure. i might have been a bit hasty with that comment.

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.
#9 lore raw

[Bug 42622] [r300g] mupen64plus invalid command stream

In reply to [email protected]

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

Tomasz P. <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel