Bug 30195 - drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command streamS
Summary: drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command streamS
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 20:33 UTC by Jos van Wolput
Modified: 2010-09-15 02:47 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg (43.20 KB, application/octet-stream)
2010-09-15 01:54 UTC, Jos van Wolput
Details

Description Jos van Wolput 2010-09-14 20:33:52 UTC
Since today's (9/15) upgrade of git mesa, trying to run glxgears or any of the demos, mesa shows the following error:
---
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.
---
There is no info about mesa in dmesg.

I am running linux kernel 2.6.35-4 amd64, Mesa DRI R600 (RS780 9612) 20090101  TCL DRI2, 2.1 Mesa 7.9-devel, X.Org X Server 1.9.0 (git version)
Comment 1 Jos van Wolput 2010-09-15 00:25:18 UTC
The last mesa git version that runs glxgears and demos is
mesa-83f5f50f2f69adae497c71ac48e4e0177979ebff (Brian Paul)

The nexts versions:
mesa-7993832c12bba578010005b344dcd3817be84a42
mesa-b106e6261a088c6ab97f774508940c2aa935204e
mesa-79ab394cd2ca3f88ad854503b95e886a6c5d47d5
mesa-b0bc026c12042405357ae65585812ca11786837f
could not be compiled because of a compilation error:
---
indirect_vertex_array.o
indirect_vertex_array.c:1037:1: error: conflicting types for ‘__indirect_glMultiDrawArraysEXT’
indirect.h:603:20: note: previous declaration of ‘__indirect_glMultiDrawArraysEXT’ was here
make[2]: *** [indirect_vertex_array.o] Error 1
make[2]: Leaving directory `/home/jos/src/xorg/mesa-7993832c12bba578010005b344dcd3817be84a42/src/glx'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/jos/src/xorg/mesa-7993832c12bba578010005b344dcd3817be84a42/src'
make: *** [default] Error 1
---
mesa-4cd751bcc48798f19b089f6cff58bfca2f18fe36 (Brian Paul)
seems to be the first which doesn't run glxgears.
Comment 2 Michel Dänzer 2010-09-15 01:11:48 UTC
The most likely culprit seems commit b0bc026c12042405357ae65585812ca11786837f ('r600c: fix setting negative values to bitfields'). Does reverting that fix the problem?

As indicated by the error message, please attach the dmesg output as well.
Comment 3 Nicolas Kaiser 2010-09-15 01:49:03 UTC
I can confirm this problem for r600c. r600g appeared not to be affected.

mesa 84f7b5d974ba7601a7a43bbe307cc3dc95f221fa (Andre Maasikas) appears to have fixed it at my place.

In dmesg, I found these:

radeon 0000:01:05.0: z/stencil buffer too small (0x3FFFFC27 1048576 1 4 -> 268435456 have 389120)
radeon 0000:01:05.0: r600_packet3_check:1108 invalid cmd stream 518
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
radeon 0000:01:05.0: z/stencil buffer too small (0x3FFFFC7F 1048576 1 4 -> 268435456 have 3145728)
radeon 0000:01:05.0: r600_packet3_check:1108 invalid cmd stream 518
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Comment 4 Jos van Wolput 2010-09-15 01:54:31 UTC
Created attachment 38717 [details]
dmesg
Comment 5 Michel Dänzer 2010-09-15 01:56:36 UTC
Resolving per comment #3 (could have done this yourself Nicolas :).
Comment 6 Jos van Wolput 2010-09-15 01:58:41 UTC
(In reply to comment #2)
> The most likely culprit seems commit b0bc026c12042405357ae65585812ca11786837f
> ('r600c: fix setting negative values to bitfields'). Does reverting that fix
> the problem?
> 
> As indicated by the error message, please attach the dmesg output as well.

I tried reverting and it fixes the problem!
Comment 7 Andre Maasikas 2010-09-15 02:14:44 UTC
Jos, did you get the same errors in dmesg as in comment 3, your uploaded
part doesn't show these.

You could also try mesa git after commit 84f7b5d974ba7601a7a43bbe307cc3dc95f221fa

(if all is well now i'll need to push this to 7.9 branch also)
Comment 8 Jos van Wolput 2010-09-15 02:47:49 UTC
(In reply to comment #7)

Andre, I tested your mesa-84f7b5d974ba7601a7a43bbe307cc3dc95f221fa on my
system. Your commit fixes the problem.
Thanks!
In my dmesg I didn't see the errors mentioned in comment 3!


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.