[patch] VRAM detection in controlfb
schmitz at opal.biophys.uni-duesseldorf.de
Wed Jun 7 05:25:35 EST 2000
> > > Probably XF4 handles fix.smem_start being not on a page boundary
> > > incorrectly.
> > What would it have to do to handle it?
> Round down smem_start and mmap() it, and readd the offset. Cfr.
> addr = (unsigned long)mmap(NULL, ati_smem_len, PROT_READ | PROT_WRITE,
> MAP_SHARED, fb_fd, 0);
> ati_smem = addr+ati_smem_offset;
Basically what we do in fbdev.c since two years or so (first happened on
Mac68k). But I don't think that's it: mmap would have barfed if you feed
it a start address that isn't page aligned.
Maybe a timing problem with the monitor?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev