Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20757 - [kernel26] Upgrading kernel 2.6.34 -> 2.6.35 breaks radeon KMS
Attached to Project:
Arch Linux
Opened by DoDo (DoDoENT) - Monday, 06 September 2010, 20:52 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 19 December 2010, 13:47 GMT
Opened by DoDo (DoDoENT) - Monday, 06 September 2010, 20:52 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 19 December 2010, 13:47 GMT
|
DetailsDescription:
Today I've upgraded my Arch, and with upgrades came kernel 2.6.35. After reboot there were no 3D kwin desktop effects available anymore. I ran glxinfo and found out that direct rendering is enabled. Then I ran glxgears and it worked at only 56 FPS, and before upgrade it worked at more than 1000 FPS. Then I booted with nomodeset kernel option and 3d effects worked again, but with flickering (as was expected, because without KMS there is no DRI2). Does anyone else have such problem? My graphics card is ATI Mobility Radeon X1600 (RV530), and driver is xf86-video-ati 6.13.1-1. Downgrading to kernel 2.6.34 solved the problem. I've put now packages kernel26 and kernel26-headers to IgnorePkg list in pacman.conf until the problem is fixed. Steps to reproduce: get a laptop with Mobility Radeon X1600 or similar graphics card; install xf86-video-ati driver of version 6.13.1-1 and kernel 2.6.35.4-1. glxinfo should report enabled direct rendering, but the rendering will be very slow and unusable even for desktop effects. Workaround: downgrade to kernel 2.6.34.1-1 |
This task depends upon
If I add kernel options "radeon.dynclks=1 radeon.dynpm=1" (what is default for me), KMS is not even used (and the non-KMS glxgears framerate is about 4 times less than on the 2.6.34 without KMS). Without these options, KMS is used, but still glxgears frame rate is slow.
What is your screen refresh rate? I bet it's 60Hz. Does glxgears say that framerate is synchronized to vsync? In this case the FPS you are getting are normal. See more here: https://bbs.archlinux.org/viewtopic.php?id=99554.
Can you post the output of glxinfo | grep -i opengl?
How does KWin compositing work: does it use OpenGl, like compiz, or mostly software rendering?
E.g. for me xfwm4 (software) compositing works much faster on geforce 4 mx440 (=geforce 2 something) with nouveau (no opengl), than on the same card using nvidia-96xx and on radeon xpress 200m (a better card). Two latter drivers use full 3D accel. Also, FPS(nvidia-96xx) >> FPS(nouveau) > FPS(ati). So what?
Yes, you're right: my screen refresh rate is 60 Hz, and glxgears says that framerate is synchronized to vsync.
But:
*) with 2.6.34 glxgears reports the same, and still has 1000+ FPS. How's that then possible?
*) with 2.6.34 kwin composing with OpenGL works fine, and with 2.6.35 KDE reports that it has disabled compositing because the rendering was too slow (I have no games installed on my laptop so I haven't tried with games)
*) no matter of using 2.6.34 or 2.6.35, glxinfo | grep -i opengl reports:
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (RV530 71C5) 20090101 TCL DRI2
OpenGL version string: 1.5 Mesa 7.8.2
Since my desktop PC with Nvidia graphics is not affected, I'd say it's a regression bug in xf86-video-ati driver (and link you gave me suggests that the same happens also with xf86-video-intel: then the problem has to be in some component that is common to both ati and intel driver)
Good question. My understanding is that glxgears measures the rate, at which it can repaint the screen. If 60 times/sec is the hw/driver limit, what is the meaning of 1000+ FPS? Btw, I am also getting (RV482) ~200 FPS w/o KMS, however, w/ KMS it is ~59.
>with 2.6.34 kwin composing with OpenGL works fine, and with 2.6.35 KDE reports that it has disabled >compositing because the rendering was too slow
Is there any way to override this (I don't have KDE)? Is this
https://bbs.archlinux.org/viewtopic.php?pid=815841 the same issue?
>OpenGL renderer string: Mesa DRI R300 (RV530 71C5) 20090101 TCL DRI2
At least driver works (I assume there are no errors in kernel.log). As a side note you don't have AMD cpu do you (I just noticed that in the Mesa line there is no MMX/3DNow)?
You can override it, but the desktop responsiveness is slow then, because the rendering is slow. You see: general 3D acceleration (composition or not) is slow with 2.6.35 - few times slower than with 2.6.34.
> My understanding is that glxgears measures the rate, at which it can repaint the screen.
I think it measures the how many times it can draw the gears in one second, and not how many times it can repaint the screen. If the latter were true, then glxgears would report ~60 FPS for any graphics card and any driver, but as I said: with 2.6.34 my driver renders glxgears at 1000+ FPS, in the times of using fglrx with my laptop, glxgears rendered 3000+ FPS (FLOSS driver is still much slower than catalyst driver) and my desktop PC with powerful Nvidia graphics renders 15000+ FPS on glxgears on LCD monitor with 60 Hz refresh rate.
> At least driver works (I assume there are no errors in kernel.log). As a side note you don't have AMD cpu do you (I just noticed that in the Mesa line there is no MMX/3DNow)?
I've seen no errors in kernel.log and I'm using Intel Core 2 Duo processor (although while using ubuntu there was SSE in Mesa line and here on Arch there isn't - interesting...).
As a side note, VERY loosely speaking, think of 60Hz as a max rate, at which current can pass through the screen to light those pixels. As an experiment you can run some heavy 3D game, like MS Flight Simulator X or Call of Duty 4, at max resolution -- if your "powerful" nvidia gives 15-20FPS, it would mean you have a decent card. The only situation, when you should pay attention to glxgears, is when FPS << vsync (e.g. 30 FPS vs 60 Hz on a desktop). Also, if you disable KMS + (via xorg.conf) AIGLX + DRI, I bet you will see an increase in FPS, which is clearly meaningless, since you have no support of OpenGL now.
No. I don't use xorg.conf at all, because Xserver 1.8 correctly sets up all parameters I need (at least in kernel version <= 2.6.34 :P )
> Also, if you disable KMS + (via xorg.conf) AIGLX + DRI, I bet you will see an increase in FPS, which is clearly meaningless, since you have no support of OpenGL now.
OK, OK, enough about glxgears - it isn't a real benchmark after all. The real question is: why kwin composition doesn't work with 2.6.35 and works with 2.6.34? It's obviously a bug in 2.6.35...
> ... because Xserver 1.8 correctly sets up all parameters...
Since when?
For me the broken vsync doesn't show any effect. Xfce 2D desktop is still fast enough even with its internal compositor. But I have 3d issues with badly broken textures since a while in all 3D games (e.g.supertuxcart). Assigning also to myself beeing responsible for the Ati stack.
Some comments though:
(1) vsync isn't broken
It works (perhaps finally) as it should, because FPS above screen refresh rate are being cut off. This is "random" without vsync and "in-phase" (controlled by CPU/GPU) with vsync. Thus, in the first case you may get blurred picture.
(2)Should FPS affect XFCE compositing (it does not use OpenGL)? I have the same card as you, and glxgears are broken (no gears) with XFCE compositor :( Don't know when it started, however...
(3) I still remain confused as of which bugzilla this issue belongs to? Kernel of freedesktop? Or they are the same?
How's the state for the initial reporter now?
P.S. Sorry for being a noob, but I've always reported bugs to the official tracker of the distribution I've been using. How can I file an upstream bug? On which tracker should I report the issue?
For more help ask in the #radeon irc channel if it should finally be reported to mesa bugs http://www.mesa3d.org/bugs.html or to the kernel bugtracker to the drm kernel module.
I'll just keep updating my laptop with arch's regular updates and hope this will be fixed some day, but I really, really don't have time to rebuild mesa and ati driver just to make few tests. Sorry about that.
Btw. the Gallium KDE problem I mentioned earlier is discussed here: http://www.phoronix.com/forums/showthread.php?t=25907#post145822