linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux PCI bus numbering algorithm
@ 2010-02-24  3:39 Rajat Jain
  2010-02-24  3:44 ` Greg KH
  2010-02-24  3:52 ` Rajat Jain
  0 siblings, 2 replies; 3+ messages in thread
From: Rajat Jain @ 2010-02-24  3:39 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I want to understand the algorithm Linux uses to enumerate and assign
the PCI bus numbers on a HOT-PLUGGABLE system with DUMB FIRMWARE that
has not done any PCI enumeration / resource allocation (Thus Linux needs
to do it).

1) Does Linux reserve & leave apart certain bus numbers at each PCI
bridge -in anticipation of new PCI cards (containing PCI bridges) to be
hot-lugged later on to that location? If yes, how many bus numbers does
it reserve at each bridge? 

2) Or is it totally dynamic i.e. no reserved (unused) bus numbers are
available with any bridge. Hence when a PCI card (with PCI bridges on
it) is hot-plugged, then new bus numbers are allocated for it, and then
all the PCI bridges upstream are "fixed up" so as to include this bus
numbers in their range. If yes, then wouldn't this mean renumbering
buses (perhaps leading to resource reconfiguration / reassignment?) for
existing devices, thus possible interfering with the PCI devices already
in use? 

3) I also have similar question for resource assignment. Are they also
reserved for hot-plug?

Thanks in Advance,

Rajat Jain

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

end of thread, other threads:[~2010-02-24  3:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24  3:39 Linux PCI bus numbering algorithm Rajat Jain
2010-02-24  3:44 ` Greg KH
2010-02-24  3:52 ` Rajat Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).