Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
G5 and Radeon [solved] using kernel drivers vs. ati-drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Sat Dec 02, 2006 3:00 am    Post subject: G5 and Radeon [solved] using kernel drivers vs. ati-drivers Reply with quote

anyone have a G5 with Gentoo running the ati-drivers? do you recommend otherwise? suggested in freenode to create an overlay for the ati-drivers.

Last edited by gohmdoree on Wed Dec 13, 2006 1:48 am; edited 1 time in total
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Sat Dec 02, 2006 3:20 am    Post subject: Reply with quote

I've got a Radeon 9600 in my G5.

I configured the kernel as says here, for DRM:

http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml

No need to install other driver packages. But FYI 3D is NOT stable at all for me. When trying to run glxgears, the screen flickers all over. And when the drm is loaded, the entire computer is unstable. It freezes, and I have to hold the power button to shutdown. So that's as far as I got. Totally unusable. I just commented out the dri for now.
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sat Dec 02, 2006 8:23 am    Post subject: Reply with quote

what stmiller explains is true for 64bit userland - I'm experiencing exactly the same problems and have opened an upstream bug about that: https://bugs.freedesktop.org/show_bug.cgi?id=7660

nothing I can do about that issue (due to a missing knowledge how to fix it...)

-corsair
Back to top
View user's profile Send private message
jaeger63
n00b
n00b


Joined: 08 Apr 2006
Posts: 38
Location: Gatineau, Quebec

PostPosted: Sat Dec 02, 2006 4:24 pm    Post subject: Reply with quote

Quote:
Totally unusable. I just commented out the dri for now.


I have an ATI 9600 in an iMac G5 and my experience is much better than that. I wouldn't call it stable, but it is more or less usable.

I sometimes get a lockup if I exit X-windows back to the console, but very rarely otherwise.
Back to top
View user's profile Send private message
jaeger63
n00b
n00b


Joined: 08 Apr 2006
Posts: 38
Location: Gatineau, Quebec

PostPosted: Sat Dec 02, 2006 4:45 pm    Post subject: Reply with quote

And just to follow up, I get smooth running glxgears with ~3370 FPS.


I'm running gentoo Linux 2.6.18-r2 with Xorg 7.1, although I am using a 32-bit userland. That may be the difference.
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Sat Dec 02, 2006 6:57 pm    Post subject: Reply with quote

I'm using a 32bit userland. Xorg 7.1, and now a 2.6.18-r3 kernel. Perhaps I need to try a few more times and see since I've updated my kernel.
Back to top
View user's profile Send private message
xyz
n00b
n00b


Joined: 29 Oct 2003
Posts: 67

PostPosted: Sun Dec 03, 2006 10:21 am    Post subject: Reply with quote

I am using 64-bit userland on my Powermac G5 2.0Ghz with Radeon 9800XT card, and DRI seems stable though I have not tested it intensively. I can run glxgears with about 3400FPS, bender, and aiglx with beryl-0.12(the color is not right). My kernel is gentoo-sources-2.6.18-r3, but with the new 2.6.19 kernel DRI doesn't work. See https://bugs.gentoo.org/show_bug.cgi?id=156896

Dehua
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 04, 2006 1:39 am    Post subject: Reply with quote

can you guys post your xorg that you got working?

you used the drivers from the kernel?

could you post your config and make?
Back to top
View user's profile Send private message
jaeger63
n00b
n00b


Joined: 08 Apr 2006
Posts: 38
Location: Gatineau, Quebec

PostPosted: Mon Dec 04, 2006 3:54 am    Post subject: Reply with quote

Quote:
can you guys post your xorg that you got working?


Well, yes, we could post those but really the best place to start is to follow the FAQs. Instructions specific to configuring a Radeon on PPC are here:
http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#drm

And the generic gentoo DRI howto is here:
http://www.gentoo.org/doc/en/dri-howto.xml

Quote:
you used the drivers from the kernel?

Yes, I configured the kernel as described in the PPC for Radeon.

Quote:
could you post your config and make?

