| View previous topic :: View next topic |
| Author |
Message |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Tue May 08, 2012 12:41 am Post subject: [Solved] Radeon dri problem |
|
|
I'm having a problem with a dri error and I'm not sure where to go from here. I'm using a radeon 9800xt have this bit in my Xorg.0.log
| Code: |
[ 3968.641] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.
|
Here's some more info:
glxinfo | grep "render"
| Code: |
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on softpipe
|
dmesg | grep "drm"
| Code: |
[ 0.968128] [drm] Initialized drm 1.1.0 20060810
[ 0.968241] [drm] radeon kernel modesetting enabled.
|
Last edited by lijnk on Tue May 08, 2012 8:47 pm; edited 1 time in total |
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
Posted: Tue May 08, 2012 1:46 am Post subject: |
|
|
i dont know if this applies to ATI cards, so my apologies if this ends up being irrelevant -
is the user youre using to launch X a member of the 'video' group?
IIRC, one of the cards - cant remember if nvidia or intel - /dev/dri/cardX was root:video, and only accessible by root user, or users in video group. Without access, hardware accel wouldnt function. Add to video group, logout completely, log back in, and the issue went away. Maybe this is your issue here? _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
| Back to top |
|
 |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Tue May 08, 2012 2:01 am Post subject: |
|
|
| Yes, it's part of the video group. I do notice that ls /dev does not show /dev/dri anywhere though. |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue May 08, 2012 2:16 am Post subject: |
|
|
Pastebin the whole xorg log and check your kernel settings in regard of drm, kms and framebuffer console.
Post 'emerge -1pv mesa xf86-video-ati libdrm'. |
|
| Back to top |
|
 |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Tue May 08, 2012 3:03 am Post subject: |
|
|
Xorg.0.log: http://pastebin.com/LHHqCJKe
For the kernel settings, I have them all enabled. I have framebuffer hardware support on since if it's off, it takes a while to actually boot in and I get this message:
| Code: |
May 7 16:13:50 lijnk kernel: [ 121.824084] radeon_cp: Failed to load firmware "radeon/R300_cp.bin"
May 7 16:13:50 lijnk kernel: [ 121.824144] [drm:r100_cp_init] *ERROR* Failed to load firmware!
May 7 16:13:50 lijnk kernel: [ 121.824203] radeon 0000:02:00.0: failed initializing CP (-2).
May 7 16:13:50 lijnk kernel: [ 121.824260] radeon 0000:02:00.0: Disabling GPU acceleration
|
My kernel config: http://pastebin.com/dKfPdZxS
emerge -1pv mesa xf86-video-ati libdrm
| Code: |
These are the packages that would be merged, in order:
Calculating dependencies .... .... done!
[ebuild R ] x11-libs/libdrm-2.4.27 USE="-libkms -static-libs" VIDEO_CARDS="radeon -intel -nouveau -vmware" 0 kB
[ebuild R ] media-libs/mesa-7.11.2 USE="classic egl gallium llvm nptl shared-glapi -bindist -debug -gbm -gles -motif -openvg -osmesa -pax_kernel -pic (-selinux) -shared-dricore" VIDEO_CARDS="radeon -intel -mach64 -mga -nouveau -r128 -savage -sis -tdfx -via -vmware" 0 kB
[ebuild R ] x11-drivers/xf86-video-ati-6.14.3 0 kB
Total: 3 packages (3 reinstalls), Size of downloads: 0 kB
* IMPORTANT: 4 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
|
|
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue May 08, 2012 1:35 pm Post subject: |
|
|
Let's try to put your kernel config in order.
First, unrelated, but important, CONFIG_IDE should be off, just select the proper driver from ATA branch.
As for graphics, FB_RADEON must be off, FB_VESA probably too.
You'll know you're on on the right track, when the firmware loads. |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9464 Location: Córdoba (Spain)
|
Posted: Tue May 08, 2012 6:42 pm Post subject: |
|
|
Forgive me if this has already been said, but on a quick glance I don't see it referenced in this thread: is sys-kernel/linux-firmware installed at all?
If so, is your kernel configured to use the firmware?
This guide is relevant:
http://www.gentoo.org/doc/en/xorg-config.xml
Look figure 2.5. _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Tue May 08, 2012 8:04 pm Post subject: |
|
|
| VoidMage wrote: |
First, unrelated, but important, CONFIG_IDE should be off, just select the proper driver from ATA branch.
|
I was wondering how to fix that, thanks.
| i92guboj wrote: | Forgive me if this has already been said, but on a quick glance I don't see it referenced in this thread: is sys-kernel/linux-firmware installed at all?
If so, is your kernel configured to use the firmware?
This guide is relevant:
http://www.gentoo.org/doc/en/xorg-config.xml
Look figure 2.5. |
I haven't got it installed. In that part, I read this and thought I didn't need anything. I'm currently re-compiling and will come back with the results.
| Quote: | | Note: Old Radeon cards (X1900 series and older) don't need the radeon-ucode package or any firmware configuration. Just enable the Direct Rendering Manager and ATI Radeon modesetting. |
|
|
| Back to top |
|
 |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Tue May 08, 2012 8:42 pm Post subject: |
