From: Keith Busch <keith.busch@intel.com>
To: linux-pci@vger.kernel.org, alex.williamson@redhat.com,
bhelgaas@google.com
Cc: Keith Busch <keith.busch@intel.com>
Subject: [PATCHv2 0/2] PCI: driver function reset notification
Date: Mon, 13 Jan 2014 15:26:26 -0700 [thread overview]
Message-ID: <1389651988-27392-1-git-send-email-keith.busch@intel.com> (raw)
Here's version 2 of this patch with a driver implementing the intended
use as an example.
The NVMe stuff requires using the maintainer's tree to get the newly
added nvme reset handling code. Willy's repo is located here:
git.infradead.org/users/willy/linux-nvme.git
v1->v2:
As suggested, I'm reusing the slot_reset error handler instead of defining
a new one for function_reset.
I moved invoking the callback further up the this call stack. The test
case I use resets the device via sysfs, and the pci device's command
register is cleared at the previous point, so the callback couldn't
actually do anything useful other than schedule something to handle
it after pci_dev_restore is called. The previous location would break
other driver slot_reset implementations and make my nvme implementation
a little more complicated.
Actually ... I'm a little concered to be using slot_reset instead of
defining a new callback for FLR. From looking at other device drivers,
I'm not sure they would expect to have their slot_reset invoked in
this situation.
Keith Busch (2):
PCI: call pci reset callback to pci_driver on FLR
NVMe: Implement pci reset callback
drivers/block/nvme-core.c | 36 ++++++++++++++++++++++++++++++++++--
drivers/pci/pci.c | 6 ++++++
include/linux/nvme.h | 1 +
3 files changed, 41 insertions(+), 2 deletions(-)
--
1.7.10.4
next reply other threads:[~2014-01-13 22:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 22:26 Keith Busch [this message]
2014-01-13 22:26 ` [PATCHv2 1/2] PCI: call pci reset callback to pci_driver on FLR Keith Busch
2014-01-13 22:26 ` [PATCHv2 2/2] NVMe: Implement pci reset callback Keith Busch
2014-01-16 18:49 ` [PATCHv2 0/2] PCI: driver function reset notification Bjorn Helgaas
2014-01-16 19:10 ` Alex Williamson
2014-01-16 20:38 ` Keith Busch
2014-01-17 17:26 ` Bjorn Helgaas
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=1389651988-27392-1-git-send-email-keith.busch@intel.com \
--to=keith.busch@intel.com \
--cc=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--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).