All of lore.kernel.org
 help / color / mirror / Atom feed
* Peer bridge fixup issue under multiple pci domain
@ 2018-08-25 14:58 Zihan Yang
  2018-08-28 19:35 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Zihan Yang @ 2018-08-25 14:58 UTC (permalink / raw)
  To: linux-pci

Hi all,

I'm trying to use multiple pci domain in qemu q35, but I find there
might be some issues in peer bridge fixup.

In short, pcibios_fixup_peer_bridges function assumes only one pci
domain (0) by default. This is OK when as qemu by default uses only
one pci domain too. However, if I add another host bridge which is
put into pci domain 1 by using _SEG, and a pcie_pci_bridge is attached
to the bus 1 under this new pci domain 1 rather than domain 0, the
kernel will recognize the bus 01 differently.

More specifically, pcibios_fixup_peer_bridges only reads all the buses
under domain 0 but it can read the pci bus 01 in pci domain 1 and treat
it as a peer bus of 0000:00. The consequence is this 01 bus is recognized
as 0000:01, but it should have been recognized as 0001:01.

The host bus 0001:00 can be recognized so I guess pcibios_fixup_peer_bridges
needs updating to take care of multiple domains? Or is it just an bios issue?
I'm not quite sure and I'm open to any suggestions.

Thanks,
Ziahn

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-03  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-25 14:58 Peer bridge fixup issue under multiple pci domain Zihan Yang
2018-08-28 19:35 ` Bjorn Helgaas
2018-09-03  1:51   ` Zihan Yang
2018-09-03  1:51     ` Zihan Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.