[PATCH 01/14] NVMe: Fix setup of affinity hint for unallocated queues

2014-01-28 Thread Alexander Gordeev
IRQ affinity hints are attempted to setup for some or all queues which have not yet been allocated: either on device probe or resume. This update moves the setup after all queues are successfully created. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 12 ++-- 1

[PATCH 12/14] NVMe: Factor out nvme_init_interrupts()

2014-01-28 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 1e30c42..39868be 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block

[PATCH 09/14] NVMe: Access interrupt vectors using nvme_queue::cq_vector only

2014-01-28 Thread Alexander Gordeev
Minimize a poissible error when accessing dev-entry[] array entries using an arbitrary index rather than the legitimate nvme_queue::cq_vector value. This update also makes affinity hint setup conform to the rest of the code around. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c

[PATCH 03/14] NVMe: Cleanup nvme_create_queue() and nvme_disable_queue()

2014-01-28 Thread Alexander Gordeev
A queue structure contains both a pointer to the device it belongs to and the queue ID - there is no need to drag these parameters around. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a

[PATCH 02/14] NVMe: Cleanup nvme_alloc_queue() and nvme_free_queue()

2014-01-28 Thread Alexander Gordeev
improvements to the functions code. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 3dfb0d4..60c6c05 100644 --- a/drivers/block/nvme-core.c

[PATCH 04/14] NVMe: Cleanup adapter_alloc_cq/sg() and adapter_delete_cq/sg()

2014-01-28 Thread Alexander Gordeev
A queue structure contains both a pointer to the device it belongs to and the queue ID - there is no need to drag these parameters around. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 34 +++--- 1 files changed, 19 insertions(+), 15 deletions

[PATCH 00/14] NVMe: Cleanup device initialization

2014-01-28 Thread Alexander Gordeev
Hi Keith, Matthew, Here are few fixes to the code that caught my eye. These are unrelated to the patch "nvme: Use pci_enable_msi_range() and pci_enable_msix_range()" I sent earlier, which still waits for your review. Thanks! Alexander Gordeev (14): NVMe: Fix setup of affinit

[PATCH 05/14] NVMe: Get rid of superfluous qid parameter to nvme_init_queue()

2014-01-28 Thread Alexander Gordeev
Parameter qid is not only superfluous, but also confusing - it suggests nvme_init_queue() could reinit the queue with an ID other than index into device queues[] array. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c |8 1 files changed, 4 insertions(+), 4 deletions

[PATCH 06/14] NVMe: Get rid of superfluous dev parameter to queue_request_irq()

2014-01-28 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 661277d..f03f123 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c

[PATCH 11/14] NVMe: Factor out nvme_init_bar()

2014-01-28 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 16 ++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index d81b4c4..1e30c42 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme

[PATCH 08/14] NVMe: nvme_dev_map() is a bad place to set admin queue IRQ number

2014-01-28 Thread Alexander Gordeev
Initialization of the admin queue interrupt number within nvme_dev_map() is confusing. Just keep nvme_dev_map() and nvme_dev_unmap() counterparts simple and let deal function nvme_configure_admin_queue() with the admin queue in full. Signed-off-by: Alexander Gordeev --- drivers/block/nvme

[PATCH 10/14] NVMe: Factor out nvme_set_queue_count()

2014-01-28 Thread Alexander Gordeev
Function nvme_setup_io_queues() is quite big - make it more readable by moving out a code with clearly distinguishable functionality. This update is the first in a series. Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 28 +--- 1 files changed, 17

Re: [PATCH v2 4/9] ipr: Use pci_enable_msi_range() and pci_enable_msix_range()

2014-01-28 Thread Alexander Gordeev
On Fri, Jan 17, 2014 at 05:02:18PM +0100, Alexander Gordeev wrote: > As result deprecation of MSI-X/MSI enablement functions > pci_enable_msix() and pci_enable_msi_block() all drivers > using these two interfaces need to be updated to use the > new pci_enable_msi_range() and pci_enabl

Re: [PATCH v2 4/9] ipr: Use pci_enable_msi_range() and pci_enable_msix_range()

2014-01-29 Thread Alexander Gordeev
; Brian King > Power Linux I/O > IBM Linux Technology Center > > -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://

