Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
has ati r128 any secret to be known to work properly ?
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
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Mar 04, 2008 12:06 pm    Post subject: has ati r128 any secret to be known to work properly ? Reply with quote

has ati r128 any secret to be known to work properly ?

hi,
i am running gentoo on a pismo upgraded to ppc7410, this machine has ati r128 video board, and she is crazing me: i emerged the wonderland from stage3 and the last portage with the following /etc/make.conf

I emerged {x11,mplayer, totem, firefox, amsn} and I am experiencing issues: when i launch a video app (mplayer/totem) i note it changes the color of the xwindows background, and when it happens sometimes firefox,amsn suddenly crash without any reason. What is happing here ? I think it should be a bug related to the ati-video board ...

the kernel 2.6.12 has been compiled without DRM, just framebuffer = aty128



have you got apple titanium power book ? In case, you should have got a 7410 cpu and ati r128 video board, so exactly what i have here on this pismo powerbook. In case, could you tell me if you have issues, or how you have fixed them ?

thank you a lot

Quote:

CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
# machine frame buffer device on PCI
#================================================
# wallstreet mach64 ATI Mach64LP
# lombard mach64 ATI Mach64LP
# pismo r128 ATI R128
# alluminium radeon ATI RADEON

LINGUAS="en"

USE="X a52 aac aalib alsa altivec arts asterisk background bidi binfilter blas
branding bzip2 cairo cdaudio cdda cddb cdio cdparanoia cdr cdrom curl
daap dbus dts dvb dvd encode esd examples fbcon ffmpeg firefox flac
freetts freetype ggi gif ginac gmp gnome gnutls graphviz gtk gzip2 hash
httpd ieee1394 imlib javascript jbig jpeg jpeg2k jsapi lame libcaca
libnotify libsamplerate live mad matroska mod mp2 mp3 mp3rtp mp4 mp4live
mpeg mpeg2 mpi msn musepack nas ogg old openssh pdf plotutils png
qt-static rtsp ruby screen script server shout skins sndfile source sox
speex spell stream streamripper svg svn-mirror svnserve tcl theora tiff
truetype upnp utils v4l v4l2 valgrind vcd vlm vorbis wxwindows xcb xim
xml xosd xpm xprint xterm xv xvid -dri -ipv6"


INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="fbdev mach64 r128 radeon"



my /etc/X11/xorg.conf

Quote:

#
# powerbook pismo fb=r128
#

Section "ServerLayout"
Identifier "X.Org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

# For X Font Server support, uncomment this and comment the other FontPaths
# Note that this is not required for most configurations
FontPath "/usr/share/fonts/util/"
FontPath "/usr/share/fonts/encodings/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/cyrillic/"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/ttf-bitstream-vera/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/default/"
EndSection

Section "Module"
Load "extmod"
Load "dri"
Load "dbe"
Load "record"
Load "glx"
Load "type1"
Load "freetype"
EndSection

Section "Extensions"
# Option "Composite" "Disable" # Experimental
EndSection

Section "ServerFlags"
Option "blank time" "10" # 10 minutes
Option "standby time" "20"
Option "suspend time" "30"
Option "off time" "60"
### Uncomment this Server flag if X should not change resolutions.
### This is useful if mode changing crashes / corrupts the X server
# Option "DisableVidModeExtensions"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
# Change "XkbModel" to "macintosh_old" if you are using
# the deprecated adb keycodes.
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbOptions" "compose:rwin"
### Uncomment this if your layout uses nodeadkeys
#Option "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
EndSection

Section "Monitor"
Identifier "Monitor0"
UseModes "Modes0"
ModelName "Monitor Model"
Option "DPMS"
HorizSync 30-70
VertRefresh 50-160
EndSection

Section "Modes"
Identifier "Modes0"

# Generated
# D: 64.994 MHz, H: 48.359 kHz, V: 59.998 Hz
Modeline "1024x768" 64.994 1024 1064 1200 1344 768 771 777 806 -HSync -VSync
EndSection

