Bug 5902 - i915: ppracer fails with DRM_I830_CMDBUFFER: -22
Summary: i915: ppracer fails with DRM_I830_CMDBUFFER: -22
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: DRI git
Hardware: Other other
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 15:07 UTC by Bernhard Rosenkraenzer
Modified: 2006-02-17 09:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Add extra error debugging (925 bytes, patch)
2006-02-17 16:18 UTC, Alan Hourihane
no flags Details | Splinter Review

Description Bernhard Rosenkraenzer 2006-02-16 15:07:24 UTC
Finally got i915 DRI to work with current CVS stuff -- most applications are 
running fine and with 3D acceleration now, even complicated stuff like nexuiz 
works.

However, ppracer (tuxracer fork - http://projects.planetpenguin.de/racer/) 
crashes on startup, saying

DRM_I830_CMDBUFFER: -22
Comment 1 Alan Hourihane 2006-02-16 16:01:46 UTC
what does 'dmesg' say ?
Comment 2 Bernhard Rosenkraenzer 2006-02-16 23:27:17 UTC
[drm:i915_cmdbffer] *ERROR* i915_dispatch_cmdbuffer failed
Comment 3 Alan Hourihane 2006-02-17 16:18:47 UTC
Created attachment 4641 [details] [review]
Add extra error debugging

Can you recompile the DRM CVS with this patch so that it has some extra
information via 'dmesg' to determine the problem area.
Comment 4 Eric Anholt 2006-02-17 19:02:25 UTC
On my i945G, I get the same error with ppracer, and also the Mesa "reflect" demo
(though glxgears, and foobillard (modulo a hang) worked).  With similar
debugging, not as complete, "too many dwords" wasn't hit but validate_cmd failed
with sz=0.

Code was modular as of ~1 week ago (since xf86-video-i810 is currently broken),
fresh Mesa CVS and DRM CVS.
Comment 5 Alan Hourihane 2006-02-18 04:08:24 UTC
Fixed in CVS.

A stencil mask wasn't being masked correctly for the register upload.
Comment 6 Alan Hourihane 2006-02-18 04:08:56 UTC
To update, it's the Mesa CVS you need to grab for the fix.


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.