[Regression] after upgrading to Quantal X drivers and kernel /var/log/lightdm/x-0.log file is filled by errors: CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66 CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)

Bug #1178865 reported by Mantas Kriaučiūnas
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xf86-video-ati
Fix Released
Medium
xserver-xorg-video-ati-lts-quantal (Baltix)
Triaged
High
Unassigned
xserver-xorg-video-ati-lts-quantal (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Ubuntu 12.04.2 has big regression with Radeon hardware - after upgrading to Quantal X drivers and kernel /var/log/lightdm/x-0.log file is filled by errors:
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)

These errors appers when I'm wathching videos in Totem or VLC

Because of this bug size of /var/log/lightdm/x-0.log is very big - 130Mb after one day uptime:
# ls -lh /var/log/lightdm/x-0.log
-rw------- 1 root root 134M Geg 11 02:44 x-0.log

This bug should be fixed in latest xf86-video-ati release 7.1.0 (January 31st, 2013) - changelog contains this info:
"radeon: fix ring count in R300PrepareTexturedVideo"
See http://cgit.freedesktop.org/xorg/driver/xf86-video-ati/commit/?id=793e1b0ea579cce7489aee57a95f20384d6ecce8

Other Ubuntu 12.04.2 users also meet with this problem, see:
http://www.opennet.ru/openforum/vsluhforumID3/88687.html#94

I will try to use updated drivers and dri from ppa:makson96/fglrx (https://launchpad.net/~makson96/+archive/fglrx ) or
or from "Updated and Optimized Open Graphics Drivers" PPA (https://launchpad.net/~oibaf/+archive/graphics-drivers/ ) and will report if updated drivers doesn't have this problem.

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

Created attachment 40021
kdm.log.gz

After an hour or so (maybe less) I'm getting /var/log/kdm.log full of errors:
CS section size missmatch start at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2184) 66 vs 62
CS section end at (../../src/radeon_textured_videofuncs.c,R300PrepareTexturedVideoCP,2418)

and Xorg process CPU usage gets to near 100% even or P4 with HT so KDE desktop gets almost unresponsible (wating for few seconds for almost every operation).

At system boot everything is OK - Xorg CPU usage for few percent sometimes even less, kdm.log doesn't have such errors but after some time using KDE desktop (no matter if there are KWin effects or not) the problem as described above occurs.

The problem occurs from at least commits from 2010-10-27 (I'm testing r300g from xorg-edgers/radeon ppa). I haven't noticed this problem before but before that date I've used Kubuntu 10.10 + r300g from xorg-edgers/radeon ppa booted only from pendrive for hour, maybe sometimes some more time between reboots and now I use the same configuration installed on hard disk.

libgl1-mesa-dri and glx: 7.10.0~git20101101+gallium.ad00a92e-0ubuntu0tormod
and 7.10.0~git20101027+gallium.3acc8265-0ubuntu0tormod before.

Kernel: stock *buntu 10.10 2.6.35-22-generic
Xorg: 1.9.0-0ubuntu7
libdrm2: 2.4.21-1ubuntu2.1
libdrm-radeon1: 2.4.21-1ubuntu2.1

CPU: Intel Pentium 4 32bit with HT
Graphic card: Radeon 9600 AGP (RV350) 256MB
OS: Kubuntu 10.10

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

Created attachment 40022
dmesg

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

Created attachment 40023
Xorg.0.log

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

And the kernel is stock *buntu but with one module (drm_kms_helper) patched for parameter to disable poll with kernel parameter:
drm_kms_helper.poll=0

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

This is an X driver XVideo bug.

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

Created attachment 40038
Possible fix

Does this patch fix the problem?

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

(In reply to comment #5)
> Created an attachment (id=40038) [details]
> Possible fix
>
> Does this patch fix the problem?

Thanks Michel!

So far so good. I've tried to reproduce this error by using watching analog TV with video output through Xv, enabling/disabling KWin desktop effects, moving and resizing TV window (even with transparency), using web browser with flash etc... on a xserver-xorg-video-ati driver (the same version as before but recompiled with yours patch).
I think the problem is gone now - it's mostly visible by looking at CPU temperature graph (back to normal 55-58 degrees in Celcius scale, with this error it didn't go lower than 60, mostly 65-69 degrees) and no more errors in /var/log/kdm.log.

The version of xserver-xorg-video-ati and -radeon I've had was:
6.13.2+git20101020.51f26a7f-0ubuntu0tormod

Revision history for this message
In , Tomasz Czapiewski (xeros) wrote :

After almost three hours of testing the problem did not appeared anymore with patched driver, so the patch indeed fixed the problem.

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

Fix pushed as commit 0c2834e67df6e143a7d15f373faaddca1dda6b18, thanks for testing.

Revision history for this message
In , pierre (pierre-trombetta) wrote :

even if this bug seems solved and closed for more than a year, since I updated to last x11-drivers/xf86-video-ati-7.0.0, I have hundered of thousand of lines like that in my logs :
CS section end at (/var/tmp/portage/x11-drivers/xf86-video-ati-7.0.0/work/xf86-video-ati-7.0.0/src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,2147)
CS section size missmatch start at (/var/tmp/portage/x11-drivers/xf86-video-ati-7.0.0/work/xf86-video-ati-7.0.0/src/radeon_textured_videofuncs.c,R300PrepareTexturedVideo,1689) 33 vs 66

I'm using gentoo on a amd64 arch. I know it's not the same arch the bug was opened for, but the error messages look really alike...

let me know if you need more details on my setup, or if I have to open a new bug

regards
pierre

Revision history for this message
In , agd5f (agd5f) wrote :

Created attachment 71087
fix CS count

The attached patch should fix the issue.

Revision history for this message
In , pierre (pierre-trombetta) wrote :

it does
thx

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :
Changed in xserver-xorg-video-ati-lts-quantal (Baltix):
status: New → Triaged
importance: Undecided → High
Changed in xf86-video-ati:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

This Ubuntu 12.04.2 Radeon drivers bug is fixed in updated xserver-xorg-video-radeon-lts-quantal version 2:7.1.0-makson1~precise1 drivers (xserver-xorg-video-radeon-lts-quantal 2:7.1.0-makson1 package depends on updated xserver-xorg-core-lts-quantal version 1.12.4+git20121105-makson1) from ppa:makson96/fglrx (https://launchpad.net/~makson96/+archive/fglrx )
I'm attaching correctly working driver package ppa:makson96/fglrx (https://launchpad.net/~makson96/+archive/fglrx ) to this bugreport.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-ati-lts-quantal (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

not going to backport to lts-quantal, fixed in main distro since

Changed in xserver-xorg-video-ati-lts-quantal (Ubuntu):
status: Confirmed → Won't Fix
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.