|
|
| Rebooted back in and everything worked. The problem was sys-kernel/linux-firmware was not installed or configured. I think there should be a change to the guide so that it says linux-firmware should be used for older radeon cards instead of saying there isn't a need for firmware configuration. |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Tue May 08, 2012 9:04 pm Post subject: |
|
|
Wrong, linux-firmware is definitely not needed in this case.
The package relevant to more recent Radeons is x11-drivers/radeon-ucode, but that's for >=r600. |
|
| Back to top |
|
 |
i92guboj Moderator


Joined: 30 Nov 2004 Posts: 9464 Location: Córdoba (Spain)
|
Posted: Tue May 08, 2012 9:32 pm Post subject: |
|
|
I'll leave to the expert the final diagnosis. I really don't care that much about this stuff to even try to research on it. The days where I used dri for something are over
However, there's a couple of facts we can't ignore.
First, there's a message above that clearly shows how the kernel is having problems because it can't load the firmware. Whether that message is relevant or just some useless speech cause by a leftover, I can't say. I remember reading that the firmware is not needed for r300 chips, but something is going on here, clearly.
Second, whether to install linux-firmware or radeon-ucode (you can't get both) depends on the concrete case, and the concrete versions you use. Right now, latest linux-firmware in portage is 20120502, and latest radeon-ucode is 20120320, so you can tell yourself which is more up to date.
All in all, if all the firmware files you need are in linux-firmware, you'll probably live happier with just that. But in the best Gentoo tradition, we also have split ebuilds for the firmware  _________________ Gentoo Handbook | My website |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Tue May 08, 2012 9:59 pm Post subject: |
|
|
| Cards older than r600 need firmware too. But aside from the radeon-ucode/linux-firmware packages, it's also in the kernel. And will get installed with "make modules_install". The two packages contain all radeon firmwares, for >r600 but also those that are in the kernel too. The plan was to remove firmware from the kernel and have only the packages, but it seems they forgot about it. |
|
| Back to top |
|
 |
lijnk n00b

Joined: 07 May 2012 Posts: 19
|
Posted: Wed May 09, 2012 12:48 am Post subject: |
|
|
Interesting. Should it make a difference if it's compiled as a module or built-in? (I had it built in)
Here's my current kernel config for some review: http://pastebin.com/baMJF2rg |
|
| Back to top |
|
 |
VoidMage Advocate


Joined: 14 Oct 2006 Posts: 4812
|
Posted: Wed May 09, 2012 2:20 am Post subject: |
|
|
| Gusar wrote: | | The two packages contain all radeon firmwares, for >r600 but also those that are in the kernel too. The plan was to remove firmware from the kernel and have only the packages, but it seems they forgot about it. |
Thanks for confirming. After my post, I've noticed I do have this firmware installed, even though I don't have either of those two installed.
As for CONFIG_FIRMWARE_IN_KERNEL, as long as the firmware is installed, that shouldn't be needed, but it's your choice.
On unrelated note: CONFIG_SND_HRTIMER shouldn't hurt, even if CONFIG_SND_SEQUENCER is off. |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Wed May 09, 2012 9:58 am Post subject: |
|
|
| lijnk wrote: | Interesting. Should it make a difference if it's compiled as a module or built-in? (I had it built in)
Here's my current kernel config for some review: http://pastebin.com/baMJF2rg |
You can remove CONFIG_EXTRA_FIRMWARE and CONFIG_EXTRA_FIRMWARE_DIR, you only need those if the required firmware *isn't* in the kernel already. For your card it is. You can also remove linux-firmware/radeon-ucode for the same reason.
And it definitely matters whether radeon is a module or built-in:
- if built-in, you need either CONFIG_FIRMWARE_IN_KERNEL (if the firmware for your card is in the kernel), or CONFIG_EXTRA_FIRMWARE{_DIR} (if the firmware for your card is not in the kernel)
- if a module, those two options aren't needed, the module will read firmware from the filesystem |
|
| Back to top |
|
 |
|