From: Jimmie Mayfield <jimmie@sackheads.org>
To: linux-pci@vger.kernel.org
Subject: Seeking advice: Restoring MSI-X after device reset
Date: Tue, 14 May 2013 11:06:23 -0400 [thread overview]
Message-ID: <20130514150623.GA76670@sackheads.org> (raw)
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
reply other threads:[~2013-05-14 15:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130514150623.GA76670@sackheads.org \
--to=jimmie@sackheads.org \
--cc=linux-pci@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).