View Full Version : RV770 drm failed to work
zveanturz
02-17-2009, 02:04 PM
Hi everybody
I ve read so many posts about similar problem but i failed to solve my problem so i post my question. this is the post of the last hope!!! :p
I try to use DRi on an ati radeonHD 4850 1GB but it fail to work. If someone has got some clue to solve my problem you're welcome! :D
I use the last DRM from GIT
My kernel is a linux kernell 2.6.28.4
My processor is an AMD athlon X2
I use xorg-server 1.5.3 with the very last radeonHD driver ( not the official ATI driver from AMD)
I ve built the kernel with the DRI support builtin ( not as module )
here is some information
dmesg | grep drm
[ 0.377042] [drm] Initialized drm 1.1.0 20060810
[ 31.619284] drm: module is already loaded
locate libGL.so
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2
I ve got an error in Xorg.0.log
(WW) RADEONHD(0): Direct rendering for R600 an up forced on - This is NOT officially supported at the hardware level and may cause instability or lockups
(EE) RADEONHD(0): RHDDRIVersionCheck: drmOpen("radeon", pci:0000:02:00.0") failed.
(WW) RADEONHD(0): RHDDRIPreInit: Version check failed. Disabling DRI.
(WW) RADEONHD(0): RHDCSInit: No CS for R600 and up yet.
(EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
(EE) GLX: could not load software renderer
glxinfo
name of display: :0.0
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Xlib: extension "GLX" missing on display ":0.0".
Segmentation fault
here it is the pastebin of my dmesg
http://pastebin.com/f4c7cf34c
here it is the paste bin of he Xorg.0.log
http://pastebin.com/ff6f95e4
bridgman
02-17-2009, 05:05 PM
Did you build and install the latest drm from the 6xx-7xx support branch of mesa/drm ?
It looks like you are running an old drm driver without 6xx-7xx support.
zveanturz
02-18-2009, 12:12 AM
I use the last DRM from GIT
And I use mesalib 7.2 maybe i have to use mesalib from GIT.
After each attempt to solve this problem i recompile my linux kernell + drm + mesalib + libdrm.
I will ttry to use mesalib 7.3.
thanks for the clue
elanthis
02-18-2009, 12:54 AM
And I use mesalib 7.2 maybe i have to use mesalib from GIT.
Yes, and you specifically need the r6xx-r7xx-support branches of mesa/drm and video-drv-ati. The master branches (e.g., "latest git") DO NOT include any of the new r7xx work. It's currently only in those branches.
Hi,
I have exactly the same error in Xorg.log, so i prefer not to open a new post.
The only difference is that i have a radeon 4670 and use Opensuse 11.1, with kernel 2.6.30. Driver is radeonhd 1.2.5.
Do you have any idea ?
Bibi
bridgman
07-23-2009, 10:21 AM
I just noticed that the original poster mentioned they compiled drm into the kernel rather than as a separate module. Not sure if that is the problem, but I know all recommendations are to keep drm as a separate module *not* in the kernel, and I have seen a few people's problems go away when they rebuilt the kernel with modular drm.
bibi, can you please pastebin your xorg log and dmesg output as well ?
agd5f
07-23-2009, 10:47 AM
your best bet is to use 2.6.30 as that has support for r6xx/r7xx chips included. If you built the drm into the kernel, you won't be able to load externally built drm modules.
I use a pre-compiled kernel, found in opensuse repositories, cause i have an issue with my mouse in my own .config, so i dont know if the drm is build as a modul or in the kernel.
Here is my dsmeg :
http://pastebin.com/m69c45a54
Here my xorg.log :
http://pastebin.com/m11b69fae
Bibi
bridgman
07-23-2009, 02:45 PM
There are no drm messages at all in your dmesg output, so the kernel graphics module is either not there or not starting. You need a 2.6.30 or higher kernel built with modular drm support enabled.
There are no drm messages at all in your dmesg output, so the kernel graphics module is either not there or not starting. You need a 2.6.30 or higher kernel built with modular drm support enabled.
I use a 2.6.30 kernel. Is this tutorial (http://wiki.x.org/wiki/radeonhd%3Ar6xx_r7xx_branch) always working ?
Thanks for the answer.
Bibi
bridgman
07-24-2009, 11:55 AM
You need a 2.6.30 kernel built with modular drm support enabled.
You have the 2.6.30 kernel but it doesn't seem to have been built with drm enabled.
The radeonhd wiki page says you need drm from the 2.6.30 kernel tree. You have most of the kernel from 2.6.30 but you don't have the drm.
Ok i understand.
So even if i load the modules (drm and radeon) at boot it will not work.
Problem is that i compiled my own kernel but my mouse didn't work..., so i tried a pre-compiled kernel.
Thanks for your answer, i have to make this mouse work!
Bibi
Well i did but it still doesn't work.
I think the drm is well loaded, but i can't use the Xvideo output in mplayer and scrolling in Firefox is slow.
Here my Xorg log :
http://pastebin.com/m6221d3b0
My xorg.conf :
http://pastebin.com/m5f11ae11
And a part of my dmesg :
http://pastebin.com/m552227a3
Bibi
bridgman
07-28-2009, 04:35 AM
If those are all the drm-related messages in dmesg then you are still running a drm which is much too old.
Where did the drm come from this time ?
There is something that i don't understand.
I have compiled my kernel yesterday, with drm and radeon enabled as module in the .config (2.6.30.1).
I used these commands : "make, make modules_install then make install".
Is there anything else that i have to do ?
Bibi
nanonyme
07-28-2009, 09:24 AM
I used these commands : "make, make modules_install then make install".
Is there anything else that i have to do ?make modules_install should copy the modules into the right place, make install copies kernel and config to /boot so you don't have to do it if you prefer copying it there yourself. After those steps possible initrd generation if you want to and Grub configuration to use the new files.
forum1793
07-28-2009, 10:48 AM
I use a 2.6.30 kernel. Is this tutorial (http://wiki.x.org/wiki/radeonhd%3Ar6xx_r7xx_branch) always working ?
Thanks for the answer.
Bibi
Bibi, note that the original post is quite old. Back then, and as seen in the wiki (or maybe not, kind of confusing) you had to point git to r6xx-r7xx-support branch. That is no longer the case. So after the git clone git... step, you do NOT do the checkout. This will keep it pointed to master.
This should be true for mesa/mesa, xf86-video-ati, and xf86-video-radeonhd. It is probably true for mesa/drm.
If you are trying agd5f/drm, then after the clone, you need to checkout branch r6xx-r7xx-3d (or something like that, you can see branches from web browsing or from commands - read up on git).
Hopefully Alex or Bridgman will correct me if these are wrong.
The reason to compile drm as module in kernel conifg is so the gits can overwrite them. If drm compiled into kernel, then you probably can't uninstall them and use the drm you compiled from the git. Hope that makes sense.
Note that the devs are making lots of changes to the code, mostly on mesa and 3D is a work in progress. If you need 3D, try the Catalyst drivers.
bridgman
07-28-2009, 11:50 AM
If you are using 2.6.30 or above you don't need to build a separate drm; the drm code in the kernel tree should be fine for EXA/Xv on 6xx/7xx.
In general :
- for 2.6.28 or below build drm from ~agd5f/drm r6xx-r7xx-3d branch (this also gets you WIP 3D support)
- for 2.6.30 and above the kernel should already have all the necessary code for EXA/Xv support on 6xx/7xx
- for 2.6.29 easiest route is to update the kernel to 2.6.30 or higher
Bibi, can you please pastebin the entire dmesg output ? Where are you getting your kernel source ?
I use vanilla kernel source from http://www.kernel.org/ (2.6.30.1).
I have a drm.ko and a radeon.ko in /lib/modules/... so i think that the modules are well-installed.
My dmesg :
http://pastebin.com/m60a4dd46
Bibi
bridgman
07-28-2009, 01:24 PM
OK, that all sounds right. Let's assume the drm is OK for now.
I noticed another error message in the X log which I don't remember seeing before :
316.(EE) RADEONHD(0): RHDDRIVersionCheck: symbol GlxSetVisualConfigs not available.
317.(WW) RADEONHD(0): RHDDRIPreInit: Version check failed. Disabling DRI.
I'm not sure what that message implies; probably best to post to the radeonhd mailing list. I believe you need to subscribe first; instructions at :
http://en.opensuse.org/Mailing_Lists
For radeonhd, you would subscribe by sending email to radeonhd+subscribe at opensuse.org
I didn't found any radeonhd list except in the archive lists.
Soon i will be in vacation (end of week) so i think it will wait for a few time more (i have reinstalled windows... to play videos).
Thank you for your answers.
Bibi
ps : do you know why there isn't any pre-compiled packet for x86.radeon in Opensuse.
This guy had the same problem as me : http://www.phoronix.com/forums/showthread.php?t=14636&page=11
I found this page with this issue :http://xserver-xorg-video-radeonhd.sourcearchive.com/documentation/1.2.5/rhd__dri_8c-source.html
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.