Re: [RFC] PCI bridge driver rewrite

Adam Belay
2005-02-24T07:04:41Z

On Thu, 2005-02-24 at 01:45 -0500, Jon Smirl wrote:
> On Thu, 24 Feb 2005 01:22:01 -0500, Adam Belay <abelay@novell.com> wrote:
> > For the past couple weeks I have been reorganizing the PCI subsystem to
> > better utilize the driver model. Specifically, the bus detection code
> > is now using a standard PCI driver. It turns out to be a major
>
> What about VGA routing? Most PCI buses do it with the normal VGA bit
> but big hardware supports multiple legacy IO spaces via the bridge
> chips.
>
> Are you going to make sysfs entries for the bridges? If so I'd like a
> VGA attribute that directly reads the VGA bit from the hardware and
> display it instead of using the shadow copy.

Yeah, actually I've been thinking about this issue a lot. I think it
would make a lot of sense to export this sort of thing under the
"pci_bus" class in sysfs. The ISA enable bit should probably also be
exported. Furthermore, we should be verifying the BIOS's configuration
of VGA and ISA. I'll try to integrate this in my future releases. I
appreciate the code.

I also have a number of resource management plans for the VGA enable bit
that I'll get into in my next set of patches.

>
> Jesse can comment on the specific support needed for multiple legacy IO spaces.
>

That would be great. Most of my experience has been with only a couple
legacy IO port ranges passing through the bridge.

Thanks,
Adam