[openib-general] svn patches.

Roland Dreier
Wed Apr 28 14:56:38 PDT 2004


    Greg> Hahaha, you all only support 2 devices?  And it's either 1
    Greg> or the other?  What about more than 1 controller in a system
    Greg> at the same time?  What about PCI hotplug systems?  This
    Greg> code is guaranteed to do very bad things to the system if
    Greg> someone removes the controller while the driver is still
    Greg> bound.

Seems like you're looking at the SRP driver.  That hack obviously
needs to go away.  Basically we need to add a method to the core HCA
driver to return a pointer to the device so that ULPs can use it for
DMA mapping and other stuff (like passing to scsi_set_pci_device).

In fact that's one of the things that I'm trying to figure out how to
do in a way portable between 2.4 and 2.6.  For 2.6 we clearly want to
just use a struct device * (since there are devices we care about on
things like a PPC4xx EPB rather than PCI), but the device model and
generic DMA mapping API doesn't exist on 2.4.

Hotplug is an even bigger can of worms.  I don't know what the heck we
do for stuff like userspace processes that have registered memory with
an HCA that is no longer attached to the system.

 - Roland

-- 
To unsubscribe send an email with subject unsubscribe to openib-general at openib.org.
Please contact moderator at openib.org for questions.




More information about the openib-general mailing list