Re: [RFC PATCH] Let device drivers disable msi on shutdown

2014-07-10 Thread Bjorn Helgaas
On Thu, Jul 10, 2014 at 12:53 PM, Keith Busch wrote: > On Thu, 10 Jul 2014, Bjorn Helgaas wrote: >> >> [+cc LKML, Greg KH for driver core async shutdown question] >> On Tue, Jun 24, 2014 at 10:48:57AM -0600, Keith Busch wrote: >>> >>> To provide context why I want to do this asynchronously, NVM-Ex

Re: [RFC PATCH] Let device drivers disable msi on shutdown

2014-07-10 Thread Keith Busch
On Thu, 10 Jul 2014, Bjorn Helgaas wrote: [+cc LKML, Greg KH for driver core async shutdown question] On Tue, Jun 24, 2014 at 10:48:57AM -0600, Keith Busch wrote: To provide context why I want to do this asynchronously, NVM-Express has one PCI device per controller, of which there could be dozen

Re: [RFC PATCH] Let device drivers disable msi on shutdown

2014-07-10 Thread Bjorn Helgaas
[+cc LKML, Greg KH for driver core async shutdown question] On Tue, Jun 24, 2014 at 10:48:57AM -0600, Keith Busch wrote: > I'd like to do shutdowns asynchronously so I can shutdown multiple > devices in parallel, but the pci-driver disables interrupts after my > driver returns from its '.shutdown'

RE: [RFC PATCH] Let device drivers disable msi on shutdown

2014-06-24 Thread Keith Busch
On Tue, 24 Jun 2014, Elliott, Robert (Server Storage) wrote: 1. That will cover the .shutdown function used by mptfc.c, mptspi.c, and mptscsih.c, but mptsas.c uses mptsas_shutdown rather than mptscsih_shutdown. It doesn't call pci_disable_msi either. Missed that; thanks. 2. mptscsih_suspend

RE: [RFC PATCH] Let device drivers disable msi on shutdown

2014-06-24 Thread Elliott, Robert (Server Storage)
ndigama; Sreekanth Reddy; Bjorn Helgaas > Subject: [RFC PATCH] Let device drivers disable msi on shutdown > > I'd like to do shutdowns asynchronously so I can shutdown multiple > devices in parallel, but the pci-driver disables interrupts after my > driver returns from its '.

[RFC PATCH] Let device drivers disable msi on shutdown

2014-06-24 Thread Keith Busch
I'd like to do shutdowns asynchronously so I can shutdown multiple devices in parallel, but the pci-driver disables interrupts after my driver returns from its '.shutdown', though it needs to rely on these interrupts in its asynchronously scheduled shutdown. I tracked the reason for pci disabling