Basically, just put VIDEO_CARDS="radeon" into your /etc/make.conf and emerge xorg-x11.

If you've done that and still have specific questions we'd be happy to help.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 04, 2006 4:42 am    Post subject: Reply with quote

never hurts to ask and share. i have looked at the doc as well. when i have a specific question to ask, i'll be more than happy to share it with everyone.

8)
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Mon Dec 04, 2006 2:06 pm    Post subject: Reply with quote

jaeger63 wrote:
And just to follow up, I get smooth running glxgears with ~3370 FPS.


I'm running gentoo Linux 2.6.18-r2 with Xorg 7.1, although I am using a 32-bit userland. That may be the difference.


I only get ~ 1400 FPS with glxgears. It's enough to play tuxracer. The kernel is 2.6.17-gentoo-r1, 64bit kernel, 32 bit userland.

I wonder if I should upgrade to Linux 2.6.18-r2 or am I missing something in my Xorg config?

I believe I'm running Xorg 7.1 (it says "X Window System Version 7.1.1 in my /var/log/Xorg.0.log).
Back to top
View user's profile Send private message
jaeger63
n00b
n00b


Joined: 08 Apr 2006
Posts: 38
Location: Gatineau, Quebec

PostPosted: Mon Dec 04, 2006 3:03 pm    Post subject: Reply with quote

Quote:
I only get ~ 1400 FPS with glxgears.

I wonder if I should upgrade to Linux 2.6.18-r2 or am I missing something in my Xorg config?


I wouldn't worry too much about the glxgears number. If you're getting more than about 400 and games like tuxracer run you clearly have DRI working correctly. I definitely would not expect a higher glxgears number to translate to better general graphics performance. But you might want to try a couple of tweaks to xorg.conf to see if they help. I set some options in the Device section:
Code:

Section "Device"
   (snip..)
   Option      "AGPMode"   "4"
   Option      "AGPFastWrite"   "true"
   Option      "DynamicClocks"   "true"
   Option      "EnablePageFlip" "true"
EndSection   
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Mon Dec 04, 2006 4:33 pm    Post subject: Reply with quote

Success! Radeon 9600 AGP 128MB card. All bulit in the kernel- no modules.

Here are the significant portions of my xorg.conf:


Code:

# This loads the GLX module
    Load       "glx"
# This loads the DRI module
    Load       "dri"
----
Section "Device"
    Identifier  "9600 Pro"
    Driver      "radeon"
    Option   "UseFBDev"   "false"
    Option      "AGPMode"   "4"
    Option      "AGPFastWrite"   "true"
    Option      "DynamicClocks"   "true"
    Option      "EnablePageFlip" "true"
EndSection
----
Section "DRI"
   Mode 0666
EndSection




Code:
stmiller@stmiller ~ $ glxgears
13388 frames in 5.0 seconds = 2677.576 FPS
11778 frames in 5.0 seconds = 2355.541 FPS


Code:
stmiller@stmiller ~ $ uname -a
Linux stmiller 2.6.18-gentoo-r3 #6 SMP PREEMPT Sat Dec 2 23:19:09 PST 2006 ppc64 PPC970FX, altivec supported PowerMac7,3 GNU/Linux
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Mon Dec 04, 2006 4:53 pm    Post subject: Reply with quote

congrats!

will be back to work on my G5 this week.
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Tue Dec 05, 2006 4:18 pm    Post subject: Reply with quote

jaeger63 wrote:
Quote:
I only get ~ 1400 FPS with glxgears.

I wonder if I should upgrade to Linux 2.6.18-r2 or am I missing something in my Xorg config?


I wouldn't worry too much about the glxgears number. If you're getting more than about 400 and games like tuxracer run you clearly have DRI working correctly. I definitely would not expect a higher glxgears number to translate to better general graphics performance. But you might want to try a couple of tweaks to xorg.conf to see if they help. I set some options in the Device section:
Code:

Section "Device"
   (snip..)
   Option      "AGPMode"   "4"
   Option      "AGPFastWrite"   "true"
   Option      "DynamicClocks"   "true"
   Option      "EnablePageFlip" "true"