Re: [PATCH v2 0/9] Phase out pci_enable_msi_block()

2014-01-29 Thread Alexander Gordeev
5? Hi Gentleman, As the prerequisite commit 302a252 ("PCI/MSI: Add pci_enable_msi_range() and pci_enable_msix_range()") is in mainline now, could you please take the ACKed patches to your trees? Thanks! > Bjorn -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this

[PATCH 1/3] ath10k: Get rid of superfluous call to pci_disable_msi()

2014-01-30 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/wireless/ath/ath10k/pci.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 29fd197..6525e1f 100644 --- a/drivers/net/wireless/ath/ath10k

[PATCH v3 3/3] ath10k: Use pci_enable_msi_range()

2014-01-30 Thread Alexander Gordeev
As result deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net/wireless

[PATCH 2/3] ath10k: Disable MSI in case IRQ configuration is unknown

2014-01-30 Thread Alexander Gordeev
In case IRQ configuration is unknown possibly enabled MSIs are left enabled in ath10k_pci_deinit_irq(). This update fixes the described misbehaviour. Signed-off-by: Alexander Gordeev --- drivers/net/wireless/ath/ath10k/pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff

[PATCH v2 1/2] ipr: Get rid of superfluous call to pci_disable_msi/msix()

2014-01-30 Thread Alexander Gordeev
There is no need to call pci_disable_msi() or pci_disable_msix() in case the call to pci_enable_msi() or pci_enable_msix() failed. Signed-off-by: Alexander Gordeev --- drivers/scsi/ipr.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi

Re: [PATCH v2 4/9] ipr: Use pci_enable_msi_range() and pci_enable_msix_range()

2014-01-30 Thread Alexander Gordeev
On Wed, Jan 29, 2014 at 02:26:52PM +0100, Alexander Gordeev wrote: > > Do you want me to rediff your patches on top of this one, > > or do you want to keep the entire MSI series together > > and do the rediff? Otherwise the patches seem fine. > > I would prefer the

[PATCH v2 2/2] ipr: Use pci_enable_msi_range() and pci_enable_msix_range()

2014-01-30 Thread Alexander Gordeev
As result deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/scsi/ipr.c

[PATCH 34/34] vmxnet3: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 29/34] qlge: Get rid of an redundant assignment

2014-01-31 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/qlogic/qlge/qlge_main.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlge/qlge_main.c b/drivers/net/ethernet/qlogic/qlge/qlge_main.c index ce2cfdd..82bace5 100644 --- a/drivers/net

[PATCH 30/34] qlge: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 32/34] niu: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 31/34] efx: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 25/34] forcedeth: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 24/34] forcedeth: Cleanup MSI-X to MSI to INTx fallback code

2014-01-31 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/nvidia/forcedeth.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c index f4270b8..74da489 100644 --- a/drivers/net

[PATCH 19/34] mlx5: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 28/34] qlcnic: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 26/34] netxen: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- .../net/ethernet

[PATCH 27/34] qlcnic: Cleanup qlcnic_enable_msix() return values

2014-01-31 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index 1f79d47..3d2eb14

[PATCH 20/34] myri10ge: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 13/34] i40e: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 14/34] igb: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 22/34] vxge: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 23/34] forcedeth: Fix invalid errno reporting in nv_request_irq()

2014-01-31 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/nvidia/forcedeth.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c index 70cf97f..f4270b8 100644 --- a

[PATCH 17/34] ixgbevf: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 18/34] mlx4: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 02/34] bnx2x: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 05/34] cxgb3: Remove superfluous call to pci_disable_msix()

2014-01-31 Thread Alexander Gordeev
There is no need to call pci_disable_msix() in case the previous call to pci_enable_msix() failed Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb3

[PATCH 10/34] enic: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 11/34] benet: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 06/34] cxgb3: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 15/34] igbvf: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 12/34] e1000e: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 09/34] cxgb4vf: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- .../net/ethernet

[PATCH 08/34] cxgb4vf: Remove superfluous call to pci_disable_msix()

2014-01-31 Thread Alexander Gordeev
There is no need to call pci_disable_msix() in case the previous call to pci_enable_msix() failed Signed-off-by: Alexander Gordeev --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c|1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4vf

[PATCH 07/34] cxgb4: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 33/34] vmxnet3: Fix MSI-X/MSI enablement code

2014-01-31 Thread Alexander Gordeev
This update cleans up the MSI-X/MSI enablement code, fixes vmxnet3_acquire_msix_vectors() invalid return values and enables a dead code in case VMXNET3_LINUX_MIN_MSIX_VECT MSI-X vectors were allocated. Signed-off-by: Alexander Gordeev --- drivers/net/vmxnet3/vmxnet3_drv.c | 101

[PATCH 03/34] tg3: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 04/34] bna: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 01/34] bnx2: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 21/34] s2io: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

[PATCH 16/34] ixgbe: Use pci_enable_msix_range()

2014-01-31 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev --- drivers/net

Re: [PATCH v2 8/9] ath10k: Use pci_enable_msi_range()

2014-02-03 Thread Alexander Gordeev
Hi Kalle, Could you please review the three updated patches? Thanks! -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.

[PATCH 01/22] be2iscsi: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Jayamohan Kallickal

[PATCH 00/22] scsi: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
: qla2xxx-upstr...@qlogic.com Cc: supp...@lsi.com Cc: dl-mptfusionli...@lsi.com Cc: intel-linux-...@intel.com Cc: iss_storage...@hp.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org Alexander Gordeev (22): be2iscsi: Use pci_enable_msix_range() bfa: Do not call pci_enable_msix

[PATCH 02/22] bfa: Do not call pci_enable_msix() once it failed

2014-02-04 Thread Alexander Gordeev
Function pci_enable_msix() should not be called again in case it threw a negative errno. Signed-off-by: Alexander Gordeev Cc: Anil Gurumurthy Cc: Vijaya Mohan Guvva Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/bfa/bfad.c | 48

[PATCH 21/22] qla4xxx: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Vikas Chaudhary Cc

[PATCH 14/22] mpt2sas: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Nagalakshmi

[PATCH 09/22] hpsa: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: "Stephen M. Ca

[PATCH 08/22] hpsa: Fallback to MSI rather than to INTx if MSI-X failed

2014-02-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: "Stephen M. Cameron" Cc: iss_storage...@hp.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/hpsa.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hp

[PATCH 15/22] mpt3sas: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Nagalakshmi

[PATCH 13/22] megaraid: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Neela Syam Kolli

[PATCH 22/22] vmw_pvscsi: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Arvind Kumar Cc

[PATCH 19/22] pmcraid: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Anil Ravindranath

[PATCH 20/22] qla2xxx: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
reported after successful call to pci_enable_msix_range(), not before possibly unsuccessful call to pci_enable_msix(). Consumers of the error code should not notice the difference. Signed-off-by: Alexander Gordeev Cc: qla2xxx-upstr...@qlogic.com Cc: linux-s...@vger.kernel.org Cc: linux

[PATCH 16/22] pm8001: Fix invalid success return when request_irq() failed

2014-02-04 Thread Alexander Gordeev
When enabling MSI-X if a call to request_irq() failed pm8001_setup_msix() still returns success. This udate fixes the described misbehaviour. Signed-off-by: Alexander Gordeev Cc: xjtu...@gmail.com Cc: lindar_...@usish.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers

[PATCH 18/22] pmcraid: Get rid of a redundant assignment

2014-02-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Anil Ravindranath Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/pmcraid.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index be8ce54..c06af7f 100644

[PATCH 10/22] isci: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Lukasz Dorau Cc

[PATCH 17/22] pm8001: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: xjtu...@gmail.com

[PATCH 12/22] lpfc: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: James Smart Cc

[PATCH 11/22] lpfc: Remove superfluous call to pci_disable_msix()

2014-02-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: James Smart Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/lpfc/lpfc_init.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index

[PATCH 03/22] bfa: Cleanup bfad_setup_intr()

2014-02-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Anil Gurumurthy Cc: Vijaya Mohan Guvva Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/bfa/bfad.c | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi

[PATCH 05/22] csiostor: Remove superfluous call to pci_disable_msix()

2014-02-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Naresh Kumar Inna Cc: Arvind Bhushan Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/csiostor/csio_isr.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/csiostor/csio_isr.c b/drivers

[PATCH 07/22] fnic: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Hiral Patel Cc

[PATCH 04/22] bfa: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Anil Gurumurthy Cc

[PATCH 06/22] csiostor: Use pci_enable_msix_range()

2014-02-04 Thread Alexander Gordeev
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() and pci_enable_msix_range() interfaces. Signed-off-by: Alexander Gordeev Cc: Naresh Kumar Inna

Re: [PATCH 1/3] ath10k: Get rid of superfluous call to pci_disable_msi()

2014-02-04 Thread Alexander Gordeev
On Tue, Feb 04, 2014 at 08:32:12PM +0200, Kalle Valo wrote: > Alexander Gordeev writes: > > > Signed-off-by: Alexander Gordeev > > --- > > drivers/net/wireless/ath/ath10k/pci.c |2 -- > > 1 files changed, 0 insertions(+), 2 deletions(-) > > > > di

Re: [PATCH 1/3] ath10k: Get rid of superfluous call to pci_disable_msi()

2014-02-05 Thread Alexander Gordeev
On Wed, Feb 05, 2014 at 10:21:28AM +0200, Kalle Valo wrote: > Is it ok for me to take these patches to my ath.git tree or would you > prefer to route them some other way? Yeah, Bjorn has indicated he would pull it to his tree. I get it you are fine with 2/3 and 3/3? -- Regards, Ale

Re: [PATCH v3 6/9] nvme: Use pci_enable_msi_range() and pci_enable_msix_range()

2014-02-05 Thread Alexander Gordeev
On Mon, Jan 20, 2014 at 09:40:46AM +0100, Alexander Gordeev wrote: > As result deprecation of MSI-X/MSI enablement functions > pci_enable_msix() and pci_enable_msi_block() all drivers > using these two interfaces need to be updated to use the > new pci_enable_msi_range() and pci_enabl

Re: [PATCH RFC v2 29/29] vmxnet3: Make use of pcim_enable_msix_range() interface

2013-10-21 Thread Alexander Gordeev
rmediate number of interrupts - but > probably > only uses the minimum number. Yes, you are right. I missed the vectors = vector_threshold assignment. This driver is inapplicable as an example. -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "

Re: [PATCH RFC v2 12/29] PCI/MSI: Introduce pcim_enable_msi*() family helpers

2013-10-24 Thread Alexander Gordeev
s semantics to function name rather than to extra parameters, i.e. pcim_enable_msix_min_max(struct pci_dev *dev, struct msix_entry *entries, unsigned int minvec, unsigned int maxvec); > Some static inline functions could be used for the common cases. > > David

Re: [PATCH RFC v2 12/29] PCI/MSI: Introduce pcim_enable_msi*() family helpers

2013-10-24 Thread Alexander Gordeev
ble_msix() users. > tejun -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH RFC v2 12/29] PCI/MSI: Introduce pcim_enable_msi*() family helpers

2013-10-25 Thread Alexander Gordeev
ems more reasonable to me. > David -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Plea

Re: [PATCH v4 9/9] PCI/MSI: Introduce pci_auto_enable_msi*() family helpers

2013-12-18 Thread Alexander Gordeev
graceful and reliable, since -ENOSPC might come from anywhere. IOW, I believe we need to keep the door open for custom MSI-enablement (loop) implementations. -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&qu

Re: [PATCH v4 9/9] PCI/MSI: Introduce pci_auto_enable_msi*() family helpers

2013-12-19 Thread Alexander Gordeev
e { /* rc interrupts allocated (1, 2, 4, 8, or 16) */ } > > Bjorn -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v4 9/9] PCI/MSI: Introduce pci_auto_enable_msi*() family helpers

2013-12-20 Thread Alexander Gordeev
i_enable_msix() name, but not before all drivers converted. But considering the other thread you want to have only pci_enable_msi_range() and pci_enable_msix_range() interfaces - am I getting it right? -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the lin

Re: [PATCH v4 9/9] PCI/MSI: Introduce pci_auto_enable_msi*() family helpers

