* Seeking advice: Restoring MSI-X after device reset
@ 2013-05-14 15:06 Jimmie Mayfield
0 siblings, 0 replies; only message in thread
From: Jimmie Mayfield @ 2013-05-14 15:06 UTC (permalink / raw)
To: linux-pci
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-14 15:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 15:06 Seeking advice: Restoring MSI-X after device reset Jimmie Mayfield
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).