[SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

Kevin O'Connor kevin at koconnor.net
Tue Aug 28 19:02:04 CEST 2018


On Tue, Aug 28, 2018 at 12:14:58PM +0200, Gerd Hoffmann wrote:
>   Hi,
> 
> > > Where is the pxb-pcie device?  0000:$somewhere?  Or $domain:00:00.0?
> > 
> >  0000:$somewhere (On PCI domain 0)
> 
> Cool, so we don't have an chicken-and-egg issue.
> 
> > > If we can access pxb-pcie registers before configuring MMCFG then yes,
> > > we should use pxb-pcie registers for that.
> > 
> > Yes, we can.
> 
> Ok, so we can configure mmcfg as hidden pci bar, simliar to the q35
> mmcfg.  Any configuration hints can be passed as pci vendor capability
> (simliar to the bridge window size hints), if needed.

Just so I understand, the proposal is to have SeaBIOS search for
pxb-pcie devices on the main PCI bus and allocate address space for
each.  (These devices would not be considered pci buses in the
traditional sense.)  Then SeaBIOS will traverse that address space
(MMCFG) and allocate BARs (both address space and io space) for the
PCI devices found in that address space.  Finally, QEMU will take all
those allocations and use it when generating the ACPI tables.

Did I get that right?

-Kevin



More information about the SeaBIOS mailing list