Re: [PATCH 12/13] nvme: switch to use pci_alloc_irq_vectors

2016-07-09 Thread Christoph Hellwig
On Thu, Jul 07, 2016 at 09:30:19PM +0200, Alexander Gordeev wrote: > On Mon, Jul 04, 2016 at 05:39:33PM +0900, Christoph Hellwig wrote: > > @@ -1575,6 +1546,7 @@ static int nvme_dev_add(struct nvme_dev *dev) > > dev->tagset.cmd_size = nvme_cmd_size(dev); > > dev->tagset.flag

Re: [PATCH 12/13] nvme: switch to use pci_alloc_irq_vectors

2016-07-07 Thread Alexander Gordeev
On Mon, Jul 04, 2016 at 05:39:33PM +0900, Christoph Hellwig wrote: > @@ -1575,6 +1546,7 @@ static int nvme_dev_add(struct nvme_dev *dev) > dev->tagset.cmd_size = nvme_cmd_size(dev); > dev->tagset.flags = BLK_MQ_F_SHOULD_MERGE; > dev->tagset.driver_data = de

[PATCH 12/13] nvme: switch to use pci_alloc_irq_vectors

2016-07-04 Thread Christoph Hellwig
Use the new helper to automatically select the right interrupt type, as well as to use the automatic interupt affinity assignment. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 98 ++--- 1 file changed, 27 insertions(+), 71 deletions(-

[PATCH 12/13] nvme: switch to use pci_alloc_irq_vectors

2016-06-14 Thread Christoph Hellwig
This sorts out MSI-X vs MSI vs legacy irq, as well as IRQ affinity under the hood. Signed-off-by: Christoph Hellwig --- drivers/nvme/host/pci.c | 89 + 1 file changed, 23 insertions(+), 66 deletions(-) diff --git a/drivers/nvme/host/pci.c b/driver