View Full Version : Ubuntu packages for radeon-rewrite
tormod
05-06-2009, 02:55 PM
So according to http://airlied.livejournal.com/66515.html the mesa radeon-rewrite branch will be merged to master in a few weeks. It can probably need some testing, and I guess many people are (like me) curious to test it out. To simplify things for those on Ubuntu, I have set up a package repository at https://launchpad.net/~xorg-edgers/+archive/radeon
Tormod
bridgman
05-06-2009, 04:59 PM
Thank you. Excellent timing :D
fermulator
05-06-2009, 05:15 PM
Cool!
I tried these just now tormod. How can I file bugs?
Running Radeon X1950 (r570), compiz enabled, dual head. Any compiz effect (sometimes even on login) would crash X and put me back to the login screen.
suokko
05-06-2009, 05:34 PM
Cool!
I tried these just now tormod. How can I file bugs?
Running Radeon X1950 (r570), compiz enabled, dual head. Any compiz effect (sometimes even on login) would crash X and put me back to the login screen.
Problem might be that you need new ddx (xorg-video-ati) and drm to have it working stable in ubuntu jaunty.
fermulator
05-06-2009, 05:47 PM
Problem might be that you need new ddx (xorg-video-ati) and drm to have it working stable in ubuntu jaunty.
Ah, and of course the latest isn't upstream yet. Is there anywhere I can read about this sort of stuff? I'm new to the "inner workings" of these things, but would like to contribute.
tormod
05-06-2009, 06:06 PM
Cool!
I tried these just now tormod. How can I file bugs?
I think I wrote that on the PPA page ;)
Running Radeon X1950 (r570), compiz enabled, dual head. Any compiz effect (sometimes even on login) would crash X and put me back to the login screen.
I have a similar problem, check your /var/log/Xorg.0.log.old and see if it is the same backtrace as in http://bugs.freedesktop.org/show_bug.cgi?id=21582
As for suokko's comment, did you also get -ati/-radeon driver from my PPA, karmic kernel and libdrm2 from xorg-edgers as suggested on the PPA page?
bridgman
05-06-2009, 06:55 PM
Don't forget that radeon-rewrite is designed to operate in two different environments :
- with existing (aka legacy) drm and X driver, it uses old-style fixed memory areas and user-space memory management
- with a drm supporting KMS + GEM/TTM and a KMS-compatible X driver, it makes full use of the drm's memory manager
The cool thing about radeon-rewrite is that it can do *both* of these while using the same 3D code, so most bugs don't have to be fixed in two places.
If you are running a new drm and X driver but force modesetting off at boot time, the drm driver disables GEM/TTM and then both radeon-rewrite (mesa) and the X driver should fall back to legacy operation.
I'm not sure about the bug reporting status either, unfortunately.
Nimbrant
05-06-2009, 11:14 PM
I also seem to get randomly kicked out to gdm login.
I am using jaunty with 2.6.29.1 kernel and ati drivers from from tormod volden ppa.
dmesg is gives a bunch of errors like:
[ 2142.332570] [drm:drm_unlocked_ioctl] *ERROR* ret = 57 -4
and
[ 2136.375987] Too big adjustment 32
I'm not sure which drm i should use with the radeon-rewrite packages.
Do i need to compile the modesetting branch from git?
i would like to try kms + gem if they are somewhat stable but im not sure what i need to do to enable it.
poofyyoda
05-06-2009, 11:30 PM
Awesome.
When it doesn't crash X, everything is amazingly fast.
The crashes seem to be when direct rendering is enabled. When disabled, everything works sweet and stable as.
I pulled in all the recommended packages (kernel, mesa stuff, drm, radeon driver).
tormod
05-07-2009, 02:37 AM
Since radeon-rewrite is supposed to replace the stock mesa, it should work as well with your current setups as the old mesa. Otherwise it is a bug. Newer kernel, driver, drm is not necessary, but is suggested for testing since some bugs might have been fixed there.
But in the first place, just installing these mesa-packages should be enough.
suokko
05-07-2009, 04:52 AM
Since radeon-rewrite is supposed to replace the stock mesa, it should work as well with your current setups as the old mesa. Otherwise it is a bug. Newer kernel, driver, drm is not necessary, but is suggested for testing since some bugs might have been fixed there.
But in the first place, just installing these mesa-packages should be enough.
For me Jaunty packages for x1400 card are way too unstable so they are no go. But self compiled git versions run stable with mesa 7.4 git version so maybe it would work well with radeon-rewrite but I haven't had chance test yet. (That r500 card isn't in my machine so I can only sometimes use it for testing)
fermulator
05-07-2009, 02:02 PM
Hey tormod
So on your PPA, it states:
You might want to combine them with:
- the latest -ati/-radeon packages from https://launchpad.net/~tormodvolden/+archive/ppa
- Karmic kernel from https://launchpad.net/ubuntu/+source/linux/
- other packages from https://launchpad.net/~xorg-edgers/+archive/ppa
The latest ati/radeon packages from there make sense. If you're r5xx or below, grab the tormod ATI, if you're above, grab the radeonHD tormod package.
The Karmic kernel also makes sense.
But what do you mean by "other packages" from xorg-edgers. Which packages from there are we to pull for testing?
Thanks!
poofyyoda
05-07-2009, 05:18 PM
Which packages from there are we to pull for testing?
Thanks!
Just the latest DRM snapshot.
Stormking
05-08-2009, 02:59 AM
Just the latest DRM snapshot.
And which packages from that? There seem to be only libdrm versions for Intel und Nouveau.
tormod
05-08-2009, 03:04 AM
And which packages from that? There seem to be only libdrm versions for Intel und Nouveau.
libdrm2. I changed the PPA page a bit to avoid confusion.
Stormking
05-08-2009, 07:37 AM
libdrm2. I changed the PPA page a bit to avoid confusion.
Okay, so I install radeon-rewrite, the X.org-Driver and libdrm2. Anything else? Config files to modify? Is the new kernel necessary? And what can I expect, more speed?
bridgman
05-08-2009, 11:06 AM
If you're running with a drm and X driver which support KMS and memory management then you'll get DRI2 and Redirected Direct Rendering, ie your 3D apps will be properly composited and won't flicker any more. You should also get early FBO support.
If you're running with regular kernel and xorg driver then you're basically getting the refactored 3D code which is going to go into master once airlied gets back from vacation. Probably not fundamentally faster but the devs have started to push complicated fixes into radeon-rewrite rather than the existing master tree so you'll pick up some fixes and I believe a resolution for the performance regression on non-TCL 3xx GPUs (Xpress 200, X1250 etc..).
Stormking
05-08-2009, 11:59 AM
If you're running with a drm and X driver which support KMS and memory management then you'll get DRI2 and Redirected Direct Rendering, ie your 3D apps will be properly composited and won't flicker any more. You should also get early FBO support.
If you're running with regular kernel and xorg driver then you're basically getting the refactored 3D code which is going to go into master once airlied gets back from vacation. Probably not fundamentally faster but the devs have started to push complicated fixes into radeon-rewrite rather than the existing master tree so you'll pick up some fixes and I believe a resolution for the performance regression on non-TCL 3xx GPUs (Xpress 200, X1250 etc..).
Right now, I am using the radeon-rewrite Mesa with the regular Jaunty kernel and the latest X.org driver from Tormod Volden's PPA.
I'd like to try out the latest drm kernel module because it was mentioned that many user had far less lockups/freezes with that. I'm not afraid to try out DRI2 and so on. But it would be great to be able to "upgrade" step by step.
So the "karmic" kernel gives me the latest drm, I guess. And that can be combined with both old DRI and DRI2? And the radeon-rewrite-branch of Mesa will also work with both? As does the X.org driver?
suokko
05-08-2009, 12:41 PM
Right now, I am using the radeon-rewrite Mesa with the regular Jaunty kernel and the latest X.org driver from Tormod Volden's PPA.
I'd like to try out the latest drm kernel module because it was mentioned that many user had far less lockups/freezes with that. I'm not afraid to try out DRI2 and so on. But it would be great to be able to "upgrade" step by step.
So the "karmic" kernel gives me the latest drm, I guess. And that can be combined with both old DRI and DRI2? And the radeon-rewrite-branch of Mesa will also work with both? As does the X.org driver?
Karmic's kernel (when did the releases of Ubuntu turn persons?) doesn't support KMS or DRI2. So you have to compile kernel your self if you want KMS support.
Almindor
05-09-2009, 03:18 PM
I've used all the additional stuff (compiled the kernel 2.6.30-4.5 from that karmic link, basically didn't touch the config tho).
Everything works fine, except e.g: glxgears. I get them going and my FPS is "good" (for the OSS driver) but when I move the window the old gl contents remain as if an image (compiz effects are on in gnome).
Also, how can I know if KMS and DRI2 are used? Do I need a different kernel source to build from?
suokko
05-10-2009, 04:30 AM
Everything works fine, except e.g: glxgears. I get them going and my FPS is "good" (for the OSS driver) but when I move the window the old gl contents remain as if an image (compiz effects are on in gnome).
You don't have KMS/DRI2 enabled so you don't get benefities of redirected rendering.
Also, how can I know if KMS and DRI2 are used? Do I need a different kernel source to build from?
You have to change 1 or 2 settings in your config to enable KMS. You can found it from drm extra settings for radeon module. But to get it realy work you will need to compile development version of kernel from http://jglisse.livejournal.com/1822.html KMS for radeon is still under heavy development so Ubuntu Karmic won't have it enabled in kernel.
Extreme Coder
05-16-2009, 12:02 AM
Sorry if this is obvious but I have to ask:
My laptop has the (painfully slow) 200M.
I have Jaunty.
Which packages do I need to install from the 3 PPAs listed if I don't want to change the kernel? And what about the packages if I do?
Thanks!
agd5f
05-16-2009, 12:02 PM
Sorry if this is obvious but I have to ask:
My laptop has the (painfully slow) 200M.
I have Jaunty.
Which packages do I need to install from the 3 PPAs listed if I don't want to change the kernel? And what about the packages if I do?
Thanks!
You should just need the mesa package for the radeon-rewrite branch of mesa.
rob2687
05-16-2009, 05:22 PM
I get lots of artefacts all over the place. The performance is quite nice though.
TBH the performance of the old drivers makes me nauseous with all that tearing, lag and what not. The interface just doesn't feel right like that.
bridgman
05-16-2009, 07:26 PM
I looked through your previous posts but there's not enough context to help much. Which GPU, X driver, DRM, distro etc ? When do the artifacts appear, ie what operations cause them to appear ? Are they specific to the area of the screen being drawn or all over the screen ? Do they accumulate over time ? Do they get over-written over time ? etc...
rob2687
05-16-2009, 08:05 PM
The artifacts appear all over the place in GDM and X. The console has no artifacts.
GPU: x1900XTX
Distro: Ubuntu 9.04
I followed the instructions posted by JGlisse. (http://jglisse.livejournal.com/1822.html)
http://img526.imageshack.us/img526/4382/screenshot1c.th.jpg (http://img526.imageshack.us/img526/4382/screenshot1c.jpg)
Extreme Coder
05-17-2009, 03:53 AM
You should just need the mesa package for the radeon-rewrite branch of mesa.
I dont need an updated libdrm(2?) or -ati driver?
tormod
05-17-2009, 10:06 AM
I dont need an updated libdrm(2?) or -ati driver?
If you want to test the radeon-rewrite branch, you just need to install the packages from the radeon-rewrite PPA. But you can also update the driver and libdrm and what not from the other repositories if you want.
Leaving the rest as it is and just replacing the mesa packages is good for checking for regressions in radeon-rewrite. However the developers often would like you to run the latest versions of everything in case some issues are fixed already other places.
BTW, none of the mentioned PPAs depend on a newer kernel, but I would recommend using the latest Karmic kernel. It installs next to the old one, so there is no problem going back or switching between them.
Extreme Coder
05-17-2009, 05:29 PM
Hmm..
I get a drmCommand -22 error (I cannot remember the exact name :( )
Any ideas?
tormod
05-18-2009, 02:29 AM
Hmm..
I get a drmCommand -22 error (I cannot remember the exact name :( )
Any ideas?
Probably "drmRadeonCmdBuffer: -22", and caused by a bug (http://bugs.freedesktop.org/show_bug.cgi?id=21776) recently introduced in the code. It should be worked around in yesterday's -3 packages.
Edit: This has now been fixed.
mitchellvc
05-18-2009, 07:26 PM
Hi, just installed latest ati/radeon driver, libdrm2, Karmic kernel (linux generic 2.6.30-5 amd64 package from karmic repos, didn't compile) and radeon-rewrite from the ppa's. But after all of this, there are still problems. The problem I used to have with the stable ati/radeon driver is that when compiz is enabled and glxgears running, when I move the glxgears window, a bitmap image-like (like a photograph) stands in the last place glxgears window was, and it remains there until some other window or object is rendered on the screen in that same place. In playing videos there is a improvement in performance but for example playing in zsnes, it slows down every 30 secs aproximately, but is still playable (it wasn't playable with the stable release), but fglrx 8.593 has by far better performance being used on intrepid.
I use ubuntu jaunty, on a Toshiba a215 laptop, Video ATI Radeon x1200 (RS690). 2 Gb Ram.
An offtopic question: Is planned to give TV Out support for this chipset in the near future? (with this latest driver I still don't have TV Out (S-Video) support):(
bridgman
05-18-2009, 07:56 PM
AFAIK if you're running the Karmic kernel and the latest radeon driver from master you're going to be running the radeon-rewrite tree in "legacy" mode (ie no DRI2, KMS or GEM/TTM). In that case you're really testing to look for breakage and regressions, although there are some bug fixes there as well.
If you want different behaviour under Compiz, for example, you need a drm with KMS and GEM/TTM *and* a different radeon driver which has been modified to work with KMS and GEM/TTM. I believe the packages tormod linked to are the "latest and greatest" for the current code paths, not KMS/GEM/TTM/DRI2/etc...
Are you expecting to test the "current drm" code paths of radeon-rewrite looking for regressions and bug fixes or are you trying for the "brave new world" with DRI2, KMS etc... ? Tormod was suggesting that the first option be tested, and that's what I think you are doing now.
mitchellvc
05-19-2009, 12:54 AM
AFAIK if you're running the Karmic kernel and the latest radeon driver from master you're going to be running the radeon-rewrite tree in "legacy" mode (ie no DRI2, KMS or GEM/TTM).
Ok, but can someone give some clues about how to enable KMS on the karmic kernel, I don't know if this is a silly question but I don't know how to do it (I was trying to compile but never found the KMS option in the karmic kernel source) where is it?, if it exists of course... mmm or I have to regenerate the initramfs, but how?
suokko
05-19-2009, 04:24 AM
Ok, but can someone give some clues about how to enable KMS on the karmic kernel, I don't know if this is a silly question but I don't know how to do it (I was trying to compile but never found the KMS option in the karmic kernel source) where is it?, if it exists of course... mmm or I have to regenerate the initramfs, but how?
KMS for radeon isn't in 2.6.30. It will hopefully make to 2.6.31 if not much problem coming before commit window closes for it. If you want KMs forradeon you have 3 options. Try to use kernel/libdrm from Fedora 11, http://jglisse.livejournal.com/ or a bit older code from arlied's git repository.
Extreme Coder
05-19-2009, 08:27 PM
Thanks, latest packages work without no error.
Anyway, I know get ~900 in glxgears, I added the 3 PPAs, and updated to the latest libdrm, mesa, xorg.
But there are slight screen artifacts, should I file a bug report?
also, are there any xorg.conf options to enable?
Sarvatt
05-22-2009, 09:50 PM
I just merged radeon-rewrite with karmic's mesa 7.6 on xorg-edgers as well :)
val-gaav
05-23-2009, 04:30 AM
Since so many ubuntu devs are here I'll ask a question :D
AFAIK chances are quite big that kms/gem for radeon will enter the 2.6.31 kernel....
If this happens will ubuntu consider the move from 2.6.30 to 2.6.31 for karmic to bring this goodness to radeon users ? :)
Sarvatt
05-23-2009, 09:05 AM
They're going to discuss that at UDS, we'll find out in the next few weeks what kernel they decide on. Hopefully they pull an intrepid instead of locking onto a 4 month old kernel again like in jaunty, especially with so much graphic development being moved into the kernel.
https://wiki.ubuntu.com/specs/KernelKarmicKMS
It's 5 months until Ubuntu 9.10 and Linux 2.6.30 is close to release already. I do not see a reason not to include Linux 2.6.31. My only fear is what GEM/KMS/DRI2 is too late for Linux 2.6.31 development window... let's hope that it'll make it!
alarionfirn
05-23-2009, 01:57 PM
The artifacts appear all over the place in GDM and X. The console has no artifacts.
GPU: x1900XTX
Distro: Ubuntu 9.04
I followed the instructions posted by JGlisse. (http://jglisse.livejournal.com/1822.html)
http://img526.imageshack.us/img526/4382/screenshot1c.th.jpg (http://img526.imageshack.us/img526/4382/screenshot1c.jpg)
Where can I get that wallpaper? :)
Almindor
05-26-2009, 07:08 AM
libglu1-mesa-dev package seems to be out of sync in the repositories posted. It seems to depend on a different version of libglu1-mesa package and it blocks a whole bucket of dev libs for me (namely SDL stuff).
Sarvatt
05-26-2009, 07:16 AM
libglu1-mesa-dev package seems to be out of sync in the repositories posted. It seems to depend on a different version of libglu1-mesa package and it blocks a whole bucket of dev libs for me (namely SDL stuff).
Yeah tormod isnt packaging the dev headers with it, its on the notes at the top of the page and in the changelog for mesa. I stopped merging radeon-rewrite with the main mesa on xorg-edgers because it's got too many problems right now. You can use the auto-xorg-git script to easily build your own radeon-rewrite with everything though, just use an invocation like
./auto-xorg-git -H hooks-karmic -g -d origin/ubuntu -t "~" -b radeon-rewrite -p mesa
or
./auto-xorg-git -H hooks -g -d origin/ubuntu -t "~" -b radeon-rewrite -p mesa
for jaunty. no manual changes needed for mesa right now as we've got the scripts set up right for current builds.
nhaehnle
05-26-2009, 05:06 PM
I stopped merging radeon-rewrite with the main mesa on xorg-edgers because it's got too many problems right now.
What are the most important issues according to you?
Sarvatt
05-26-2009, 06:12 PM
Well 2 people sent me email not long after I merged it saying compiz was unusable after switching to it. tormod has a bug report open for one of his problems with it here -
https://bugs.freedesktop.org/show_bug.cgi?id=21582
there's a seperate PPA for radeon-rewrite so I figured to play it safe and wait a bit longer instead of getting rid of the option to have a non radeon-rewrite 7.6 from in that PPA. I dont use ati in linux so I'm just going by the feedback, not trying to imply I know anything about it :)
When do You expect will us having RV635 be able to use compiz in Jaunty either with radeon or radeonhd ... ? I'm using 2.6.30-rc7 and 2.6.28-12 with modules loaded according to tormod's page ...
oibaf
05-29-2009, 04:50 AM
Sarvatt, could you apply the hook: Relax linux-libc-dev depends to 2.6.28 also to mesa 7.6 packages?
That would be useful to make it compile also under jaunty (I keep some copied packages to my PPA (https://launchpad.net/~fabio-pedretti/+archive/ppa) to ease testing).
Sarvatt
05-29-2009, 12:53 PM
Sarvatt, could you apply the also to mesa 7.6 packages?
That would be useful to make it compile also under jaunty (I keep some copied packages to my PPA (https://launchpad.net/~fabio-pedretti/+archive/ppa) to ease testing).
You want to pull the source and change the version at the very least for what you are doing (rebuilding against a different libdrm for some reason) or else you're going to see people with a mix and match of packages that dont realize it because the names are the same... The whole point of tormod having the drivers seperate in his personal repo was to avoid building against the newer drm and as such being able to just install on jaunty with no updates. I've been updating ati and radeonhd in edgers against the newer drm lately now and obviously those aren't drop in replacements. We were planning on moving jaunty up to mesa master in xorg-edgers once 7.5 hits karmic and is backported to x-updates, but I'm thinking about doing it sooner here if the fixes for 8xx series intel 3d dont happen to get cherry picked into 7.5.
ikus060
06-01-2009, 08:17 PM
I need some clue here. I've read every where that radeon-rewrite improve the performance for ATI Radeon card. I'm not an expert in this domain and I read so many confusing thing that I don't know what to believe. I have a Radeon Mobility X300 (M22). It's a good card and it's should be more then enough for my need since I don't play any 3D game of any kinds. The only thing that matter is the Compositing.
So the point here is that I notice very poor performance since upgrading from Hardy to Jaunty. I don't know if it's the driver, X.org or the Windows Manager. So plz I need some help to identify the root cause.
As an example, If I play some music with whatever apps and if I move a windows (alot) the music stop. Same thing appen in many case : moving windows, AWN icons jumping, video playback, content of a windows changing, etc.
bridgman
06-01-2009, 10:01 PM
The radeon-rewrite work is more of an architectural improvement than a simple performance improvement, but because of the architectural improvements most of the interestiung work (which *could* help performance) is being done in radeon-rewrite.
Based on your symptoms, it sounds like you have some Compiz plug-in / effect enabled which causes the driver to fall back to software rendering. Blur is one example, IIRC.
ikus060
06-01-2009, 10:35 PM
The radeon-rewrite work is more of an architectural improvement than a simple performance improvement, but because of the architectural improvements most of the interesting work (which *could* help performance) is being done in radeon-rewrite.
Based on your symptoms, it sounds like you have some Compiz plug-in / effect enabled which causes the driver to fall back to software rendering. Blur is one example, IIRC.
Possible it's part of the problem, but event with the Metacity Compositing manager or I get trouble. Metacity without compositing manager is fine as long as I don't play with Firefox rendering.
Do you still believe it's part of the Windows Manager ? or do you consider the problem part of something else ?
tormod
06-06-2009, 05:15 PM
The radeon-rewrite PPA has now been updated with some test patches from "osiris" which are not yet in git. They are discussed on the mesa3d-dev mailing list, "More radeon-rewrite patches" and "Few shaders related patches against radeon-rewrite".
tormod
06-12-2009, 03:28 AM
radeon-rewrite has now been merged to master, so this thread can die. Thanks to those who tested. The PPA will live on though, I have uploaded a package built from mesa master, tweaked so it can run on an otherwise unchanged Ubuntu 9.04 installation.
The PPA might host things like Osiris' test branches in the future, see for instance http://phoronix.com/forums/showthread.php?t=17683
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.