Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting ATI Radeons to work on Gentoo for AMD64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
fesodes
n00b
n00b


Joined: 19 Feb 2004
Posts: 4

PostPosted: Thu Feb 19, 2004 6:21 pm    Post subject: getting ATI Radeons to work on Gentoo for AMD64 Reply with quote

Hi

I just purchased a AMD64 system with a Radeon 9800XT. But when I checked at ATI's website, there is no Radeon drivers for 64bit Linux so what should I do? Anyone here got their Radeons to work with Gentoo in 64bit mode?
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Thu Feb 19, 2004 6:45 pm    Post subject: Reply with quote

You can use VESA with XFree 4.3.0...which works...but the 60Hz refresh rates give me headaches so I went ahead and built 4.3.99 (4.4 RC2) last night and the radeon drivers seem to work great. Don't try radeon drivers on 4.3.0...you will get hard locks. I found that out the hard way. I read that some apps don't compile against X4.4...but I've not had problems yet....built k3b just a minute ago and it works find. I'm building mozilla as we speak. Give it a shot if you can't deal with low refresh rates, otherwise VESA works fine.
Back to top
View user's profile Send private message
vash
n00b
n00b


Joined: 13 Jul 2002
Posts: 59

PostPosted: Thu Feb 19, 2004 7:15 pm    Post subject: Steps? Reply with quote

Can we get some steps to get either VESA working or the Radeon drivers working? I just built my A64 box with the latest LiveCD and cannot get xfree-drm to compile (numerous errors posted already in the Gentoo forums) and would like some form of X.

vash
Back to top
View user's profile Send private message
molander
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 110
Location: St. Louis

PostPosted: Thu Feb 19, 2004 7:55 pm    Post subject: Reply with quote

Just use DRM from the kernel and it should work fine. VESA is too slow for me. The redrawing is too slow. I get 1300fps on my radeon 9200 in glxgears. (2.6 kernel and 64 bit native)
Back to top
View user's profile Send private message
vash
n00b
n00b


Joined: 13 Jul 2002
Posts: 59

PostPosted: Thu Feb 19, 2004 8:15 pm    Post subject: Reply with quote

molander wrote:
Just use DRM from the kernel and it should work fine. VESA is too slow for me. The redrawing is too slow. I get 1300fps on my radeon 9200 in glxgears. (2.6 kernel and 64 bit native)

So what do I emerge for Xfree? Just plain ol "xfree" ?

I've compiled DRM into the kernel, but no X (startX fails for me, it seems, no xauth?). I'll give it a shot again tonight.

vash
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Thu Feb 19, 2004 8:27 pm    Post subject: Reply with quote

molander wrote:
Just use DRM from the kernel and it should work fine. VESA is too slow for me. The redrawing is too slow. I get 1300fps on my radeon 9200 in glxgears. (2.6 kernel and 64 bit native)



Care to post your XF86Config file?

I'd like to compare, I'm using a Radeon 9600 Pro and it refuses to enable DRM, and this:
452 frames in 5.0 seconds = 90.400 FPS

Really bites...

George
Back to top
View user's profile Send private message
molander
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 110
Location: St. Louis

PostPosted: Thu Feb 19, 2004 8:49 pm    Post subject: Reply with quote

thumper wrote:
molander wrote:
Just use DRM from the kernel and it should work fine. VESA is too slow for me. The redrawing is too slow. I get 1300fps on my radeon 9200 in glxgears. (2.6 kernel and 64 bit native)



Care to post your XF86Config file?

I'd like to compare, I'm using a Radeon 9600 Pro and it refuses to enable DRM, and this:
452 frames in 5.0 seconds = 90.400 FPS

Really bites...

George



Yeah I was getting 19fps sometimes until I got this running. Just make sure you have DRM enabled in the kernel for the radeon. (I used static not a module) Also I did not use the radeon fb. I used the vesa fb. You probably have to change your PCI bus id. My mouse wheel doesnt work for some reason though (Unrelated)...

Code:

Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    Load        "xtt"
    Load        "glx"
    Load        "dri"
EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
    RgbPath    "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
    FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

    ModulePath "/usr/X11R6/lib/modules"
EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option    "AutoRepeat" "500 30"
    Option    "XkbRules"   "xfree86"
    Option    "XkbModel"   "pc104"
    Option    "XkbLayout"   "us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
    Identifier   "Mouse1"
    Driver    "mouse"
    Option    "Protocol"   "ImPS/2"
    Option    "ZAxisMapping"   "4 5"
    Option    "Device"     "/dev/mouse"
