Re: VGA handling was [Re: Going beyond 256 PCI buses]

Matan Ziv-Av
2001-06-15T08:53:47Z

On Thu, 14 Jun 2001, David S. Miller wrote:

> James Simmons writes:
> > Actually this weekend I'm working on this for the console system. I
> > plan to get my TNT card and 3Dfx card both working at the same time both in
> > VGA text mode. If you also really want to get multiple card in vga text
> > mode it is going to get far more complex in a multihead besides the
> > problem of multiple buses.
>
> You going to have to enable/disable I/O, MEM access, and VGA pallette
> snooping in the PCI_COMMAND register of both boards every time you go
> from rendering text on one to rendering text on the other.If there
> are bridges leading to either device, you may need to fiddle with VGA
> forwarding during each switch as well.
>
> You'll also need a semaphore or similar to control this "active VGA"
> state.

Why do that? You ignore the vga regions of all the cards except for the
primary, and program all other cards by accessing their PCI mapped
regions, which are programmed not to overlap, so they are completely
independent.
This is what nvvgacon does for using text mode of secondary nvidia card.

--
Matan Ziv-Av. matan@svgalib.org