[xorg-edgers] Radeon dri2 not working with kernel 2.6.32rc7

Bug #482277 reported by abujafar
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-video-ati (Ubuntu)
Fix Released
Undecided
Tormod Volden

Bug Description

Binary package hint: xorg

I am running a Karmic with kernel 2.6.32rc7 (mainline repo) ati video driver from https://launchpad.net/~xorg-edgers/+archive/drivers-only

DRI2 is not working under X, i get this message:
[dri] radeon kernel module version is 2.0.0 but version 1.17.0 or newer is needed.
[dri] Disabling DRI.

ProblemType: Bug
Architecture: i386
Date: Fri Nov 13 19:03:00 2009
DistroRelease: Ubuntu 9.10
Package: xorg 1:7.4+3ubuntu10
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu10
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel N/A
 xserver-xorg-video-ati 1:6.12.99+git20091101.52973e8f-0ubuntu0tormod
SourcePackage: xorg
Uname: Linux 2.6.32-020632rc7-generic i686
XsessionErrors:
 (gnome-settings-daemon:1593): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:1668): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:1675): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:1667): Gdk-WARNING **: /build/buildd/gtk+2.0-2.18.3/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
system:
 distro: Ubuntu
 architecture: i686kernel: 2.6.32-020632rc7-generic

Revision history for this message
abujafar (abujafar) wrote :
Revision history for this message
abujafar (abujafar) wrote :

Logs

Revision history for this message
abujafar (abujafar) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks for your report. It seems like modesetting is enabled by default on this kernel? Please see https://wiki.ubuntu.com/X/RadeonKMS and see if you can boot with radeon.modeset=0, then reenable it after boot as explained there. Or if loading fbcon early enough makes it work.

Changed in xorg (Ubuntu):
assignee: nobody → Tormod Volden (tormodvolden)
status: New → Incomplete
Revision history for this message
abujafar (abujafar) wrote :

I forgot to say that i was already forcing the kernel to use KMS (this is indeed what i was testing), so it is not enabled by default.
I ran several test and the ONLY way to get DRI2 working is from console:
1 boot with KMS off
2 close X
3 reload radeon module with KMS on
4 and restart X

Putting fbcon in /etc/modules won't help.

Revision history for this message
abujafar (abujafar) wrote :

And by the way I am stressing DRI2 because it is the only way for me to watch Flash Video smoothly with compiz enabled.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

I did not see radeon.modeset=1 in the kernel command line, neither in dmesg nor Xorg.0.log, that's why I thought it was default.

Did you try putting fbcon into the initrd? I was pretty sure /etc/modules is loaded before the autoloading of radeon, but with the new boot order this might be different.

Bryce Harrington (bryce)
affects: xorg (Ubuntu) → xserver-xorg-video-ati (Ubuntu)
Revision history for this message
bjaglin (bjaglin) wrote :

I have the same problem with a Radeon Mobility 9000 (RV250). When booting on ubuntu kernel ppa 2.6.32-rc7+ or 2.6.31-drm-next with modesetting enabled via "options radeon modeset=1", dri can't be enabled, and X is switching back to Software Rasterizer. I have tried the stock drivers/mesa, the ubuntu-x, and the xorg-edgers ppa. All these packages work fine on 2.6.31-14. After some research, I ended up trying the ideas tormod suggested on #radeon (fbcon loaded earlier) : http://www.radeonhd.org/?page=archive_display&c=radeon&m=10&y=2009&d=2009-10-28, but none of them fixed the problem.

I need recent KMS because of #444139 and other freezes/crashes when using DRI1, and #413259 which was fixed in 2.6.32 as far as I can see. Anything I can post/try ?

Revision history for this message
bjaglin (bjaglin) wrote :

After reading https://wiki.ubuntu.com/X/RadeonKMS, I tried to remove the splash boot option, without any success. However, starting without KMS and reloading radeon does work for me as well. So I guess I am just experiencing a known loading order issue?

Revision history for this message
abujafar (abujafar) wrote :

i have some good news to share. I get a working configuration using kernel 2.6.32rc8, drivers from https://launchpad.net/~xorg-edgers/+archive/drivers-only and modified gdm.conf file from https://wiki.ubuntu.com/X/RadeonKMS
Everything else to karmic's default (even the splash option at boot time).

OT question: Is it possible to specify somewhere the boot video resolution? it starts with 1280x1024@60 and then modified after login by gnome to 1280x1024@75.

Changed in xserver-xorg-video-ati (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Tormod Volden (tormodvolden) wrote :

It all works very well with lucid + xorg-edgers + the above gdm.conf on M26 (X700 Mobility). Finally suspend and hibernation works, there was one issue but it got solved as soon as I reported it on https://bugs.freedesktop.org/show_bug.cgi?id=25336

I don't think there is any way to select mode yet. When there is, I will expect it to show up in "modinfo drm" or "modinfo radeon".

Revision history for this message
bjaglin (bjaglin) wrote :

Using 2.6.32-6 taken from the Lucid repository on Karmic, with Ubuntu X SWAT packages, the workaround described there https://wiki.ubuntu.com/X/RadeonKMS in gdm.conf is not required anymore, KMs loads fine.

Revision history for this message
abujafar (abujafar) wrote :

As far as i can see, packages of X-swat are older than karmic ones. Am I wrong?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Use xorg-edgers, not X-swat. Yes, I don't need the gdm.conf hack either. BTW, there is also http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-next/ which has KMS bits newer than in 2.6.32 final.

abujafar (abujafar)
Changed in xserver-xorg-video-ati (Ubuntu):
status: In Progress → Fix Released
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.