Subject: Re: ibook G3,black screen
To: Masafumi Hotta <ma-500@rj8.so-net.ne.jp>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 08/04/2007 20:01:29
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Aug 4, 2007, at 18:06, Michael Lorenz wrote:

> On Aug 4, 2007, at 09:57, Masafumi Hotta wrote:
>
>> Hello,
>>
>>>
>>> On Jul 24, 2007, at 10:53, Michael Lorenz wrote:
>>>
>>>> (EE) wsfb(0): ioctl WSDISPLAYIO_LINEBYTES: Inappropriate ioctl for
>>>> device
>>>> Oops, this is a bug. I thought I fixed it long ago, wonder how it
>>>> snuck back in.
>>>
>>> Fix committed into -current.
>>>
>>> have fun
>>> Michael
>>
>> Today I updated src xsrc, and tried "wsfb" again on iBook G3.
>> I got different error message.
>>
>> Kernel is not GENERIC, "OFB_ENABLE_CACHE" "OFB_FAKE_VGA_FB" are
>> added.
>
> You don't need OFB_FAKE_VGA_FB for wsfb - that's only needed for 
> drivers that insist on trying to mmap() the ISA VGA framebuffer.
>
>> (WW) xf86EnableIO 5
>> (II) xf86EnableIO: efda0000
>
> So XFree86 could mmap the IO range.
>
>> (II) wsfb(0): using default device
>> (II) Running in FRAMEBUFFER Mode
>> (**) wsfb(0): Depth 8, (--) framebuffer bpp 8
>> (==) wsfb(0): Default visual is PseudoColor
>> (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
>> (II) wsfb(0): Vidmem: 800k
>
> This looks ok.
>
>> (EE) wsfb(0): wsfb_mmap: Invalid argument
>
> This is odd. There was no change in ofb's mmap method lately - I'll 
> see if I can reproduce this.

Hmm, I can. Looks like wsfb tries to mmap() one page too many for some 
reason - no idea why this doesn't happen on other platforms like sparc 
or sgimips.

For some reason genfb doesn't have that problem either, and since I 
added shadowfb support it's pretty usable.

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

iQEVAwUBRrUTWcpnzkX8Yg2nAQLJbwf9EjuOIz7S572I/zqT7giBX2CFL6bwYDxA
l+jLl4uGZCR6j1LS67IimWJzwMHlNrxkreEqXEHv5rJH+oljGJvFdJOjYqz2hsfx
rm0csoylcwW0+onMDvDeSdS6fV6zHnueQni/TuqCdA8EZ46sNR1/bbbBGLGa4t/i
Zb64CkTWw9l2dKKIKm8WXKJcdaHmcjdvWKCAnUYeVJFV+/OcxK8d88lVyGr5ysiD
5Nxha4fshlv1Zg1tJHuDz0jJMYa7T/t1mbDGW3fmfV2uOc2eCflmyGPohO40PpEi
ZrbDqFZydU4InuNRam8YOxTknlCjs8XtO8j3CXwA/QMi4nekYMP3Xg==
=PhQx
-----END PGP SIGNATURE-----