[needs linux-2.6.36.2] [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

Bug #557266 reported by Oibaf
116
This bug affects 22 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
High
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Note: this bug is fixed in kernel 2.6.36, but it's still not fixed in the 2.6.35.x series (at least up to 2.6.35.10). To fix it in 2.6.35.x it needs this kernel patch:
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=a41ceb1c17af06a17c0d88e987215ef20b93c471

Also this patch (from 2.6.37-rc1 and backported to 2.6.36.2 and 2.6.35.10) is also needed to fix a similar issue on r200:
http://lists.freedesktop.org/archives/dri-devel/2010-October/005069.html

===

Note: if you are getting "drmRadeonCmdBuffer: -12" this is another problem see bug #533784.

===

I am getting this:
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.
when trying to start the game 0ad or douze map with sauerbraten (with shaders enabled).

dmesg shows this after 0ad crash:
[ 204.087282] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 4190208 have 3145728) !
[ 204.087294] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (1024 4 0 1023)
[ 204.087300] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

and this with sauerbraten:
[ 1144.213905] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 83826965 dwords have 112640 dwords
[ 1144.213915] [drm:r100_cs_track_check] *ERROR* Max indices 16765393
[ 1144.213921] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

Card:
GL_RENDERER = Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL DRI2

Revision history for this message
Oibaf (oibaf) wrote : [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

Note: if you are getting "drmRadeonCmdBuffer: -12" this is another problem see bug #533784.

I am getting this:
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.
when trying to start the game 0ad or douze map with sauerbraten (with shaders enabled).

dmesg shows this after 0ad crash:
[ 204.087282] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 4190208 have 3145728) !
[ 204.087294] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (1024 4 0 1023)
[ 204.087300] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

and this with sauerbraten:
[ 1144.213905] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 83826965 dwords have 112640 dwords
[ 1144.213915] [drm:r100_cs_track_check] *ERROR* Max indices 16765393
[ 1144.213921] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

Card:
GL_RENDERER = Mesa DRI R300 (RV530 71C5) 20090101 x86/MMX/SSE2 TCL DRI2

Oibaf (oibaf)
summary: - [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse
- or rejected command stream. See dmesg for more info.
+ [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse
+ or rejected command stream
Oibaf (oibaf)
tags: added: 3d crash i386
Revision history for this message
Paul Broadhead (pjbroad) wrote : Re: [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

Running the eternallands game I get this to standard out:
Allocating 1014 x 713 radeon RBO (pitch 1024)
Allocating 1014 x 713 radeon RBO (pitch 1024)
Allocating 1014 x 713 radeon RBO (pitch 1024)
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

And this in dmesg:
[ 90.853952] [drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 0
[ 90.853967] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

This is for a Thinkpad X31 using "ATI Technologies Inc Radeon Mobility M6 LY"

Revision history for this message
In , Pauli (paniemin) wrote :

Created an attachment (id=34797)
Debug patch or scissor bug.

Here is 2 different error messages so 2 different bugs. It would be better if there was only one bug per report.

0ad problem is that mesa sets wrong height for rendering area (1023 instead 768). Could you apply the attached patch to mesa and run 0ad with RADEON_DEBUG=all ./0ad &> debug.log

Revision history for this message
In , Michel Dänzer (michel-daenzer) wrote :

*** Bug 27446 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Oibaf (oibaf) wrote :

> 0ad problem is that mesa sets wrong height for rendering area (1023 instead
> 768). Could you apply the attached patch to mesa and run 0ad with
> RADEON_DEBUG=all ./0ad &> debug.log

debug file created as requested with patch (note: compressed: 3MB, uncompressed: 152MB):
http://rapidshare.com/files/373364294/debug.log.bz2.html

Revision history for this message
In , Oibaf (oibaf) wrote :
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote : Re: [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

Hi Fabio,

Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 557266

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul Broadhead (pjbroad) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: paul 1349 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'I82801DBICH4'/'Intel 82801DB-ICH4 with AD1981B at irq 5'
   Mixer name : 'Analog Devices AD1981B'
   Components : 'AC97a:41445374'
   Controls : 26
   Simple ctrls : 18
Card29.Amixer.info:
 Card hw:29 'ThinkPadEC'/'ThinkPad Console Audio Control at EC reg 0x30, fw 1QHT22WW-1.07b'
   Mixer name : 'ThinkPad EC 1QHT22WW-1.07b'
   Components : ''
   Controls : 2
   Simple ctrls : 1
Card29.Amixer.values:
 Simple mixer control 'Console',0
   Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
   Playback channels: Mono
   Limits: Playback 0 - 14
   Mono: Playback 6 [43%] [on]
DistroRelease: Ubuntu 10.04
HibernationDevice: RESUME=UUID=bae2b247-206b-4a57-a7b3-b5d68c7e963e
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta i386 (20100318)
Lsusb:
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 002: ID 046d:c03d Logitech, Inc. M-BT96a Pilot Optical Mouse
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: IBM 26722G3
Package: linux (not installed)
PccardctlIdent:
 Socket 0:
   no product info available
 Socket 1:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
 Socket 1:
   no card
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-19-generic root=UUID=6f8536c6-ed76-44d1-8321-d86639de2c1c ro quiet splash
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-19.28-generic 2.6.32.10+drm33.1
Regression: Yes
RelatedPackageVersions: linux-firmware 1.34
Reproducible: Yes
RfKill:

Tags: lucid graphics regression-release needs-upstream-testing
Uname: Linux 2.6.32-19-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 01/23/2005
dmi.bios.vendor: IBM
dmi.bios.version: 1QET94WW (3.00d)
dmi.board.name: 26722G3
dmi.board.vendor: IBM
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: IBM
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnIBM:bvr1QET94WW(3.00d):bd01/23/2005:svnIBM:pn26722G3:pvrThinkPadX31:rvnIBM:rn26722G3:rvrNotAvailable:cvnIBM:ct10:cvrNotAvailable:
dmi.product.name: 26722G3
dmi.product.version: ThinkPad X31
dmi.sys.vendor: IBM

tags: added: apport-collected
Revision history for this message
Paul Broadhead (pjbroad) wrote : AlsaDevices.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : AplayDevices.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : ArecordDevices.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : BootDmesg.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : IwConfig.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : Lspci.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : PciMultimedia.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : ProcModules.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : UdevDb.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : UdevLog.txt

apport information

Revision history for this message
Paul Broadhead (pjbroad) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Oibaf (oibaf) wrote : Re: [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

The bug is still reproducible with current r300 driver from mesa git and 2.6.34-rc6 from kernel mainline build. I suspect, however, that this is a mesa bug and not a kernel bug. See also this comment from https://bugs.freedesktop.org/show_bug.cgi?id=27507#c1 :
"0ad problem is that mesa sets wrong height for rendering area (1023 instead 768)."

tags: removed: needs-kernel-logs needs-upstream-testing
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Richard G. (skunk) wrote :

I'm seeing this as well. I have an ATI FireGL 8800 (r200), and the error I see in dmesg is

[drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 1
[drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

glxgears works, but openarena fails, gltron fails....

Revision history for this message
Sonal Santan (sonal-santan) wrote :
Download full text (3.9 KiB)

I see the same message for my ATI Technologies Inc Radeon R200 QL [Radeon 8500 LE] on Ubuntu 10.04 while playing World of Padman. The game exits with the message:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

Also dmesg shows this:

[135106.802528] ------------[ cut here ]------------
[135106.802571] WARNING: at /build/buildd/linux-2.6.32/arch/x86/kernel/apic/ipi.c:109 default_send_IPI_mask_logical+0xb2/0xf0()
[135106.802586] Hardware name: -[622140U]-
[135106.802591] empty IPI mask
[135106.802600] Modules linked in: autofs4 binfmt_misc nfsd exportfs nfs lockd nfs_acl auth_rpcgss cx88_blackbird cx2341x tda827x tda8290 fbcon tileblit font bitblit softcursor snd_intel8x0 vga16fb vgastate tuner snd_ac97_codec cx88_alsa ac97_bus snd_pcm_oss snd_mixer_oss snd_pcm cx8802 cx8800 snd_seq_dummy arc4 cx88xx radeon pc87360 v4l2_common rt2500pci ttm snd_seq_oss rt2x00pci videodev ir_common snd_seq_midi rt2x00lib snd_rawmidi drm_kms_helper snd_seq_midi_event led_class tveeprom v4l1_compat snd_seq videobuf_dma_sg mac80211 drm btcx_risc snd_timer i2c_algo_bit snd_seq_device cfg80211 snd e7xxx_edac eeprom_93cx6 w83791d hwmon_vid videobuf_core soundcore snd_page_alloc edac_core i2c_i801 sunrpc ppdev intel_agp psmouse shpchp serio_raw agpgart parport_pc lp parport usbhid hid usb_storage floppy tg3
[135106.802866] Pid: 17, comm: events/2 Not tainted 2.6.32-22-generic #33-Ubuntu
[135106.802871] Call Trace:
[135106.802895] [<c014c3d2>] warn_slowpath_common+0x72/0xa0
[135106.802905] [<c0120952>] ? default_send_IPI_mask_logical+0xb2/0xf0
[135106.802913] [<c0120952>] ? default_send_IPI_mask_logical+0xb2/0xf0
[135106.802925] [<c014c44b>] warn_slowpath_fmt+0x2b/0x30
[135106.802934] [<c0120952>] default_send_IPI_mask_logical+0xb2/0xf0
[135106.802956] [<c011edb1>] native_send_call_func_ipi+0x41/0x60
[135106.802969] [<c017c298>] smp_call_function_many+0x148/0x1c0
[135106.802983] [<c012c730>] ? __change_page_attr_set_clr+0x60/0x1c0
[135106.802999] [<c012bf90>] ? __cpa_flush_range+0x0/0x30
[135106.803007] [<c012bf90>] ? __cpa_flush_range+0x0/0x30
[135106.803024] [<c017c334>] smp_call_function+0x24/0x30
[135106.803035] [<c0152cff>] on_each_cpu+0x1f/0x50
[135106.803046] [<c012cb81>] change_page_attr_set_clr+0x2f1/0x3b0
[135106.803053] [<c012cd77>] _set_memory_wb+0x37/0x40
[135106.803070] [<c012cd9d>] set_memory_wb+0x1d/0x50
[135106.803077] [<c012cde7>] set_pages_wb+0x17/0x20
[135106.803111] [<f85e4221>] ttm_tt_set_caching+0x61/0x1e0 [ttm]
[135106.803142] [<f803406e>] ? agp_free_memory+0x9e/0x120 [agpgart]
[135106.803164] [<f85e43c9>] ttm_tt_free_alloced_pages+0x29/0xb0 [ttm]
[135106.803187] [<f85e4917>] ttm_tt_destroy+0x37/0x90 [ttm]
[135106.803203] [<f85e4fe9>] ttm_bo_release_list+0x59/0xb0 [ttm]
[135106.803223] [<f85e4f90>] ? ttm_bo_release_list+0x0/0xb0 [ttm]
[135106.803242] [<c034cb3d>] kref_put+0x2d/0x60
[135106.803260] [<f85e5f0e>] ttm_bo_delayed_delete+0x8e/0xe0 [ttm]
[135106.803274] [<f85e5f78>] ttm_bo_delayed_workqueue+0x18/0x30 [ttm]
[135106.803291] [<c016369e>] run_workqueue+0x8e/0x150
[135106.803310] [<f85e5f60>] ? ttm_bo_delayed_workqueue+0x0/0x30 [ttm]
[135106.803323] [<c01637e...

Read more...

Revision history for this message
Alexandru Campeanu (kaemail88) wrote :

I have the same issue with running wow under wine (radeon 8500 le, ubuntu 10.04)

I read somewhere that adding "radeon.modeset = 0" param to kernel boot options should work, although the error does go away the game still doesn't work (looks like a paging error) and it does have some disadvantages, the desktop doesn't show a wallpaper and other rather annoying things

Any new info ?

Revision history for this message
madbiologist (me-again) wrote :

Some of you might be affected by http://bugs.freedesktop.org/show_bug.cgi?id=28459

This has been fixed upstream in kernel 2.6.35-rc4. From the changelog:

commit f9da52d54eb0e8822b5e7f32ab1cfa6522533d6e
Author: Roland Scheidegger
Date: Sat Jun 12 12:12:37 2010 -0400

    drm/radeon/kms: CS checker texture fixes for r1xx/r2xx/r3xx

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

    agd5f: apply to r1xx/r2xx as well.

    Signed-off-by: Roland Scheidegger
    Cc: <email address hidden>
    Signed-off-by: Alex Deucher
    Signed-off-by: Dave Airlie

Revision history for this message
Daniel Richard G. (skunk) wrote :

madbiologist, I believe that is a different, possibly unrelated bug.

For my part, I am running the linux-image-2.6.35-020635rc4-generic Ubuntu mainline kernel right now, and I still get the "drmRadeonCmdBuffer: -22" error.

Revision history for this message
Daniel Richard G. (skunk) wrote :

Downgrading my kernel to linux-image-2.6.31-02063113-generic makes this problem go away. (This is with X11 packages from the xorg-edgers PPA, but those shouldn't be necessary, since they never seemed to make a difference anyway.)

I believe this is technically a Karmic kernel---it's the most recent available mainline build of 2.6.31, from June 4---but have not noticed any anomalies from my Lucid system running on it. For those interested in this workaround, kernel packages are available here:

    http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.31.13-karmic/

Revision history for this message
Daniel Richard G. (skunk) wrote :

I've done some further testing, and have two more observations to report:

1. Using the aforementioned 2.6.31 kernel with stock Ubuntu X11 packages works beautifully---no PPA packages are needed. (In fact, with the xorg-edgers packages, I was getting weird core/XI-event-translation errors that prevented the mouse from working in at least two GL apps.)

2. This bug is still reproducible in the Maverick Alpha 2 live CD environment.

Revision history for this message
In , Marek Olšák (maraeo) wrote :

Could you possibly test this kernel patch:

http://lists.freedesktop.org/archives/dri-devel/2010-September/003830.html

And please let me know if it fixes 0ad for you.

You might also try the Gallium driver instead in case the patch doesn't help.

Revision history for this message
In , Oibaf (oibaf) wrote :

(In reply to comment #5)
> Could you possibly test this kernel patch:
>
> http://lists.freedesktop.org/archives/dri-devel/2010-September/003830.html
>
> And please let me know if it fixes 0ad for you.
>
> You might also try the Gallium driver instead in case the patch doesn't help.

It's still the same with the patch (applied against 2.6.34.6).

Note, however, that (with or without the patch) now the game stucks where previously crashed and I have to kill -9 it. There is nothing interesting in dmesg.

(r300g is working since a month)

Changed in linux:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Oibaf (oibaf) wrote :

This is fixed now. Note however that with r300c unless you disable shadows the game runs at 20 second per frame. Works fast with r300g.

Revision history for this message
Oibaf (oibaf) wrote : Re: [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

Confirmed fixed on maverick.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel Richard G. (skunk) wrote :

I no longer get this bug in the Maverick RC live-CD environment, but OpenGL programs now fail in a different manner. See bug #656100.

Maybe in another two years' time, the Radeon driver will work as well as it did two years ago.

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Alexandru Campeanu (kaemail88) wrote :

I still experience the bug in maverick with all updates

all opengl apps crash with
"drmRadeonCmdBuffer: -22 .."

and these dmesg lines:
[ 210.307120] [drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 1
[ 210.307129] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

Revision history for this message
Oibaf (oibaf) wrote :

@Alexandru:
You'll probably need also this patch:
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=a41ceb1c17af06a17c0d88e987215ef20b93c471
that was committed in 2.6.36-rc5 and should hopefully backported to 2.6.35.x.

Changed in linux (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Daniel Richard G. (skunk) wrote :

Fabio, I'm still getting this very bug in an up-to-date Maverick/amd64 install. I am running with

* Radeon packages from the xorg-edgers PPA at https://launchpad.net/~xorg-edgers/+archive/radeon

* The 2.6.36-020636-generic mainline kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.36-maverick/

I am attaching a RADEON_DEBUG=all log from gltron(1), which crashes quickly and doesn't produce much output. Please let me know what additional information may be useful.

Revision history for this message
Oibaf (oibaf) wrote :

@Daniel:
Probably you are hitting a different bug then or this bug was fixed on ours cards but not on your r200. I'd suggest you to open a new bug report at:
https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa
so the problem can be further analyzed by mesa developers.

Revision history for this message
Daniel Richard G. (skunk) wrote :
Revision history for this message
Alexei (neowall) wrote :

Also still getting this or a similar issue with Ubuntu 10.10 and Radeon X1650 even after switching to a 2.6 mainline kernel build.

$ lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV535 [Radeon X1650 Series] [1002:71c7] (rev 9e)

$ glxgears

Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.274 FPS

That FPS is way too low for the card. Attempting to resize the window instantly produces a crash and the following message:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

$ dmesg | tail
[ 431.214850] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for color buffer 0 (need 400640 have 389120) !
[ 431.214860] [drm:r100_cs_track_check] *ERROR* [drm] color buffer 0 (320 4 0 313)
[ 431.214863] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

Revision history for this message
Daniel Richard G. (skunk) wrote :

@Alexei: Have a look at

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

It looks like that may address the issue with your card, though the only way to try it is to wait for a new kernel with the fix to come along, or patch and build your own.

@Fabio:

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

*thumbs up*

Revision history for this message
Oibaf (oibaf) wrote :

@Alexei: your problem should be fixed with kernel 2.6.36, it's still not fixed in 2.6.35.x.

@Daniel: great!

Oibaf (oibaf)
description: updated
Revision history for this message
Alexei (neowall) wrote :

Fabio, I meant to say "even after switching to a 2.6.36 mainline kernel build". Maybe I installed one without these patches. Do you know if they made it into any .36 builds yet?

Revision history for this message
Oibaf (oibaf) wrote :

It should be fixed with every 2.6.36 mainline kernel, no need to add other patches.

Revision history for this message
Alexei (neowall) wrote :

It doesn't seem http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=commitdiff;h=a41ceb1c17af06a17c0d88e987215ef20b93c471 fixed it. Installed http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.36-rc6-maverick/. I think that's the first .36 release candidate with the patch in it, but I am not sure I am connecting the patch to the mainline release it got merged into correctly. But I previously posted about still having the problem with a more recent kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.36-maverick/. What should I do?

$ glxgears

Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
302 frames in 5.0 seconds = 60.378 FPS

Instantly after resizing:

drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

$ dmesg | tail
[ 255.016584] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for z buffer (need 612864 have 516096) !
[ 255.016594] [drm:r100_cs_track_check] *ERROR* [drm] zbuffer (384 4 0 399)
[ 255.016597] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

$ uname -a
Linux 2.6.36-020636rc6-generic #201009291126 SMP Wed Sep 29 12:42:36 UTC 2010 i686 GNU/Linux

Revision history for this message
Alexei (neowall) wrote :

Could this be another issue? The error is about "z buffer" this time instead of "color buffer".

Revision history for this message
Oibaf (oibaf) wrote :

@Alexei: for the "z buffer" error look here:
https://bugs.freedesktop.org/show_bug.cgi?id=31152

Revision history for this message
Alexei (neowall) wrote :

Thanks, Fabio! I would have to rebuild the entire computer at this point to upgrade the video card since AGP is now PCI, hard disks are SATA, etc., and why should I when everything still works. Or at least worked, up until upgrading to the latest Ubuntu. Do you think older Radeon cards like X1650 will get back to stable operation in 10.10 at some point in the near future?

Revision history for this message
Oibaf (oibaf) wrote :

@Alexei: it should be more stable with the gallium r300 driver (r300g).

Revision history for this message
madbiologist (me-again) wrote :

Alexei: The R300 Gallium3D driver (R300g) will be the default in Ubuntu 11.04 - see http://www.phoronix.com/scan.php?page=news_item&px=ODcyMg

Oibaf (oibaf)
description: updated
summary: - [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse
- or rejected command stream
+ [needs linux-2.6.37-rc1] [Radeon kernel module] drmRadeonCmdBuffer: -22.
+ Kernel failed to parse or rejected command stream
Revision history for this message
madbiologist (me-again) wrote : Re: [needs linux-2.6.37-rc1] [Radeon kernel module] drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream

Sonal Santan and Alexandru Campeanu: You are experiencing the same bug as Daniel Richard G. - see comment #45.

This bug has been fixed upstream in kernel 2.6.37-rc1. A PPA of this kernel should soon be available at http://kernel.ubuntu.com/~kernel-ppa/mainline/

Revision history for this message
Alexandru Campeanu (kaemail88) wrote :

thanks madbiologist, it works fine with the new kernel

Oibaf (oibaf)
summary: - [needs linux-2.6.37-rc1] [Radeon kernel module] drmRadeonCmdBuffer: -22.
+ [needs linux-2.6.36.2] [Radeon kernel module] drmRadeonCmdBuffer: -22.
Kernel failed to parse or rejected command stream
description: updated
Oibaf (oibaf)
description: updated
Revision history for this message
Risto H. Kurppa (risto.kurppa) wrote :

Lenovo T60 w. X1400. Kubuntu 10.10 64-bit, installed 2.6.37-RC2, still getting the same messages as people above.

anne@Spock3:~/ripa$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

anne@Spock3:~/ripa$ uname -a
Linux Spock3 2.6.37-020637rc2-generic #201011160905 SMP Tue Nov 16 09:08:47 UTC 2010 x86_64 GNU/Linux

anne@Spock3:~/ripa$ dmesg|tail
[ 361.957180] [drm:r100_cs_track_check] *ERROR* [drm] Buffer too small for z buffer (need 467200 have 389120) !
[ 361.957186] [drm:r100_cs_track_check] *ERROR* [drm] zbuffer (320 4 0 365)
[ 361.957189] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
anne@Spock3:~/ripa$

Has anyone tried Natty, anything in the kernel there that'd help?

Revision history for this message
Daniel Richard G. (skunk) wrote :

@Risto, I think you're seeing the same bug as Alexei in comment #44. Have a look at

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

Please give the packages in the xorg-edgers/radeon PPA a try, as those should have the fix:

    https://launchpad.net/~xorg-edgers/+archive/radeon

Revision history for this message
Gary Littlemore (gary-littlemore) wrote :

Hi All,

I too have got the 'drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.' bug. I have very little Ubuntu/Linux experience would someone be able to guide me step by step on how to fix this.

Reading the above posts I'm sure I'm running 'xorg-edgers/radeon PPA' as someone has in the post suggested that it might of fixed my problem running trying to get Mixxx to run.

Any help will be greatly appreciated.

Regards

Gary

Changed in linux (Ubuntu):
status: In Progress → Triaged
Revision history for this message
Daniel Richard G. (skunk) wrote :

@Gary,

If you're already using packages from the xorg-edgers/radeon PPA, then the only thing left to do is install a mainline kernel, as the kernel-side fixes to this issue have not yet been backported to the normal kernel shipping with Ubuntu Maverick. Have a look at this page:

    https://wiki.ubuntu.com/Kernel/MainlineBuilds

Kernel version 2.6.37 was released recently, so that's the one you'll likely want to use:

    http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.37-natty/

(it says "natty," but it will work fine on Maverick. This is what I'm running myself.)

Revision history for this message
Gary Littlemore (gary-littlemore) wrote :

@Daniel

Thanks, I've downloaded:

linux-image-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb
linux-headers-2.6.37-020637-generic_2.6.37-020637.201101050908_i386.deb

Is it just a case of installing the .deb files? If not, how do I install 2.6.37?

Revision history for this message
Daniel Richard G. (skunk) wrote :

@Gary, don't forget linux-headers-*_all.deb.

Yes, all you would need to do is install the packages, and then reboot to actually start using the new kernel. You can run "uname -r" at a terminal prompt to double-check that it is active; the command should print out

    2.6.37-020637rc3-generic

in response.

Changed in linux:
importance: High → Unknown
Changed in linux:
importance: Unknown → High
Revision history for this message
Oibaf (oibaf) wrote :

Fixed on natty.

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Andrew Pam (xanni) wrote :

I have the same issue with Ubuntu 11.10 Oneiric Ocelot, kernel 3.0.0, ATI Radeon Mobility M6 LY chipset

Revision history for this message
Andrew Pam (xanni) wrote :

*********************************WARN_ONCE*********************************
File radeon_swtcl.c function r100_swtcl_flush line 325
Rendering was 9 commands larger than predicted size. We might overflow command buffer.
***************************************************************************
drmRadeonCmdBuffer: -22. Kernel failed to parse or rejected command stream. See dmesg for more info.

dmesg says:
[ 7238.042912] [drm:r100_cs_track_texture_check] *ERROR* No texture bound to unit 0
[ 7238.042925] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.