EndSection



# **********************************************************************
# Monitor section
# **********************************************************************
Section "Monitor"
    Identifier  "LCD"
    HorizSync   31.5 - 80.5
    VertRefresh 60
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"
    Driver      "vga"
EndSection

Section "Device"
    Identifier  "Radeon9200"
    Driver      "radeon"
    VideoRam    65536
    BusID      "PCI:2:0:0"
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon9200"
    Monitor     "LCD"
    DefaultDepth 24

    Subsection "Display"
        Depth       16
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier   "Server Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
    Mode 0666
EndSection
Back to top
View user's profile Send private message
fesodes
n00b
n00b


Joined: 19 Feb 2004
Posts: 4

PostPosted: Thu Feb 19, 2004 9:23 pm    Post subject: Reply with quote

"You can use VESA with XFree 4.3.0...which works...but the 60Hz refresh rates give me headaches so I went ahead and built 4.3.99 (4.4 RC2) last night and the radeon drivers seem to work great. Don't try radeon drivers on 4.3.0...you will get hard locks."

I'm new to Linux so I don't really understand what you mean by "built 4.3.99(4.4 RC2) and the radeon drivers seem to work great". What is 4.3.99(4.4RC2)? Is that a version of XFree or are you talking about Radeon drivers? Also, where did you get the Radeon drivers? You using the 32bit ones or did you make yourself a 64bit version?
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 552
Location: Venice FL

PostPosted: Thu Feb 19, 2004 9:39 pm    Post subject: Reply with quote

XFree 4.3.99 is the release candidate for Xfree 4.4, See http://packages.gentoo.org/ebuilds/?xfree-4.3.99.902-r2
It's hard masked in the /usr/portage/profiles/package.mask file.

I'm using the XFree version 4.3.99 and the radeon driver, I have mine built as a module, I guess I'm going to have to live with the speed, I just found this in the XFree log:

(WW) RADEON(0): Direct rendering not yet supported on Radeon 9500/9700 and newer
cards

I guess I should consider myself lucky, I found this also:

(II) RADEON(0): Acceleration enabled

And I use 1600x1200, and it feels ok, better than my Rage 128 on my Athlon 1Ghz.

But that glxgears thing bugs me... :(

George


Last edited by thumper on Thu Feb 19, 2004 9:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
molander
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 110
Location: St. Louis

PostPosted: Thu Feb 19, 2004 9:40 pm    Post subject: Reply with quote

fesodes wrote:
"You can use VESA with XFree 4.3.0...which works...but the 60Hz refresh rates give me headaches so I went ahead and built 4.3.99 (4.4 RC2) last night and the radeon drivers seem to work great. Don't try radeon drivers on 4.3.0...you will get hard locks."

I'm new to Linux so I don't really understand what you mean by "built 4.3.99(4.4 RC2) and the radeon drivers seem to work great". What is 4.3.99(4.4RC2)? Is that a version of XFree or are you talking about Radeon drivers? Also, where did you get the Radeon drivers? You using the 32bit ones or did you make yourself a 64bit version?


Yeah don't use vesa(very very slow) or xfree 4.4(alpha quality). I would stay away from 4.4 for the time being. If you get hardlocks recompile xfree without aggressive cflags (the ebuild removes some anyway). The "stable" xfree radeon driver works just fine with kernel DRM. At least it has for the last week for me with no crashes. I would stay away from xfree 4.4 for now. You are probably just asking for more problems than its worth.

There really arent any tricks to get this card to work with the kernel drm and xfree radeon driver. If you are having a problem post your abbreviated config file. :)
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Fri Feb 20, 2004 3:38 am    Post subject: Reply with quote

well...I wouldn't consider my CFlags to be too agressive to begin with

CFLAGS="-O3 -pipe -fomit-frame-pointer"

The athlon64 technotes specifically mention that you will have lockups while using the xfree 4.3 radeon drivers so if you don't get them then consider yourself lucky. 4.3.99 seems quite stable in my opinion. I had it running for 4 hours earlier...no problems at all.
Back to top
View user's profile Send private message
absinthe
Retired Dev
Retired Dev


Joined: 06 Oct 2002
Posts: 111
Location: San Francisco, CA, USA

PostPosted: Fri Feb 20, 2004 5:17 am    Post subject: Reply with quote

there's no reason to set aggressive CFLAGS on the x86_64 gcc backend. I would bet anyone a box of donuts there is no difference in performance between -O2 and -O3 right now.

<rant>

