Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DRI with ati rage 128 (pro)
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
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Mon Jun 23, 2003 9:26 am    Post subject: DRI with ati rage 128 (pro) Reply with quote

does anybody has information that it would be possible to run dri on a ati128rage on a powermac ?
dri states the ppc as a not supported platfrom, but, anyway...
is it possible and where can I find more informations ?
It read in a thread that a user named gerk has written a step-by-step advice, but I can't find it.

Any hint welcome,
krgds,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Mon Jun 23, 2003 10:33 am    Post subject: Reply with quote

Hi,

You could try this site http://gatos.sourceforge.net/, the binaries are unfortunately only x86 but there is the possibility to download from cvs, not sure whether this would compile but it may be work a go.

I have never tried it (did on an old dell notebook but that was from the binaries) myself so good luck :)
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Tue Jun 24, 2003 9:42 am    Post subject: Reply with quote

May have unitentionally sent you down the wrong track there, any 2.4.20 ppc kernel should have the ati rage drivers already, gatos is useful if you have an old Mach64 and want to get dri running.

Basically make menuconfig and find the agp option, set to module or compile into kernel and further down in the same area you will see some options for DRI (sorry not to be more specific as I am at work at the moment, not with my ibook), toggle on DRI and scroll down for the rage and radeon drivers, compile these as modules.

When you have installed the new kernel boot into it and then run
Code:
emerge xfree-drm

This will overwrite the radeon and rage modules in your /lib/modules/2.4.xx-xx directory with the newer versions from xfree.

In your XF86Config-4 file you will want to add/make sure it contains the following
Code:
Section "Device"
   Identifier "Rage128"
   Driver "rage"
   BusID "PCI:0:16:0"

        Option "UseFBDev"
        Option "AGPMode" "2"
EndSection

And at the bottom has:
Code:
Section "DRI"
   Group 0
   Mode 0666
EndSection


Anyway as I am not on my computer I can not tell if this is all correct, you can use glxinfo command to get info on whether direct rendering is working (somewhere near the top of the output), shall have a look in my XF86Config-4 file when I get home and if there is anything different then I shall amend my post.
Back to top
View user's profile Send private message
Odin
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 92

PostPosted: Tue Jun 24, 2003 5:31 pm    Post subject: Reply with quote

DRI works with my Radeon PCI in my B&W G3.. I never tried on the rage 128 before i got rid of it, sorry.
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Wed Jun 25, 2003 11:01 pm    Post subject: Reply with quote

Just had a look in my XF86Config file and there were a couple of bits that I missed, modules section looks like this:
Code:
Section "Module"
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "ddc"
        Load  "bitmap"
        Load  "freetype"
        Load  "speedo"
        Load  "type1"
        Load  "vbe"
        Load  "int10"
        Load  "xtrap"
EndSection

Device section:
Code:
Section "Device"

  ### Available Driver options are:
  Identifier      "Card0"
  Option         "UseFBDev"
  Option "ShadowFB"      "true"
  Option         "HWcursor"
  #Driver          "ati"
  Driver          "r128"
  VendorName      "ATI"
  BusID         "PCI:0:16:0"
EndSection

DRI section:
Code:
Section "DRI"

        Mode 0666
EndSection

.config should contain:
Code:
CONFIG_AGP=m
# CONFIG_AGP_INTEL is not set
# CONFIG_AGP_I810 is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD_8151 is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_SWORKS is not set
CONFIG_AGP_UNINORTH=y
CONFIG_DRM=y
# CONFIG_DRM_OLD is not set
CONFIG_DRM_NEW=y
# CONFIG_DRM_TDFX is not set
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I810_XFREE_41 is not set
# CONFIG_DRM_I830 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set


Hopefully that should all work and when you run glxinfo you should get direct rendering yes.
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Sat Jun 28, 2003 12:14 am    Post subject: Reply with quote

Hi,
thanks a lot I tried it, but I guess I have something forgotten or realy wrong . I look to my Kernel Confg, ok, I compiled it. the emerge xfree-drm, so far, no problem

so what do I have, I have the modules right in place,
xpdyinfo says :

name of display: :0.0
version number: 11.0
vendor string: Gentoo Linux (XFree86 4.3.0, revision r3)
vendor release number: 40300000
XFree86 version: 4.3.0
maximum request size: 4194300 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, MSBFirst, 32
image byte order: MSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x2200003, revert to PointerRoot
number of extensions: 30
BIG-REQUESTS
DEC-XTRAP
DOUBLE-BUFFER
DPMS
Extended-Visual-Information
FontCache
GLX
LBX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
RANDR
RECORD
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
TOG-CUP
X-Resource
XC-APPGROUP
XC-MISC
XFree86-Bigfont
XFree86-DGA
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1600x1200 pixels (542x406 millimeters)
resolution: 75x75 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x40
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xd84031
KeyPressMask EnterWindowMask LeaveWindowMask
KeymapStateMask SubstructureNotifyMask SubstructureRedirectMask
PropertyChangeMask ColormapChangeMask
number of visuals: 8
default visual id: 0x23
visual:
visual id: 0x23
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x24
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x25
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x26
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x27
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x28
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x29
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x2a
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits


So, no dri.<----

glxinfo says :
glxinfo
name of display: :0.0
Xlib: extension "XFree86-DRI" missing on display ":0.0".
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
....

Well, thats my XF86Config-4,

Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "ddc"
Load "bitmap"
Load "freetype"
Load "speedo"
Load "type1"
Load "vbe"
Load "int10"
Load "xtrap"
EndSection
....
Section "Device"
Identifier "Card0"
Option "UseFBDev"
Option "ShadowFB" "true"
Option "HWcursor"
Driver "r128"
VendorName "ATI Technologies Inc"
BoardName "Rage 128 PF/PRO AGP 4x TMDS"
BusID "PCI:0:16:0"
#Option "dpms"
#Screen 0
Option "AGPMode" "1"
Option "UseCCEFor2D" "false
EndSection

I have realy no idea, why its not running.

Xfreelog says :
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.2
(II) Loading extension XFree86-DRI
...some more
(II) LoadModule: "r128"
(II) Loading /usr/X11R6/lib/modules/drivers/r128_drv.o
(II) Module r128: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 4.0.1
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.6
....
should xfree load that, not r128 ?

Well, no idea....

Would you be so kind to post your complete XF86Config, pls ?
Thanks in advance,
kind rgds,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Wed Jul 02, 2003 5:33 pm    Post subject: Reply with quote

Sorry to not get back for ages, XF86Config-4 follows:

Code:
Section "Module"
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "ddc"
        Load  "bitmap"
        Load  "freetype"
        Load  "speedo"
        Load  "type1"
        Load  "vbe"
        Load  "int10"
        Load  "xtrap"
EndSection

Code:
Section "Device"

  ### Available Driver options are:
  Identifier      "Card0"
  Option         "UseFBDev"
  Option "ShadowFB"      "true"
  Option         "HWcursor"
  #Driver          "ati"
  Driver          "r128"
  VendorName      "ATI"
  BusID         "PCI:0:16:0"
EndSection

Code:
Section "Screen"

        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth 16
        SubSection "Display"
                Depth   1
        EndSubSection
        SubSection "Display"
                Depth   4
        EndSubSection
        SubSection "Display"
                Depth   8
                Modes "1024x768"
                ViewPort 0 0
                Virtual 1024 768
        EndSubSection
        SubSection "Display"
                Depth   15
                Modes "1024x768"
                ViewPort 0 0
                Virtual 1024 768
        EndSubSection
        SubSection "Display"
                Depth   16
                Modes "1024x768"
                ViewPort 0 0
                Virtual 1024 768
        EndSubSection
        SubSection "Display"
                Depth   24
                Modes "1024x768"
                ViewPort 0 0
                Virtual 1024 768
        EndSubSection
        SubSection "Display"
                Depth   32
                Modes "1024x768"
                ViewPort 0 0
                Virtual 1024 768
        EndSubSection
EndSection


Code:
Section "DRI"

        Mode 0666
EndSection

I think it is important to have the default colour depth of 16 in the 'Screen' section, from what I can remember 15 and 32 don't give dri.

Also I just noticed that someone has posted this topic:
https://forums.gentoo.org/viewtopic.php?t=46681&highlight=dri+rage128
It may help, not sure.

My lsmod looks like this:
Code:
ibook root # lsmod
Module                  Size  Used by    Not tainted
serial                 50584   0  (autoclean) (unused)
ipt_TOS                 1264  17  (autoclean)
ipt_REJECT              3776   2  (autoclean)
ipt_multiport            784   8  (autoclean)
ipt_MASQUERADE          1648   1  (autoclean)
iptable_mangle          2416   1  (autoclean)
iptable_nat            18068   1  (autoclean) [ipt_MASQUERADE]
ip_conntrack_irc        3040   0  (unused)
ipt_limit               1088  38  (autoclean)
ipt_state                752  19  (autoclean)
ip_conntrack           22052   3  (autoclean) [ipt_MASQUERADE iptable_nat ip_conntrack_irc ipt_state]
ipt_LOG                 3312  36  (autoclean)
ipt_unclean             6560   0  (autoclean)
ipt_ULOG                3768   0  (autoclean)
iptable_filter          1904   1  (autoclean)
ip_tables              14704  14  [ipt_TOS ipt_REJECT ipt_multiport ipt_MASQUERADE iptable_mangle iptable_nat ipt_limit ipt_state ipt_LOG ipt_unclean ipt_ULOG iptable_filter]
cryptoloop              2192   0  (unused)
cipher-serpent         21264   0  (unused)
cryptoapi               4788   5  [cryptoloop cipher-serpent]
binfmt_misc             7428   1
printer                 7792   0  (unused)
i2c-proc                8224   0  (unused)
i2c-dev                 4868   0  (unused)
i2c-keywest             7184   0  (autoclean) (unused)
dmasound_pmac          66112   0
i2c-core               14288   0  [i2c-proc i2c-dev i2c-keywest dmasound_pmac]
dmasound_core          12800   0  [dmasound_pmac]
soundcore               4376   3  [dmasound_core]
r128                   93224  12
agpgart                17964   3

