Hi folks,
does anyone know how PCI based graphics cards handle access to the legacy VGA framebuffer? Typically, the location of the frame buffer is configured through the PCI "BAR" registers, which provide a linear access to the frame buffer. It seems that this frame buffer access through the PCI apperture always bypasses the (legacy) graphics controller, and is also always "chunky". Then, we have the legacy VGA address range sitting in the 0xa0000 window. It seems that this window cannot be placed in the PCI address space, is that right? Is there a way to address the VGA window through one of the PCI windows controlled through the BAR registers?
Essentially, I am trying to get something like "planar", though the graphics card sits behind a PCI bridge, so the legacy VGA window at 0xa0000 is not visible.
Legacy VGA video RAM access on PCI graphics cards
-
- Member
- Posts: 5531
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Legacy VGA video RAM access on PCI graphics cards
Maybe, but there's no standard so it'll depend on your display adapter.thorfdbg wrote:Is there a way to address the VGA window through one of the PCI windows controlled through the BAR registers?
Is there some reason you can't set the VGA Enable bit in the Bridge Control register? (You might need to configure other devices to prevent address conflicts.)thorfdbg wrote:Essentially, I am trying to get something like "planar", though the graphics card sits behind a PCI bridge, so the legacy VGA window at 0xa0000 is not visible.
Re: Legacy VGA video RAM access on PCI graphics cards
Well, this sounds interesting. Sorry, I'm not so much into the bridge chips, thus where would I find more about this?Octocontrabass wrote: Is there some reason you can't set the VGA Enable bit in the Bridge Control register? (You might need to configure other devices to prevent address conflicts.)
(This is actually a custom bridge for a non-x86 system, but it might just use one of the standard chips for moderating PCI access).
-
- Member
- Posts: 5531
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Legacy VGA video RAM access on PCI graphics cards
PCI-to-PCI bridges are part of the PCI specifications, so you can go buy the relevant document from the PCI-SIG and not use a search engine to find a leaked copy of "PCI-to-PCI Bridge Architecture Specification" for free.
Other types of bridges are not really standard, but they usually do offer VGA compatibility. Datasheets for the bridge in question should tell you everything you need to know.
Other types of bridges are not really standard, but they usually do offer VGA compatibility. Datasheets for the bridge in question should tell you everything you need to know.
Re: Legacy VGA video RAM access on PCI graphics cards
Erm, don't PCI-SIG documents cost thousands and thousands of dollars? Last time I checked they were charging absolutely outrageous prices to gain access to documents for non-members.Octocontrabass wrote:PCI-to-PCI bridges are part of the PCI specifications, so you can go buy the relevant document from the PCI-SIG and not use a search engine to find a leaked copy of "PCI-to-PCI Bridge Architecture Specification" for free.
Other types of bridges are not really standard, but they usually do offer VGA compatibility. Datasheets for the bridge in question should tell you everything you need to know.
-
- Member
- Posts: 5531
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Legacy VGA video RAM access on PCI graphics cards
Yep, this particular document costs two thousand dollars. But typing "PCI-to-PCI Bridge Architecture Specification" into a search engine and downloading a copy for free from CERN Library Catalogue would be copyright infringement, so I can't tell anyone to do that.
Re: Legacy VGA video RAM access on PCI graphics cards
@Octocontrabass