All times are UTC-06:00




Post new topic  Reply to topic  [ 23 posts ] 
Author Message
PostPosted: Tue Sep 05, 2006 8:34 am 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
For a few weeks now I have been using Xorg with the fbdev driver whilst I try and wrangle enough free time to work out why the 'radeon' driver can't seem to find the Radeon card I have put into my Peg2.

After a quick poke around today, I think I've found why: Xorg doesn't seem to support PCI domain selection (i.e. it assumes the card is in domain 0).

lspci outputs:
Code:
[root@iovnow ~]# lspci
0000:00:00.0 Host bridge: Marvell Technology Group Ltd. MV64360/64361/64362 System Controller (rev 03)
0000:00:01.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
0000:00:0c.0 ISA bridge: VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge] (rev 10)
0000:00:0c.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:0c.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1e)
0000:00:0c.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1e)
0000:00:0c.4 Bridge: VIA Technologies, Inc. VT8235 ACPI (rev 10)
0000:00:0c.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 40)
0000:00:0c.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 20)
0000:00:0d.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 51)
0001:01:00.0 Host bridge: Marvell Technology Group Ltd. MV64360/64361/64362 System Controller (rev 03)
0001:01:08.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (rev 01)
0001:01:08.1 Display controller: ATI Technologies Inc RV280 [Radeon 9200 PRO] (Secondary) (rev 01)
Note the PCI bus location is in the format "dddd:bb:ss.ff", where d=domain, b=bus, s=slot and f=function.

Xorg -scanpci can see every card in domain 0, but is totally unable to see anything in domain 1.
Code:
[root@iovnow ~]# Xorg -scanpci
Probing for PCI devices (Bus:Device:Function)

(0:0:0) Marvell Technology Group Ltd. MV64360/64361/64362 System Controller
(0:1:0) unknown card (0x1106/0x3044) using a VIA Technologies, Inc. IEEE 1394 Host Controller
(0:12:0) VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge]
(0:12:1) VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
(0:12:2) unknown card (0x0925/0x1234) using a VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
(0:12:3) unknown card (0x0925/0x1234) using a VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
(0:12:4) VIA Technologies, Inc. VT8235 ACPI
(0:12:5) VIA Technologies, Inc. VT82C686 AC97 Audio Controller
(0:12:6) VIA Technologies, Inc. AC'97 Modem Controller
(0:13:0) unknown card (0x3065/0x1106) using a VIA Technologies, Inc. VT6102 [Rhine-II]
So back to fbdev I go (for the time being).

Is there a quick 'n dirty hack for this, or do I have to wait for Xorg to get domain support? It looks like (from hw/xfree86/os-support/bus/linuxPci.c in the Xorg server source) that it's on the way or disabled for some not particularly obvious reason.

This is using xorg-x11-server-Xorg-1.1.1-34.fc6 and xorg-x11-drv-ati-6.6.2-1.fc6 from rawhide.


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 8:36 am 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
As a side note, I notice there is no agpgart driver for the Marvell Discovery - I can't see an AGP bridge in the device listing, so is it handled by some northbridge voodoo that I don't have to worry about or is there an outstanding necessity for an agpgart driver for this chipset?


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 11:39 am 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 297
Hi, nine!

Did you set
Option "BusType" "PCI"
in the device-section of your /etc/X11/xorg.conf ?
AGP-mode isn't possible in the Peg2!

cheers,
frostwork


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 12:07 pm 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
Quote:
Did you set
Option "BusType" "PCI"
in the device-section of your /etc/X11/xorg.conf ?
AGP-mode isn't possible in the Peg2!
I did, to no avail - it still can't see the card with or without that option being set. Xorg still seems unable to see the card, which is what is troubling me and hence leading me to think that the Xorg server package is unable to see the card owing to the lack of being able to see multiple PCI domains.

I'm new to the Pegasos II board (but not PPC systems) - is there anyone who can provide a short overview of how AGP is provided on the board? I shall try and find some Marvell documents on the system controller over the weekend and take a look but if there's an abbreviated description of what it can and can't do that would be useful.

I shall find a live CD for another distribution to see if other distros have Xorg binaries that can see the multiple PCI domains.


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 12:15 pm 
Offline

Joined: Fri Sep 24, 2004 1:39 am
Posts: 297
Arrgh, would've been too simple... :(
Just recognized your radeon-type.
Did you get it to work on an other machine with the
opensource xorg drivers? Maybe the RV280 isn't (well)
supported atm...(?).
Sorry no better idea...
friendly,
frostwork


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 12:30 pm 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
Quote:
Arrgh, would've been too simple... :(
Just recognized your radeon-type.
Did you get it to work on an other machine with the
opensource xorg drivers? Maybe the RV280 isn't (well)
supported atm...(?).
Sorry no better idea...
Actually, it was a card I took out of an x86_32 machine and it worked just fine in there.

I'll keep prodding away until I find a solution - it may be that I end up raising something in Fedora bugzilla if I end up all out of ideas.


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 1:56 pm 
The good news is that this card (RADEON 9200 - chip RV280) should be working on your PegII without any problem.
I was having a RADEON 9250 (same RV280 chip) before, and 3D was working very well with the PCI option enabled in xorg.conf (xorg 6.9 if I remember well).