Section "Device"
Identifier "Card0"
### Available Driver options:
Option "Dac6Bit" "true" # 6bit per color
Option "DMAForXv" "true" # Use DMA for XV, reduces CPU usage
# Can cause stability problems
#Option "SWcursor" "false" # Use Software Cursor
Option "NoAccel" "false" # Disable Hardware Acceleration
Option "Display" "FP" # Display mode for devices which
# support Flat Panels. Modes:
# "FP" - Use Flat Panel
# "CRT" - Use CRT
# "Mirror" - Use both FP and CRT
### See "man r128" for additional options

### Warning: If your r128 has less than 10MB of ram (my r128 has 8Mb)
### you will only be able to use dri in 16bit color.
Driver "r128"
# Driver "ati"
# BusID "PCI:0:16:0"
Option "AGPMode" "2"
### Set AGP data transfer rate.
### (used only when DRI is enabled)
### 1x (before AGPv3 only)
### 2x (before AGPv3 only)
### 4x
### 8x (AGPv3 only)
### others invalid
### The default is to leave it unchanged.
Option "EnablePageFlip" "no"
### Enable page flipping for 3D acceleration.
### This will increase performance
### but not work correctly in some rare cases
### hence the default isoff.
Option "UseFBDev" "false"
### If wheb using OpenGL DRI or playing movies,
### the system sometimes freezes hard unexpectedly
### then the system may not cope properly with AGP
### The easiest solution is to add the following
Option "ForcePCIMode"



EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 05, 2008 6:04 am    Post subject: Reply with quote

Why are you using such an old kernel? (2.6.12?)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 05, 2008 3:07 pm    Post subject: Reply with quote

JoseJX wrote:
Why are you using such an old kernel? (2.6.12?)



'cause .23 has issue with pcmcia on this machine (pismo), while it works great about pcmcia on aluminium (yes, i solved the my irq sharing + 16bit pcmcia problem)

however, lombard is working great with 2.6.12 and his video board (ati mach64) has no issues with mplayer or related apps.

do you think the posted problem is related to the kernel framebuffer support ?
(not to the x11-video-driver about ati r128 ?)


Last edited by ddc on Wed Mar 05, 2008 5:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 05, 2008 3:12 pm    Post subject: Reply with quote

the X11 error log

Quote:



X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: UNKNOWN
Current Operating System: Linux minerva 2.6.12-woozy-numbat-apple-powerbook-G4-pismo #60 Wed Feb 20 01:10:55 CET 2008 ppc
Build Date: 03 March 2008
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jan 1 12:56:58 1904
(==) Using config file: "/etc/X11/xorg.conf"
(II) Module already built-in
(II) Module already built-in
(WW) ****INVALID IO ALLOCATION**** b: 0xf0000400 e: 0xf00004ff correcting
(EE) end of block range 0xefffffff < begin 0xf0000000
(EE) R128(0): Cannot read V_BIOS (5)
(II) Module already built-in
(II) Module already built-in

Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Mar 05, 2008 8:42 pm    Post subject: Reply with quote

Code:
(EE) end of block range 0xefffffff < begin 0xf0000000
(EE) R128(0): Cannot read V_BIOS (5)

Those two lines shouldn't be fatal. The first happens here too with a working 9200 in a mac mini. The second is logical too, since ppc machines don't have a bios. It's spits out some warnings here too, no errors though.
Are there any other (EE) lines in the log file?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 05, 2008 11:09 pm    Post subject: Reply with quote

with 2.6.12 and Xorg-base-7.2 noDRM/DRI - xf86-video-ati: unfortunately no other EE lines in the X11 logs

... this can't help to understand why video applications have issues : (
and i don't really know how to investigate why/what/where these issues are able to crash firefox or other appls. I am shocked 'cause in a *NIX system a process should crash and other process, but here mplayer is enough bad to kill the (fire)FOX
(brrr terrific)