This will change when Intel releases their "x86-64" compatible chip" and complicates the gcc backend by making it all CFLAGS-stupid like the i686 stuff is... by adding SSE3... and who knows what else. Buncha embrace & extend weenies.

Also, regarding Intel's recent statement: "64-bit irrelevant for home PC's now" ... when you filter out the marketing language, what they're really saying is:

"x86-64 is cool, but we don't have anything that competes with it in active production yet. Oops. So we're going to attempt to derail AMD's success with soundbites in the news media downplaying the significance of 64-bit desktops. We plan on producing a copy of AMD's idea soon. Once we make the chip, only then will 64-bit desktops be worthwhile."

"Oh, and IA-64 is on its way to becoming one of the world's colossal R&D failures. Oops. But we'll ride this slow-moving trainwreck right through anybody who's brave enough to buy into it."

</rant> :lol:
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Fri Feb 20, 2004 6:51 am    Post subject: Reply with quote

I could use a box of donuts. Any specific app to use as a test-case?
Back to top
View user's profile Send private message
absinthe
Retired Dev
Retired Dev


Joined: 06 Oct 2002
Posts: 111
Location: San Francisco, CA, USA

PostPosted: Fri Feb 20, 2004 7:16 am    Post subject: Reply with quote

secondshadow wrote:
I could use a box of donuts. Any specific app to use as a test-case?

You pick.

As long as there's enough detail where I can reproduce it here myself. And you know, the difference in performance should be relatively significant. For example, a 1-second difference on an operation that takes both binaries ~10 minutes to complete is not worthwhile. :wink:

I'd love to be proven wrong -- and if I am, I'll happily kick down some donuts.
Back to top
View user's profile Send private message
llew
n00b
n00b


Joined: 17 Nov 2003
Posts: 35

PostPosted: Fri Feb 20, 2004 1:05 pm    Post subject: Reply with quote

Can anyone please post a howto for getting radeon cards to work in an amd64 environment, without vesa/fb driver, of course.

- XFree Version
- Kernel Config
- XF86Config
- Which Drivers? - (emerge ati-driver, emerge xfree-drm, emerge nothing...)

What to merge, which cards work, which wouldn't (r100, r200,r300)

Thanks!
Back to top
View user's profile Send private message
endpoint
n00b
n00b


Joined: 14 Nov 2003
Posts: 11

PostPosted: Thu Mar 11, 2004 2:42 am    Post subject: Reply with quote

molander wrote:
thumper wrote:
molander wrote:
Just use DRM from the kernel and it should work fine. VESA is too slow for me. The redrawing is too slow. I get 1300fps on my radeon 9200 in glxgears. (2.6 kernel and 64 bit native)



Care to post your XF86Config file?

I'd like to compare, I'm using a Radeon 9600 Pro and it refuses to enable DRM, and this:
452 frames in 5.0 seconds = 90.400 FPS

Really bites...

George



Yeah I was getting 19fps sometimes until I got this running. Just make sure you have DRM enabled in the kernel for the radeon. (I used static not a module) Also I did not use the radeon fb. I used the vesa fb. You probably have to change your PCI bus id. My mouse wheel doesnt work for some reason though (Unrelated)...

Code:

Section "Module"
    Load        "dbe"     # Double buffer extension
    SubSection  "extmod"
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    Load        "xtt"
    Load        "glx"
    Load        "dri"
EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************
Section "Files"
    RgbPath    "/usr/X11R6/lib/X11/rgb"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
    FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

    ModulePath "/usr/X11R6/lib/modules"
EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************
Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option    "AutoRepeat" "500 30"
    Option    "XkbRules"   "xfree86"
    Option    "XkbModel"   "pc104"
    Option    "XkbLayout"   "us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************
Section "InputDevice"
    Identifier   "Mouse1"
    Driver    "mouse"
    Option    "Protocol"   "ImPS/2"
    Option    "ZAxisMapping"   "4 5"
    Option    "Device"     "/dev/mouse"
EndSection



# **********************************************************************
# Monitor section
# **********************************************************************
Section "Monitor"
    Identifier  "LCD"
    HorizSync   31.5 - 80.5
    VertRefresh 60
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"
    Driver      "vga"
EndSection

Section "Device"
    Identifier  "Radeon9200"
    Driver      "radeon"
    VideoRam    65536
    BusID      "PCI:2:0:0"
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
    Identifier  "Screen 1"
    Device      "Radeon9200"
    Monitor     "LCD"
    DefaultDepth 24

    Subsection "Display"
        Depth       16
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier   "Server Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
    Mode 0666
EndSection


Where did you get the correct pci BusID value from? lspci?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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