2013-12-20 Thread Alexander Gordeev
On Thu, Dec 19, 2013 at 02:37:22PM -0700, Bjorn Helgaas wrote: > On Thu, Dec 19, 2013 at 6:42 AM, Alexander Gordeev > wrote: > > On Wed, Dec 18, 2013 at 11:58:47AM -0700, Bjorn Helgaas wrote: > >> If rc == 13 and the device can only use 8, the extra 5 would be &g

[PATCH RESEND 0/3] percpu_ida: Various tweaks

2014-02-06 Thread Alexander Gordeev
Hi Kent, I am resending the series without couple of original patches. As I understand, you have not been able to find this series anywhere, so please note your ACKs to the first two ;) Thanks! Cc: Kent Overstreet Cc: Peter Zijlstra Cc: Jens Axboe Cc: "Nicholas A. Bellinger"

[PATCH RESEND 3/3] percpu_ida: Sanity check initialization parameters

2014-02-06 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Kent Overstreet Cc: Peter Zijlstra Cc: Jens Axboe Cc: "Nicholas A. Bellinger" --- lib/percpu_ida.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/percpu_ida.c b/lib/percpu_ida.c index c2fa3dc..81b5ae9 100644

[PATCH RESEND 2/3] percpu_ida: Move waking up waiters out of atomic contexts

2014-02-06 Thread Alexander Gordeev
Currently percpu_ida_free() waikes up waiters always with local interrupts disabled and sometimes with pool->lock held. Yet, it does not appear there is any reason why it could not be done out of these atomic contexts. Signed-off-by: Alexander Gordeev Cc: Kent Overstreet Cc: Peter Zijlstra

[PATCH RESEND 1/3] percpu_ida: Fix data race on cpus_have_tags cpumask

2014-02-06 Thread Alexander Gordeev
prepare_to_wait() and wake_up() calls at the moment and the aforementioned sequence does not appear could hit. Nevertheless, explicit memory barriers still seem justifiable. Signed-off-by: Alexander Gordeev Cc: Kent Overstreet Cc: Peter Zijlstra Cc: Jens Axboe Cc: "Nicholas A. Bellinger&qu

[PATCH] wil6210: Fix switch operator "missing break?" warning

2014-02-07 Thread Alexander Gordeev
This update fixes a warning introduced with commit bc977ba1 ("wil6210: Use pci_enable_msi_range() instead of pci_enable_msi_block()") drivers/net/wireless/ath/wil6210/pcie_bus.c:65 wil_if_pcie_enable() warn: missing break? reassigning 'use_msi' Signed-off-by: Alexander Gorde

Re: [patch 1/2]percpu_ida: fix a live lock

2014-02-09 Thread Alexander Gordeev
ool? Each local allocation would restart the timer, but once allocation requests stopped coming on a CPU the tags would not gather dust in local caches. -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH-v2 1/3] percpu_ida: Make percpu_ida_alloc + callers accept task state bitmask

2014-02-10 Thread Alexander Gordeev
move_tags(pool->freelist, &pool->nr_free, > tags->freelist, &tags->nr_free, > @@ -251,6 +251,8 @@ void percpu_ida_free(struct percpu_ida * > > wake_up(&pool->wait); >

Re: [PATCH] wil6210: Fix switch operator "missing break?" warning

2014-02-10 Thread Alexander Gordeev
On Mon, Feb 10, 2014 at 12:54:13PM +0200, Vladimir Kondratiev wrote: > I can't reproduce this warning. What tools used to get it? Fengguang? -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: [patch 1/2]percpu_ida: fix a live lock

2014-02-10 Thread Alexander Gordeev
le digit outstanding commands > per LUN. Do we really always need the pool for these classes of devices? Pulling tags from local caches to the pool just to (near to) dry it at the very next iteration does not seem beneficial. Not to mention caches vs pool locking complexities. -- Regards, Ale

Re: [patch 1/2]percpu_ida: fix a live lock

2014-02-10 Thread Alexander Gordeev
On Mon, Feb 10, 2014 at 01:29:42PM +0100, Alexander Gordeev wrote: > > We'll defintively need a fix to be able to allow the whole tag space. > > For large numbers of tags per device the flush might work, but for > > devices with low number of tags we need something more effi

<    4   5   6   7   8   9   10   11   12   >