EndSection   


With above added I get
Code:
jas@linux:~> glxgears
8887 frames in 5.0 seconds = 1777.304 FPS
8932 frames in 5.0 seconds = 1786.203 FPS
8934 frames in 5.0 seconds = 1786.617 FPS
8932 frames in 5.0 seconds = 1786.283 FPS
8937 frames in 5.0 seconds = 1787.311 FPS
9180 frames in 5.0 seconds = 1835.967 FPS
9224 frames in 5.0 seconds = 1844.654 FPS
Previously it was: ~ 1400 FPS. So am improvement

It was ~3400 when used
Code:
Option   "UseFBDev"   "false"
but then I get a flickering screen.
I think it's an issue with my Plastic Apple 23" LCD and the radeon frame buffer. Ben had to help me out with this. Infact each new kernel I has go in and change a line or two so that I don't get the flickering.

Anyway, I have 3d acceleration. So I can't really complain although mime does hard lock. Mu guess is that it's something to do with the mouse driver. I say that since I had similar problem and when I went to a 64 bit kernel there some mouse configuration that would stop compilation. I didn't include it and then after I never had hanging until upto now up DRM, Xorg 7.1. Perhap I need to check my kernel config file. Btw does anybody else get hard locking?
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Tue Dec 05, 2006 4:39 pm    Post subject: Reply with quote

i got my radeon to work, at least one of them. i followed the notes from above, but haven't tried glxgears as of yet.

i started another thread with issues pertaining to dual cards with two different radeons:

https://forums.gentoo.org/viewtopic-t-521928-highlight-.html

one is a 9200 and the other 9600. for some reason the second card defaults to a 640x480 resolution instead of 1600x1200.

anyone using a simliar set up? or just single card.
Back to top
View user's profile Send private message
stmiller
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 119

PostPosted: Tue Dec 05, 2006 4:51 pm    Post subject: Reply with quote

Yes mine defaulted to 640x480 also for some reason. Radeon 9600. I specified the exact rates for my lcd for 1280x1024 in the xorg.conf:

Code:

Section "Monitor"

    Identifier  "Mag"

    HorizSync   80

    VertRefresh 75



I don't know if this is very wise thing to do, but that got my resolution to 1280x1024.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Tue Dec 05, 2006 5:03 pm    Post subject: Reply with quote

i've done that for some other cards, or Xorg -configure set that automatically.

i'm still in the day of 21" crts. i will have to switch over to lcd's sometime in the future.

will report later tonight when i get back home.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Thu Dec 07, 2006 8:02 am    Post subject: Reply with quote

i reported in my second thread that i did get 1600x1200 on both crts. the one behavior that i'm noticing in the second card/monitor is that when i try to drag a window across, it starts from the right.

say the window is towards the left-most, it'll create the sillouhette on the right side, and leave it rightside instead.

i hope this makes sense.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Dec 07, 2006 2:24 pm    Post subject: Reply with quote

Take a look at the contents of man radeon, the option you're looking for is:
Option "CRT2Position" "string" which lets you place the monitor to the LeftOf, RightOf, etc.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Thu Dec 07, 2006 3:35 pm    Post subject: Reply with quote

I'll try that when I get home to the machine.

Just to be clear, the main card and monitor sits to my left. The additional card and monitor to my right. The behavior that I am reporting is on the right monitor.

The xterm will open towards the leftside of the right monitor. When I move or try to drag it, it moves almost off screen to the right.

I will post once I try Jose's suggestion with the CRTPosition Option.
Back to top
View user's profile Send private message
gohmdoree
Guru
Guru


Joined: 12 Oct 2004
Posts: 533

PostPosted: Wed Dec 13, 2006 1:48 am    Post subject: Reply with quote

i'm going to close this since the original question was answered.

the last point made i opened a new thread here

https://forums.gentoo.org/viewtopic-t-523981-highlight-.html

regarding the incorrect positioning when moving windows in the second video card.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum