Seeking advice: Restoring MSI-X after device reset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.  I'm looking for advice on how a device driver should handle 
restoring MSI-X following a device reset.  Here's my situation: we have an 
MSI-X-capable device that for various reasons might be reset by the
device driver.  One of the features of this device is that a reset also
wipes out the MSI-X structure in MMIO address space.  

So this leads to my question:  what is the recommended way for the driver 
to restore MSI-X following such a reset?  

I suppose one (perhaps naive) way would be to do something like this:
   free all IRQs
   pci_disable_msix();
   reset device
   pci_enable_msix()
   request new IRQs

That seems unclean.  Is there a better way?

JM

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux