Subject: Re: "xf86MapVidMem: could not mmap to screen" problem
To: Perry Trolard <perry.trolard@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 08/25/2007 04:18:50
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Aug 25, 2007, at 02:16, Perry Trolard wrote:

>> There's this in the X log though:
>>>> (II) VGA: Generic VGA driver (version 4.0) for chipsets: generic
>
> Okay, I've included the XF86Config that the xf86config utility
> generated, and the XFree86 log file that resulted from running startx
> against that config. (I generated a new XF86Config with the utility
> because I was using something cobbled together before, and I thought
> that the new config file might eliminate what was loading the vga
> driver; but, end result: same xf86MapVidMem error...)
>
And you're absolutely sure that your kernel is built with options 
OFB_FAKE_VGA_FB ?
What happens is that XFree's r128 uses the vgahw module for stuff like 
saving the text mode status - patently useless on a mac, we don't use 
text mode - and for that puropse tries to mmap() the standard VGA 
framebuffer at 0xa0000 - also patently useless on a Mac, this range 
contains memory. What OFB_FAKE_VGA_FB does is to let userland mmap() 
what it thinks is the VGA framebuffer but hand them the first 128kB of 
actual video memory instead. Still useless but it shuts up the error.
Besides that, I /think/ I conditionally removed all references to vgahw 
from the r128 driver on non-PC platforms but I don't think that change 
made it into 3.1. Unfortunately I don't have any R128 hardware to check 
myself.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRs/l6cpnzkX8Yg2nAQJtAgf/SlaI/pbB0zzV5B7+oXd4oxFTiIFGZjY7
65Ta6QrvSUoxkXCXwlq7O7isfo9ti0pvZqvGh4749Qm6SCcDslindn5e5ktm5Rze
Kd0msvDIF/wUeYfAuEm9wyMnL6SqDqrSYscuf1ChrQxXpRwMeDWOqBXxFkMlY4wn
U8LeFox3IBAUPhF3isIQSsvjTrAcG9x0YqgL+8VT/mj1SZPOx9+K8LBasknL5vd2
HlAvYDDzbjdoAmmxuEA2pI57cU4DoId4idgHXk/I4EtAEdE6n45dOkaOiwuaH1oz
kQy7+cWNKBmFbrLxj3etNn3rOzgmvlAs5RNUTLWOOL8RCCzeOSeVKw==
=KdxR
-----END PGP SIGNATURE-----