direct rendering doesn't work

Bug #65605 reported by Børre Gaup
4
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xserver-xorg-video-ati

All programs using direct rendering give this message:
drmCommandWrite: -22
drmRadeonCmdBuffer: -22 (exiting)

These errors are found in dmesg | grep drm:
[17179662.816000] [drm] Initialized drm 1.0.1 20051102
[17179662.836000] [drm] Initialized radeon 1.25.0 20060524 on minor 0
[17179664.760000] [drm] Setting GART location based on new memory map
[17179664.760000] [drm] Loading R200 Microcode
[17179664.760000] [drm] writeback test succeeded in 1 usecs
[17179761.600000] [drm:radeon_check_and_fixup_packets] *ERROR* Invalid depth buffer offset
[17179761.600000] [drm:radeon_emit_packets] *ERROR* Packet verification failed
[17179761.600000] [drm:radeon_cp_cmdbuf] *ERROR* radeon_emit_packets failed
[17179784.092000] [drm:radeon_check_and_fixup_packets] *ERROR* Invalid depth buffer offset
[17179784.092000] [drm:radeon_emit_packets] *ERROR* Packet verification failed
[17179784.092000] [drm:radeon_cp_cmdbuf] *ERROR* radeon_emit_packets failed

Revision history for this message
Børre Gaup (boerre) wrote :

Here is the output of glxinfo with these environment variables set:
export LIBGL_DEBUG=verbose
export MESA_DEBUG=verbose

Revision history for this message
John Vivirito (gnomefreak) wrote :

Thank you for your bug report. Can you please attach your /var/log/Xorg.0.log and /etc/X11/xorg.conf files.

Changed in xserver-xorg-video-ati:
status: Unconfirmed → Needs Info
Revision history for this message
Børre Gaup (boerre) wrote :

I also tried loading drm with debug=1 the other day. Here is the result.

Revision history for this message
Børre Gaup (boerre) wrote :
Revision history for this message
Børre Gaup (boerre) wrote :
Changed in xserver-xorg-video-ati:
status: Needs Info → Unconfirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

Please leave it as needs info. This is one way to keep track of bugs that are being triaged. can you attach the output of lspci. also is this an onboard video card or a card you added?

Changed in xserver-xorg-video-ati:
status: Unconfirmed → Needs Info
Revision history for this message
Børre Gaup (boerre) wrote :

This is a card that is put into the AGP slot of my motherboard.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Confirmed. Interesting, since this is happening to me on PCI-E X800 card, and you have a card from a totally different series. I have failed a bug about this upstream: https://bugs.freedesktop.org/show_bug.cgi?id=7697

For me changing r300_cmdbuf.c "solves" the problem (ie. does not do checking anymore, which it for some reason fails in doing but works when bypassed), but that file should not even be used in your case, so it might or might not be a bug that is similar.

If you want to dwell into the problem, I'd suggest trying to find where in the kernel radeon drm driver the error happens. See linux-core and shared-core -directories in http://gitweb.freedesktop.org/?p=mesa/drm.git;a=summary , compilable with "make" inside the linux-core directory - then copy drm.ko and radeon.ko to /lib/modules/.../kernel/drivers/char/drm -directory and either reboot or shutdown X (/etc/init.d/gdm stop) and rmmod radeon && rmmod drm && modprobe radeon.

Changed in xserver-xorg-video-ati:
status: Needs Info → Confirmed
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Your specific case should be fixed in Linux kernel 2.6.19, which is included in Ubuntu 7.04, according to another (fixed) bug report https://bugs.freedesktop.org/show_bug.cgi?id=7595

If you want, you may check the fact using the new _non-final_ snapshot of Ubuntu 7.04 development, "Herd 1" at http://cdimage.ubuntu.com/releases/feisty/herd-1/

Revision history for this message
Børre Gaup (boerre) wrote :

I installed feisty, and direct rendering did indeed work. I am now a happy Beryl user :) . Thanks to everybody involved in fixing this bug.

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Good to hear. As of today, also the similar bug with my X800 got fixed in Mesa DRM's development tree. Not in Ubuntu yet, but I'd guess it has chances to get in kernel 2.6.20 which will be in feisty final. Anyway, this bug report was about your R200-related problem.

Changed in xserver-xorg-video-ati:
status: Confirmed → Fix Released
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Confirming that 2.6.20-rc2 includes the fix also for Radeon 9500 - X850.

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

Other bug subscribers

Remote bug watches

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