Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Radeon KMS doesn't work on G4
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
Tickeldi
n00b
n00b


Joined: 17 Mar 2009
Posts: 43
Location: Norddeutschland

PostPosted: Wed Mar 30, 2011 8:56 pm    Post subject: Radeon KMS doesn't work on G4 Reply with quote

Hello guys.

After I exhausted every possibility I could think of and google and forum search won't reveal anything new I need your help here.
I have a G4 PowerBook with the following graphic adapter:

ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]

Configured as a framebuffer device X11 works absolutely fine but, of course, I won't get dri with that:

Quote:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on softpipe


So I set the following options in the Kernel to have the radeon drm takeover and not radeonfb:

Quote:

Device Drivers --->

Graphics support --->
<*> /dev/agpgart (AGP Support) --->
<*> Apple UniNorth & U3 AGP support

<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
<*> ATI Radeon
[*] Enable modesetting on radeon by default - NEW DRIVER

-*- Support for frame buffer devices --->
[*] Open Firmware frame buffer device support
[*] Apple "control" display support
[*] Apple "platinum" display support
[*] Apple "valkyrie" display support
< > ATI Radeon display support

Console display driver support --->
-*- Framebuffer Console support


But if I try to boot with such a setup the screen turns blank (meaning black) after showing me the initial startup sequence. So something about the KMS doesn't work. I am not able to access anything and I can not determine if the system freezes or not and I can not access log files. I am not sure if I would be when using a live cd to boot.

So what am I doing wrong? Here are some infos that may or not be useful.

emerge --info
Code:

Portage 2.2.0_alpha28_p36 (default/linux/powerpc/ppc32/10.0/desktop/gnome, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo-r1 ppc)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-ppc-7447A,_altivec_supported-with-gentoo-1.12.14
Timestamp of tree: Wed, 30 Mar 2011 02:45:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo enlightenment
Installed sets:
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=7450 -O2 -pipe -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync15.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk iconv ipv6 jpeg lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 r300 readline samba sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


lspci
Code:

0000:00:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 AGP
0000:00:10.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]
0001:10:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 PCI
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
0001:10:13.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
0001:10:17.0 Class ff00: Apple Computer Inc. KeyLargo/Intrepid Mac I/O
0001:10:18.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:19.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1a.0 USB Controller: Apple Computer Inc. KeyLargo/Intrepid USB
0001:10:1b.0 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.1 USB Controller: NEC Corporation USB (rev 43)
0001:10:1b.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
0002:24:0b.0 Host bridge: Apple Computer Inc. UniNorth 2 Internal PCI
0002:24:0d.0 Class ff00: Apple Computer Inc. UniNorth/Intrepid ATA/100
0002:24:0e.0 FireWire (IEEE 1394): Apple Computer Inc. UniNorth 2 FireWire (rev 81)
0002:24:0f.0 Ethernet controller: Apple Computer Inc. UniNorth 2 GMAC (Sun GEM) (rev 80)

_________________
"Linux basiert doch auf DOS oder nicht?" *schüttel*
Back to top
View user's profile Send private message
dobbs
Tux's lil' helper
Tux's lil' helper


Joined: 20 Aug 2005
Posts: 105
Location: Wenatchee, WA

PostPosted: Thu Mar 31, 2011 3:25 am    Post subject: Reply with quote

Well, as far as determining if the system freezes or not, I'd suggesting using network tools. Ping it, try to SSH into it...

At what point in the boot process do you lose your video -- while the kernel is probing hardware or after init scripts begin loading? Do you have the xdm initscript set to load at boot? Does your backlight remain lit?

If it's just X going out to lunch, you might try hitting fn-ctl-alt-F1 to switch to a text console. I've had that not work even when the system wasn't frozen, though.
Back to top
View user's profile Send private message
Tickeldi
n00b
n00b


Joined: 17 Mar 2009
Posts: 43
Location: Norddeutschland

PostPosted: Thu Mar 31, 2011 2:32 pm    Post subject: Reply with quote

Right now I am managing my network with networkmanager and nm-applet and that doesn't grab an ip until X fired up. I will have to change that and give it a try this evening.

I think it went black right after the probing (or during even, I can see kernel messages however). This would be consistent with the fact that I built the radeon driver in the kernel. The backlight remains lit.

fn-ctrl-alt-F1 didn't do anything as expected.
Should I rather build radeon kms as a module? In combination with radeonfb everything works but then it renders on software. Do I need to build in radeonfb and deactivate it otherwise? I think I'll try blacklisting.
_________________
"Linux basiert doch auf DOS oder nicht?" *schüttel*
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Mar 31, 2011 2:36 pm    Post subject: Reply with quote

radeon KMS implements vesafb/offb handover but the reports on how well that works are mixed. It is best to leave all fb drivers disabled.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 31, 2011 5:19 pm    Post subject: Reply with quote

As far as I know, PowerPC still requires a framebuffer device, otherwise there is no boot console. As of the last time I tried KMS, it was a pretty terrible experience on my PB G4 with an R300. Sleep and screen brightness do not work and it will lock up unless the AGP speed is fixed to 1x. To do this, add this to your yaboot configuration: "append=radeon.agpmode=1"

It is still recommended to stick with UMS for now (See BenH's post here: http://www.mail-archive.com/debian-powerpc@lists.debian.org/msg62503.html) but that won't allow DRM either due to an OpenGL bug in the old driver (see here: https://bugs.freedesktop.org/show_bug.cgi?id=26496).

Not much choice now, but it is slowly being worked on. Sorry!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Tickeldi
n00b
n00b


Joined: 17 Mar 2009
Posts: 43
Location: Norddeutschland

PostPosted: Fri Apr 01, 2011 7:31 pm    Post subject: Reply with quote

Quote:
As far as I know, PowerPC still requires a framebuffer device, otherwise there is no boot console.

That is what I was reading. Somehow I hoped that the radeon KMS driver would provide such a framebuffer but now I get it.


What made me think that I could make it work was this:
http://us.generation-nt.com/answer/how-activate-kms-radeon-video-card-powerpc-help-196523701.html
Somebody there could get direct rendering via radeon working. With a debian kernel. However I may have missed something.

I am satisfied with how things are. I just thought I am doing something wrong. I hope to be able to have drm in the future though.

Thanks for the info.
_________________
"Linux basiert doch auf DOS oder nicht?" *schüttel*
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Apr 01, 2011 8:16 pm    Post subject: Reply with quote

For what it's worth, with the above configuration, I was able to get DRM working, but the result was slower than the old UMS driver on my Powerbook and with the other drawbacks, having really slow 3D support wasn't worth all the extra trouble. Your priorities might differ though. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Tickeldi
n00b
n00b


Joined: 17 Mar 2009
Posts: 43
Location: Norddeutschland

PostPosted: Sat Apr 02, 2011 12:59 am    Post subject: Reply with quote

Nah. Not really. Most games I play (like battle of wesnoth) are 2d based and work fine without. It is more about having a "perfectly" running system and maybe an opengl drawn video playback. Also I may like to use compiz in the long run and thats not really good on software rendering.

However thanks again for the expertise and fast answers. I couldn't get those infos in such a clarity from the web and I am satisfied by knowing that there is no better way to do it right now.
_________________
"Linux basiert doch auf DOS oder nicht?" *schüttel*
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