PowerMac + Radeon startup crash: PCI resource problem w/ Linux 2.6 (long)

Albrecht Dreß albrecht.dress at arcor.de
Mon Dec 20 04:39:35 PST 2004


Hi Ben,

added the command

setpci -v -s 00:10.0 BASE_ADDRESS_1=0x800

to my rc.local for 2.6 kernels, and now X starts without problems!

		>>> THANK YOU SO MUCH FOR YOUR HELP!!! <<<

Now I can start playing with misdn+capi...

Thanks again, cheers,

	Albrecht.


Am 19.12.04 21:05 schrieb(en) Benjamin Herrenschmidt:
> Nah, it's a bit different. The kernel internally "tweaks" by adding an
> offset to the IO space of PCI domains. For example, the IO space of the
> bus where the radeon sits ended up beeing ioremap'ed in kernel virtual
> space at an address which is 0x802000 after where the bus where the ISDN
> card sits. This allows the kernel to use a single global IO base for all
> busses. X doesn't see this though afaik, as it reads the card BARs
> directly (and would have little use of that offset anyway since it's
> based on kernel virtual addresses which have no meaning outside of the
> kernel).
> 
> The PPC kernel (like a few other archs afaik) provides a special syscall
> that allows to get access to the actual domain number of a given PCI
> device, and obtain the proper IO base for it. Unfortunately, X currently
> doesn't know how to use that properly. This is also only a "workaround"
> at this point, ideally, X should stop playing those tricks on linux and
> just use the stuff as-is, mmap'ing /proc/bus/pci to access the various
> spaces, which should provide legacy IO space on a per-bus basis too.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht.dress at arcor.de
_________________________________________________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20041220/0ab12a11/attachment.pgp>


More information about the xorg mailing list