Re: Hot PCI bus plugging

Eric Lowe (elowe@myrile.madriver.k12.oh.us)
Wed, 24 Nov 1999 12:35:39 -0500 (EST)


Hello,

> > Reading this thread with much interest I just have to think how much
> > effort it is a least to get a minimal hot swapping support up and
> > running.
>
> Looks like noone brought up the subject of resource allocation, so I will.
> I don't know much about the bios and PCI as far as this goes, but doesn't
> the bios assign io/mem/irq at boot up? How would this work on hot plug pci?
> Who or what assigns the resources?

Yes you have a very good point there, that I mentioned in a private
e-mail. The BIOS does that at bootup, so we would have to assume
control of that ourselves. That wouldn't be too difficult, but would
add some housekeeping to the PCI layers -- mainly allocating and keeping
track of IRQs and base addresses/ranges. We also have to be careful
to make sure we don't share IRQs with devices that don't want to share
them -- introducing the possibility the user could insert a card that
can't get an IRQ (ouch) because there are none available. (Dang those
broken cards that don't share.. Why doesn't everybody just read the
friggin' PCI spec??? :) )

--
Eric Lowe
FibreChannel Software Engineer, Systran Corporation
elowe@systran.com

"You can't spell failure without U-R-A." -Dispair.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/