however, i am trying with the (suggested) 2.6.23 (where i will have to fix the pcmcia issue, just fixing a problem for time : P ) ... HOPE
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 05, 2008 11:58 pm    Post subject: Reply with quote

googling i found this (http://gentoo-wiki.com/HOWTO_AIGLX)


Quote:
Accelerated Indirect GLX ("AIGLX") is an open source project founded by Red Hat and the Fedora Linux community to allow accelerated indirect Open-GL rendering capabilities to X.org and DRI drivers. This allows the xorg-server to get fully hardware accelerated rendering over the GLX protocol; this is required for OpenGL compositing window managers (such as Compiz or Beryl) to function with hardware acceleration.

The end result is that you can use GL effects on your desktop with very few changes (a slightly modified xorg.conf), the ability to turn it on and off at will, and you don't have to replace your X server in the process. AIGLX is included in xorg-server 7.1 and later.




Quote:
Cards Not Supported
* ATI: Rage 128. - Driver locking issue.
* ATI: Mach64. - No DRM support in Fedora, still insecure.



interesting: i learn what "AIGLX" is, and i learn it should not be enabled
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 12, 2008 12:42 pm    Post subject: Reply with quote

without GLX ati r128 has 90% less the issues i posted before. Good news, good news !

DRI/DRM is not working (grep -i aiglx $path /var/log/app/Xorg.0.log says NO DRI)
i don't know how to say if the agpgart is working (udev correctly makes /dev/agpgart)

has anybody an ati r128 with DRI working ? in case how to ? thank you
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 12, 2008 2:54 pm    Post subject: Reply with quote

Using such an old kernel with a recent version of DRI/DRM is asking for trouble. Try again with the latest kernel and see if that makes any difference. Also, if you're using OpenGL on that board, you probably should be using 16 bit color. See if switching to 16 bit color helps at all.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Wed Mar 12, 2008 5:08 pm    Post subject: Reply with quote

JoseJX wrote:
Using such an old kernel with a recent version of DRI/DRM is asking for trouble. Try again with the latest kernel and see if that makes any difference.


I am on the 2.6.23 now, i see just a bit of difference, but .23 doesn't solve my problem

Removing the following seems to save me from the 90% of the instabilities I am talking about

# Load "glx" # 3D layer, it has been reported to have issues with ati R128
# Load "dbe" # Double-Buffering Extension, any issue ???



Quote:
Also, if you're using OpenGL on that board, you probably should be using 16 bit color. See if switching to 16 bit color helps at all.




mmmm sorry, not understand why 16 bit
do you mean this ?
(xorg.conf)
Section "Screen"
DefaultDepth 24
(x11log)
(II) Setting vga for screen 0.
(II) R128(0): PCI bus 0 card 16 func 0
(**) R128(0): Depth 24, (--) framebuffer bpp 32
(II) R128(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
(==) R128(0): Default visual is TrueColor


in case I am using 24 color 'cause Text colors messed up when running with 16 bit color depth
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Mar 16, 2008 1:17 am    Post subject: Reply with quote

reemerging + configuring xorg.conf in a smart way, are making glxinfo able to report:
(==) AIGLX enabled
(II) AIGLX: Loaded and initialized /usr/lib/dri/r128_dri.so
direct rendering: Yes
server glx vendor string: SGI
OpenGL
vendor string: VA Linux Systems, Inc.
renderer string: Mesa DRI Rage 128 M 20051027 AGP 2x PowerPC/Altivec
version string: 1.2 Mesa 6.5.2


this is the right sequence in Section Module in the xorg.conf
{extmod,dri,dbe,record,glx,type1,freetype}

these Options could have issues EnablePageFlip=yes AGPFastWrite=true, so they should be better understood, and tested


also, now the DRI is working, but i have to understand if i will have the lock issue again ...
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