I have my fingers crossed for you :)
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Wed Jul 02, 2003 8:56 pm    Post subject: Reply with quote

Thanks !

I diff it and will try that,
I guess, the 16bit hint could it be ;-)

Thanks,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
martino
n00b
n00b


Joined: 24 Jun 2003
Posts: 7
Location: UK

PostPosted: Mon Jul 07, 2003 5:15 pm    Post subject: XFree problems with depth 16 Reply with quote

OK - I have been experiencing the same difficulties as Frank. I have a similar setup (rage 128 pro) and have changed my default depth from 24 to 16 to get dri working on the above advice. however his seems to make X seriously ill. I can just manage to check that dri works in this mode before the x server hangs.

at the bottom of the XFree log file i get:

(EE) R128(0): Idle timed out, resetting engine...
(EE) R128(0): Idle timed out, resetting engine...

printed about a million times...

Would be grateful of any suggestions or help


Thanks

Marty
Back to top
View user's profile Send private message
thirteen
n00b
n00b


Joined: 25 Mar 2003
Posts: 39

PostPosted: Wed Jul 09, 2003 11:40 pm    Post subject: Reply with quote

Have included my XF86Config-4 file in it's entirity if that helps:
Code:
Section "ServerLayout"
Identifier     "XFree86 Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath     "/usr/X11R6/lib/X11/fonts/newfonts/"
FontPath        "/usr/X11R6/lib/X11/fonts/truetype"
FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "extmod"
Load  "dri"
Load  "dbe"
Load  "record"
Load  "xtrap"
Load  "glx"
Load  "speedo"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option  "Protocol"        "IMPS/2"
Option          "ZAxisMapping"  "4 5"
Option          "Device"        "/dev/input/mice"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
UseModes        "Modes0"
HorizSync       31.5-57
VertRefresh     50-90
EndSection

Section "Device"
Option     "AGPMode"                    "2"
Option     "PanelWidth"                 "1024"
Option     "PanelHeight"                "768"
Option     "UseFBDev"                   "True"
Identifier  "Card0"
Driver          "r128"
VendorName  "ATI Technologies Inc"
BoardName   "Rage Mobility M3 AGP 2x"
BusID       "PCI:0:16:0"
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "Card0"
    Monitor     "Monitor0"
    DefaultDepth 16

    Subsection "Display"
        Depth       16
        Modes       "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

Section "DRI"
        Mode 0666
EndSection

Section "Modes"
        Identifier      "Modes0"
        # mode generated by Xeasyconf
        Modeline "1024x768" 64.994 1024 1082 1218 1344  768 771 777 806  -HSync -VSync
EndSection

That is on a 600MHz ibook with 14.1" screen.
Back to top
View user's profile Send private message
dementedblitz
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 88

PostPosted: Thu Jul 10, 2003 11:33 pm    Post subject: my problems with dri Reply with quote

i tried doing emerge xfree-drm
i get the follow error
Quote:

ERROR: x11-base/xfree-drm-4.3.0.-r3 failed.
Function src_unpak, line 90, exitcode 0
please choose at least one video card..

what am i doing wrong?
_________________
"Don't let life discourage you; everyone who got where he is had to begin where he was."
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Fri Jul 11, 2003 11:51 pm    Post subject: Reply with quote

you have to set your video chip in your USE flags now so xfree-drm will build only the kernel module for your chip. look in the ebuild for the list of choices to set in your USE flags.
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Sun Jul 13, 2003 8:34 pm    Post subject: Reply with quote

yes, I think I got it....
bash-2.05b$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2

Thats my XFreeConfig (important things, the rest as mentioned above)...
Section "Device"
Identifier "Card0"
Option "AGPMode" "4"
Option "UseFBDev"
Option "ShadowFB" "true"
Option "HWcursor"
Driver "r128"
#Driver "ati"
VendorName "ATI Technologies Inc"
BoardName "Rage 128 PF/PRO AGP 4x TMDS"
BusID "PCI:0:16:0"
Option "PanelWidth" "1600"
Option "PanelHeight" "1200"
EndSection

As it was mentioned, that the card is avaible for AGP 4x, I tried it, runs.
I guess, for me the 16bit hint was it, thanks !

Now, on the trip to optimize if possibe ... ;-)

Krgds,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
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