Log in

No account? Create an account

July 2017
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

airlied [userpic]
Initial KMS support for radeons merged to Linus tree.

Okay radeon TTM/KMS has landed in Linus tree under staging.

To enable it you need to enable CONFIG_DRM_RADEON_KMS, which relies on CONFIG_STAGING being set.

please read the CONFIG_STAGING warnings, esp the
"Please note that these drivers are under heavy
development, may or may not work, and may contain userspace
interfaces that most likely will be changed in the near

Now to get a userspace that can use this code you need to get

git://git.freedesktop.org/git/mesa/libdrm master branch
and build it with --enable-radeon-experimental-api and install that.

git://git.freedesktop.org/git/xorg/driver/xf86-video-ati kms-support branch
build that second

git://git.freedesktop.org/git/mesa/mesa.git master branch
build this with libdrm_radeon somewhere that pkgconfig can find it.

You should either have KMS + DRI2, or a pile of smoking trash.

Please report any mode type issues on #radeon or dri-devel mailing list.

If you can't compile or configure your system to use this please wait until you have a distro do it for you.

If you are using Fedora 11, grab the latest xf86-video-ati from koji and all you need is the new kernel bits.

Known issues:
My DDX reports something about DRM 2.0.0 and wanting 1.2.x or something like that, you messed up setting up the DDX or are
still using the system DDX.
Xv might be broken on resize (or normally)
r600/r700 doesn't work (no surprise its not ready yet)

Going green

I am looking forward to see


being updated with some green =)

which fedora release will get those improvements? 11 or 12?

I believe most of these improvements are already in Fedora 11

hmmm, that why i cant boot to f11 install dvd/live cd? :D

Are you using a laptop? Does it have an ATI 200M graphics chip?


ya, laptop with x1600-ati

Thanks !

Great ! Linus has just accepted the patch that you already give us the tutorial on how to try it out !

Thanks for cleaning this up by putting everything into a branches of the main repositories !

Let's compile everything !


When I use Linus's tree X won't start (yes it's the latest call compiled in and KMS is switched on)

It works fine using the other KMS kernel branches (drm-2.6 & drm-next)

Yes noticing some strangeness with Xv - I'm looking forward to the day I can use this machine as a mediabox (as it was intended)

It's great that all this code is now on fd.o and I'm excited about it hitting master and becoming the default

Not too long until Gallium either - exciting times

Re: Strange

Oh yes and the extract from my xorg log:

(II) [drm] DRM interface version 1.3
(II) [drm] Could not create SAREA for DRM lock.
(EE) RADEON(0): [dri] DRIGetVersion failed to open the DRM
[dri] Disabling DRI.
(EE) RADEON(0): Kernel modesetting setup failed
(II) UnloadModule: "radeon"
(EE) Screen(s) found, but none have a usable configuration.

And as I said KMS and Xorg is working fine with other kernels

Re: Strange

See the comments on the previous post, you probably need the following patch:
xxxxx@gentoo-node1 .../kernel/kernel_patches $ cat 2700-reapply-6c51d1-do-not-associate_DRM_DRIVER-maps-with-a-master.patch
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c
index 80a2575..0411d91 100644 (file)
--- a/drivers/gpu/drm/drm_bufs.c
+++ b/drivers/gpu/drm/drm_bufs.c
@@ -371,8 +371,7 @@ static int drm_addmap_core(struct drm_device * dev, resource_size_t offset,
list->user_token = list->hash.key << PAGE_SHIFT;

- if (!(map->flags & _DRM_DRIVER))
- list->master = dev->primary->master;
+ list->master = dev->primary->master;
*maplist = list;
return 0;
Thanks goes to the user that posted it (Christophe?).


Re: Strange

Yip that did the trick


Works, but Xv is broken as noted in known issues

I've got a Radeon Mobility x300 128MB (Inspiron 6000) running Ubuntu 9.04 32-bit with your above directions. The install went fairly smoothly, once I realized that you had meant git://git.freedesktop.org/git/mesa/drm master branch instead of libdrm.

Rebooted after configuring Grub, and glxgears/compiz seems to be ok so far. I fired up Miro to check out Xv, and was greeted with my video window only showing the upper-left quadrant of my screen. There was a patch from Alex Deucher that I used previously which still gives the intended output from Xv. The patch no longer completely applies due to ongoing changes in the driver code, but it gets the job done on my system (a.k.a. the fix still works for me).

Diff/Patch: http://www.botchco.com/alex/xorg/kms_fix_xv.diff

The general explanation that I got was that there's an offset that needs to be taken into account for the r300, or maybe it's just the r370. Alex would probably be the person to talk to for the specifics.

r600 / r700

I know KMS isn't supported on these chips yet but which branches would you recommend for non-KMS r600 & r700 support.

I've just gotten a new (and cheap) Radeon 4650 with 1GB of DDR2, the binary ATI driver is appalling and is nowhere near the performance I was expecting, it's struggling to play Warcraft 3 on Wine :(

I've moved back to the Radeon driver which has fairly good Xv support (but it struggles a bit with 1080p video) but was wondering if I'm using the best branches

Also is there and eta for R600/R700 KMS support as it's wonderful under my x1250 (it just didn't have the muscle)