Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Christoph Hellwig
If people want to use multiple queues they should use blk-mq, period. And while we can't just rip out existing code in lpfc that supports multiple queues without blk-mq we should not let any new users in either.

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Hannes Reinecke
On 11/08/2016 04:11 PM, Christoph Hellwig wrote: On Tue, Nov 08, 2016 at 04:08:51PM +0100, Hannes Reinecke wrote: The use-case here is that one needs to feed the MSI-X index into the driver command structure. While we can extract that number trivially with scsi-mq, but for scsi-sq we don't have

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Christoph Hellwig
On Tue, Nov 08, 2016 at 04:08:51PM +0100, Hannes Reinecke wrote: > The use-case here is that one needs to feed the MSI-X index into the driver > command structure. While we can extract that number trivially with scsi-mq, > but for scsi-sq we don't have such means. > The main impetus of this RFC

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Hannes Reinecke
On 11/08/2016 03:56 PM, Christoph Hellwig wrote: On Tue, Nov 08, 2016 at 08:47:21AM +0100, Hannes Reinecke wrote: Add a reverse-mapping function to return the interrupt vector for any CPU if interrupt affinity is enabled. What's the use case of it? Also as-is this won't work due to the non-af

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Christoph Hellwig
On Tue, Nov 08, 2016 at 08:47:21AM +0100, Hannes Reinecke wrote: > Add a reverse-mapping function to return the interrupt vector for > any CPU if interrupt affinity is enabled. What's the use case of it? Also as-is this won't work due to the non-affinity vectors that have the affinity set to all

Re: [RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-08 Thread Thomas Gleixner
On Tue, 8 Nov 2016, Hannes Reinecke wrote: > Add a reverse-mapping function to return the interrupt vector for > any CPU if interrupt affinity is enabled. > > Signed-off-by: Hannes Reinecke > --- > drivers/pci/msi.c | 36 > include/linux/pci.h | 1 + > 2

[RFC PATCH] pci: add pci_irq_get_affinity_vector()

2016-11-07 Thread Hannes Reinecke
Add a reverse-mapping function to return the interrupt vector for any CPU if interrupt affinity is enabled. Signed-off-by: Hannes Reinecke --- drivers/pci/msi.c | 36 include/linux/pci.h | 1 + 2 files changed, 37 insertions(+) diff --git a/drivers/pci/ms