Subject: Re: Problems with new radeonfb and XFree86
To: =?ISO-8859-1?Q?Johan_Wall=E9n?= <johan.wallen+lists@tkk.fi>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 11/16/2006 18:24:16
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Nov 16, 2006, at 14:45, Johan Wall=E9n wrote:

> the new accelerated console drivers are indeed much faster (thanks for
> the good work!), but there seems to be problems with Radeon Mobility
> 9700 and XFree86 4.5: starting X (from xdm) fails with the infamous
>
>   xf86MapVidMem: could not mmap screen [s=3D100000, a=3Db0000000]
>   (Operation not supported by device)
>
> .  This seems to be different from the misfeature of the X drivers
> OFB_FAKE_VGA_FB works around.  Any clues?  (My version of XFree86 has
> a patched version of radeon_driver.c, but that patch should not break
> anything before the mmap.)

Argh, I knew I forgot something.
The original radeonfb didn't allow mmap()ing any PCI resources, so I=20
added support for that but made it optional to avoid breaking the=20
behaviour the author intended.
So what's missing in GENERIC is
options		RADEONFB_MMAP_BARS
then X should Just Work and radeonfb should restore the video mode when=20=

X exits so the console should be usable again.

sorry for that
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRVzzIMpnzkX8Yg2nAQI4MQf/dW+Ucb0L4X6+iwOG4iQeHTOtdyDARxkf
LLSuTKVwQRVvA4HvbkEAhFlkgiBBVo5nC0IvF+R0F01JrxxE7Go6ubU74HECRRlN
B/juB0oWo/KgI8kwOEe0CK+LJ8HdflkAdlXaZRWfAWsWCsd11XKGCd2P/6GAtVIB
1DELfm0fu+6eYp/VRddbWsHZwUYjsbyGJNiquc43QVqmCGHMtzbgwY1EWiQPNFbo
stUCstgUZMFULdgLhkpMe9FGnStDOCucCjyLEv+yWpBw6h73/mJo/DeM61EyJiHm
xojeR/J5eInRfgqkbfChMHdGo/1zizJKb6NxLVSdwwWAt8mBkiP58A=3D=3D
=3D2xl5
-----END PGP SIGNATURE-----