> > Yes, but maybe the library shouldn't exit completely. The cgsix driver
> > gives error no matter what resolution you try to set with the ioctl,
> > so even if you set 1152x900x8, it will fail. 
> It must succeed for the 1152x900x8 you are using. If not, it's a bug in 
> the CG6 driver.

In deed. I have just checked for at least the kgicon Permedia driver I am
using (which also goes through the fbdev interface, though it has some
extra functionality): It will autoselect the current resolution for the 
mode that is already set, so it should work out of the box.

Please try explicitly setting that mode in case the detection fails:
./demo 1152x900x8
should do the job.

If that also fails, please get back to me or the GGI list. LibGGI has lots
of internal debugging abilities. We should be able to track that problem
for you.

> > > > priv->fb_ptr = mmap(NULL, priv->mmap_size, PROT_READ | priv->PROT_WRITE,
> > > >                     MAP_SHARED, LIBGGI_FD(vis), 0);
> > > > This will not work on the cgsix, because it needs an offset of
> > > > 0x70016000 when mmapping the display. Similar, but other values on
> > > > other cards. I think cgthree needs offset 0x04000000, although I

Umm - this is a bit sick. Does that mean we will have to probe the card type
for sparc to find out these offsets ?

O.K. - if needed, we will do this, but we will need some help from people
that can at least test that.

> > > You are not serious, are you? mmapping on /dev/fb is DEFINED that at
> > > offset zero there is framebuffer with length found in fix.smem_len.

This is what I thought as well.

> > > Immediately after that there is mmio region with length fix.mmio.len.
> > > (maybe you should add PAGE_ALIGN() around fix.*_len values; but driver
> > > should report PAGE_ALIGNed values to userspace).
> > > I see no notice about smem_start, about 0x70016000 and so on in that
> > > sentece... You should fix cgsix, I think 

I think the same, however:

> > At least I have to use that offset in oFBis to mmap the display on the
> > cgsix. I got the values from the XSun X server. I can't try fbtv right
> > now.
> I think they did this to make it compatible with Xsun.

This would be a reasonable explanation. However I'd then suggest to allow
both versions for the cg6 and other cards that use it.

It shouldn't be a problem, if the framebuffer can be mapped with either
offset 0 or 0x70016000 - or ? The kernelspace mmap handler should be able to 
remap that properly, right ?

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]> =

Reply via email to