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 18:06:02
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

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.
Did you get any additional kernel output?

Meanwhile please try this instead:
- - remove all references to ofb from your kernel config
- - add this:
genfb* at pci?
wsdisplay* at genfb?
and see if X does any better. Genfb is a more generic framebuffer 
driver, it doesn't contain anything macppc-specific and works for 
instance on sparc too. It doesn't know about enabling cacheing for the 
framebuffer though.

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

iQEVAwUBRrT4ScpnzkX8Yg2nAQIRTAf+Jk8JEPIHJNd7lBG+ObOZ+0K3ZQYCjSAE
1GglfKE/IsEr968eD7ZwAXDraiWvtJrP59tvep9WSSkKWazZt4s9Pz1bqLeupxVh
FqdBrthOPuKklTpzYD9h7l79hmbsQNET6HfYDCp6kW6PEzSkSsUKSR7lfR6moh1Q
Os0Sui8Pjp97ElVtztcYkUf7VX/7FDOAoe1RNwAgx90qijZMd3+qER0B8G04q8jL
lU51hmMOuwsoDr4hYnxpwsZg+HAFrfYpYqF/2sns750asVVWQcjUSeb2ber4LvU6
/6lihIsGuyPk4IZkRRCdU0RIRkeMDti7vlD/kE9PnyIYJOTKyONyyA==
=lzM9
-----END PGP SIGNATURE-----