The bad news : I have no idea why it does not work for you. Maybe the new drivers ?

Stupid question : but did you reboot after enabling this option ?

If not try this (that's what I had to do on Ubuntu) :


glxinfo | grep rendering
If answer is "no", 3D is not enabled. Then you must edit "/etc/X11/xorg.conf" as said Frostwork and add
Option “BusType” “PCI”
in the “device” section.

For the change been taken in account you MUST reboot.

Then try another "glxinfo | grep rendering" and tell us if it works now ("Yes" should be the answer).

And if you are a newbie, please have a look here :
http://www.wikipeg.org : "The Pegasos book".


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 2:06 pm 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
Quote:
The good news is that this card (RADEON 9200 - chip RV280) should be working on your PegII without any problem.
I was having a RADEON 9250 (same RV280 chip) before, and 3D was working very well with the PCI option enabled in xorg.conf (xorg 6.9 if I remember well).

The bad news : I have no idea why it does not work for you. Maybe the new drivers ?

Stupid question : but did you reboot after enabling this option ?
It is, in fact, a Radeon 9250 (the 128-bit DDR edition).

Are you running Fedora? Which version? Could you paste the Device section from your xorg.conf for comparison? (sorry for the torrent of questions!)

Rebooting isn't an issue - I started the Xorg server from the console and it didn't come up, so I tweaked the configuration and tried it again.


Top
   
 Post subject:
PostPosted: Tue Sep 05, 2006 3:20 pm 
I'm using Ubuntu and Gentoo mostly.
I've also installed Suse, Crux and Debian for fun but deleted those.
I've never tried Fedora sorry :-(
I don't know what's wrong with your system.
Can you launch X or not at all ?

Note : Ubuntu is really easy to install. If you want to test that your hardware is OK, I recommend installing the old Ubuntu 5.10 breezy (the latest one "Dapper" is a bit tricky to install on Peg at the moment but a LiveCD shall come sone on PPCZone).


Top
   
 Post subject:
PostPosted: Wed Sep 06, 2006 2:03 am 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
Quote:
I'm using Ubuntu and Gentoo mostly.
I've also installed Suse, Crux and Debian for fun but deleted those.
I've never tried Fedora sorry :-(
I don't know what's wrong with your system.
Can you launch X or not at all ?

Note : Ubuntu is really easy to install. If you want to test that your hardware is OK, I recommend installing the old Ubuntu 5.10 breezy (the latest one "Dapper" is a bit tricky to install on Peg at the moment but a LiveCD shall come sone on PPCZone).
Yeah, I've installed Ubuntu before (but having been a Debian user for some 8 or so years, I prefer Debian).


Top
   
PostPosted: Wed Sep 06, 2006 2:54 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
For a few weeks now I have been using Xorg with the fbdev driver whilst I try and wrangle enough free time to work out why the 'radeon' driver can't seem to find the Radeon card I have put into my Peg2.
We know, and the SUSE and Fedora guys have been told in seperate bugs and the X.org guy who moved in the new PCI scanning stuff is working on a fix.

I dunno what you're going to do about it, but hardcoding the PCI bus number and BusType PCI into X.org config should work (we had to do this a long time ago, Pegasos I type era, to get X to work :)

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Wed Sep 06, 2006 2:55 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
(the latest one "Dapper" is a bit tricky to install on Peg at the moment but a LiveCD shall come sone on PPCZone).
Who told you that?

I might put some boot kernels up there and we have a package repository and a QUICK INSTALLER, but no way are we working on an Ubuntu LiveCD.

_________________
Matt Sealey


Top
   
 Post subject:
PostPosted: Wed Sep 06, 2006 5:46 am 
Oops ! sorry Neko !
I must have misunderstood.
I thought you were to going to release a full CD from the real one + missing good kernel files and mkvmlinuz.
I you don't, I will try to do one.


Top
   
PostPosted: Wed Sep 06, 2006 5:49 am 
Offline

Joined: Mon Jul 03, 2006 7:48 am
Posts: 14
Quote:
I dunno what you're going to do about it, but hardcoding the PCI bus number and BusType PCI into X.org config should work (we had to do this a long time ago, Pegasos I type era, to get X to work :)
Aha, I see. I'll poke around the PCI code again this evening.

I guess I got my answer as to the AGP question as well, the MV64361 doesn't support AGP so there's some custom logic to bridge it to PCI.


Top
   
PostPosted: Wed Sep 06, 2006 5:55 am 
Offline
Site Admin

Joined: Fri Sep 24, 2004 1:39 am
Posts: 1589
Location: Austin, TX
Quote:
I guess I got my answer as to the AGP question as well, the MV64361 doesn't support AGP so there's some custom logic to bridge it to PCI.
AGP is just 66MHz 3.3V PCI with sideband addressing and pipelining.

Don't connect the SBAn or PIPE# pins, and it thinks it is a PCI card (i.e. FRAME# mode). No special logic here.

The same is true of the EFIKA, we have an AGP riser solution for it's PCI slot.

_________________
Matt Sealey


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  
cron
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group