Re: [PATCH RESEND 0/1] AHCI: Optimize interrupt processing

2014-09-11 Thread Alexander Gordeev
eased from 2.45 to 0.29 + 1.25 = 1.54 (about 1.6 times). The downside of this change is introduction of a kernel thread. The upside is shorter access time to port locks and moving port interrupts handling out of the hardware interrupt context. Thanks! > -- > tejun -- Regards, Alexander G

[PATCH v2] AHCI: Optimize interrupt processing

2014-09-11 Thread Alexander Gordeev
Split interrupt service routine into hardware context handler and threaded context handler. That allows to protect ports with individual locks rather than with a single host-wide lock, which results in better parallelism. Cc: linux-...@vger.kernel.org Signed-off-by: Alexander Gordeev

Re: [PATCH v4 2/4] AHCI: Move host activation code into ahci_host_activate()

2014-09-29 Thread Alexander Gordeev
(host, irq, ahci_interrupt, 0, - &ahci_highbank_platform_sht); + rc = ahci_host_activate(host, irq, &ahci_highbank_platform_sht); if (rc) goto err0; > Thanks. > > -- > tejun -- Regards, Alexander Gordeev agord...@redhat.co

[PATCH] AHCI: Move host activation code into ahci_host_activate()

2014-09-29 Thread Alexander Gordeev
Currently host activation done by calling either function ahci_host_activate() or ata_host_activate(). Consolidate the code by only calling ahci_host_activate() for all AHCI devices. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/acard-ahci.c | 3

[PATCH] AHCI: Do not read HOST_IRQ_STAT reg in multi-MSI mode

2014-09-29 Thread Alexander Gordeev
ing access to the host data is no longer needed and the interrupt service routine can avoid competing on the host lock. Signed-off-by: Alexander Gordeev Suggested-by: "Jiang, Dave" Cc: "Jiang, Dave" Cc: linux-...@vger.kernel.org --- drivers/ata/ahci.h| 2

[PATCH v5 0/5] AHCI: Optimize interrupt processing in multi-MSI mode

2014-09-29 Thread Alexander Gordeev
ation added (patch 6); Cc: linux-...@vger.kernel.org Alexander Gordeev (5): AHCI: Pass SCSI host template as arg to ahci_host_activate() AHCI: Move ahci_host_activate() function to libahci.c AHCI: Move host activation code into ahci_host_activate() AHCI: Make few function names more descri

[PATCH v5 1/5] AHCI: Pass SCSI host template as arg to ahci_host_activate()

2014-09-29 Thread Alexander Gordeev
This update is a prerequisite for consolidation of AHCI host activation code within ahci_host_activate() function. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/ahci.c | 10 +- drivers/ata/ahci.h | 3 ++- 2 files changed, 7 insertions(+), 6 deletions

[PATCH v5 4/5] AHCI: Make few function names more descriptive

2014-09-29 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/libahci.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 0080551..48175e5 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata

[PATCH v5 5/5] AHCI: Do not read HOST_IRQ_STAT reg in multi-MSI mode

2014-09-29 Thread Alexander Gordeev
ing access to the host data is no longer needed and the interrupt service routine can avoid competing on the host lock. Signed-off-by: Alexander Gordeev Suggested-by: "Jiang, Dave" Cc: "Jiang, Dave" Cc: linux-...@vger.kernel.org --- drivers/ata/ahci.h| 2

[PATCH v5 3/5] AHCI: Move host activation code into ahci_host_activate()

2014-09-29 Thread Alexander Gordeev
Currently host activation done by calling either function ahci_host_activate() or ata_host_activate(). Consolidate the code by only calling ahci_host_activate() for all AHCI devices. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/acard-ahci.c | 3

[PATCH v5 2/5] AHCI: Move ahci_host_activate() function to libahci.c

2014-09-29 Thread Alexander Gordeev
This update is a prerequisite for consolidation of AHCI host activation code within ahci_host_activate() function. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/ahci.c| 60 -- drivers/ata/libahci.c | 61

Re: [PATCH v2 1/3] PCI/MSI/PPC: Remove arch_msi_check_device()

2014-09-15 Thread Alexander Gordeev
On Mon, Sep 15, 2014 at 12:42:50PM +1000, Michael Ellerman wrote: > On Sun, 2014-09-07 at 20:57 +0200, Alexander Gordeev wrote: > > Moving MSI checks from arch_msi_check_device() function to > > arch_setup_msi_irqs() function makes code more compact and > > allows remo

Re: [PATCH v2 2/3] PCI/MSI/Armada-370-xp: Remove arch_msi_check_device()

2014-09-15 Thread Alexander Gordeev
On Mon, Sep 08, 2014 at 07:16:56AM -0400, Jason Cooper wrote: > + free-electron's guys. Hi Gentlemen, Any feedback on this patch? Thanks! > On Sun, Sep 07, 2014 at 08:57:54PM +0200, Alexander Gordeev wrote: > > Moving MSI checks from arch_msi_check_device() function to > &

[PATCH v2 1/2] xhci: Cleanup xhci_setup_msi() and xhci_setup_msix()

2014-03-06 Thread Alexander Gordeev
Make xhci_setup_msi() and xhci_setup_msix() functions return error code in a consistent and more clear way. Signed-off-by: Alexander Gordeev Cc: Sarah Sharp Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/usb/host/xhci.c |5 +++-- 1 files

[PATCH v2 2/2] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-03-06 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Sarah Sharp Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/usb/host/xhci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 6fbba7a

[PATCH v2] ioat: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-03-06 Thread Alexander Gordeev
. Function pci_enable_msix() returns a tri-state value while pci_enable_msi_exact() is a canonical zero/-errno variant. The former is being phased out in favor of the latter. In case of 'ioat' there (should be) no difference. Signed-off-by: Alexander Gordeev Cc: Dan Williams Cc: Vinod Koul

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

2014-03-11 Thread Alexander Gordeev
pu() isn't called with > holding lock inside percpu_ida_free()? Looks 'nr_free == 1' > shouldn't have happened frequently. Because bouncing on the lock is more expensive than occasionally putting a thread into sleep. > > > Thanks, > -- > Ming Lei -- Regar

Re: [PATCH] percpu_ida: Handle out-of-tags gracefully

2014-03-11 Thread Alexander Gordeev
4b/0x70 > [] do_sync_read+0x5a/0x90 > [] vfs_read+0x9b/0x160 > [] SyS_read+0x49/0xa0 > [] tracesys+0xd0/0xd5 > ---[ end trace cdd1a8a7968266cf ]--- > > Signed-off-by: Bart Van Assche > Cc: Kent Overstreet > Cc: Shaohua Li > Cc: Christoph Hellwig > Cc:

Re: [PATCH 00/14] NVMe: Cleanup device initialization

2014-03-11 Thread Alexander Gordeev
On Tue, Jan 28, 2014 at 09:38:46AM +0100, Alexander Gordeev wrote: > Here are few fixes to the code that caught my eye. Keith, Matthew? -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mess

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

2014-03-11 Thread Alexander Gordeev
put inside the previous lock: > > if (nr_free == 1) > cpumask_set_cpu() > > As I mentioned, 'nr_free == 1' doesn't happen frequently, so > it won't be big deal, will it? No. The lock will be taken *each* time in your suggestion, which

[PATCH v2 3/4] ntb: Split ntb_setup_msix() into separate BWD/SNB routines

2014-03-11 Thread Alexander Gordeev
failure. Signed-off-by: Alexander Gordeev Cc: Jon Mason Cc: linux-...@vger.kernel.org --- drivers/ntb/ntb_hw.c | 167 ++--- 1 files changed, 102 insertions(+), 65 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 53468f4

[PATCH v2 4/4] ntb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-03-11 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Jon Mason Cc: linux-...@vger.kernel.org --- drivers/ntb/ntb_hw.c | 20 +--- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/ntb/ntb_hw.c b/drivers/ntb/ntb_hw.c index 1f8decd..ff5c0a3 100644 --- a/drivers/ntb/ntb_hw.c

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

2014-03-11 Thread Alexander Gordeev
ock. > if (nr_free == 1) > cpumask_set_cpu() > > As I mentioned, 'nr_free == 1' doesn't happen frequently, so > it won't be big deal, will it? -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line

Re: [PATCH] percpu_ida: Handle out-of-tags gracefully

2014-03-11 Thread Alexander Gordeev
means we can not end up with no set bits at all - and that is the reason why BUG() is (legitimately) placed there. > Bart. -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majo

[PATCH net-next 2/2] qlcnic: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-25 Thread Alexander Gordeev
: Shahed Shaikh Cc: dept-hsglinuxnic...@qlogic.com Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic

[PATCH net-next 0/2] Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-25 Thread Alexander Gordeev
-...@vger.kernel.org Alexander Gordeev (2): i40evf: Use pci_enable_msix_range() instead of pci_enable_msix() qlcnic: Use pci_enable_msix_exact() instead of pci_enable_msix() drivers/net/ethernet/intel/i40evf/i40evf_main.c | 31 -- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c

[PATCH net-next 1/2] i40evf: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-25 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Mitch Williams Cc: Jesse Brandeburg Cc: Linux NICS Cc: e1000-de...@lists.sourceforge.net Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 31 -- 1 files changed, 11 insertions

Re: [PATCH net-next 2/2] qlcnic: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-25 Thread Alexander Gordeev
; + return err; At this point "err" could only be -ENOSPC. I am not sure why returning "err" is better, but I'll repost if you insist. > > Thanks, > Shahed > -- 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/

[PATCH v2 net-next 2/2] qlcnic: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-25 Thread Alexander Gordeev
: Shahed Shaikh Cc: dept-hsglinuxnic...@qlogic.com Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet

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

2014-02-14 Thread Alexander Gordeev
er. The good thing here that occasional unnecessary switches to the agressive mode would not hit the overall performance. Quite complicated, huh? :) -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH 4/4] percpu_ida: Do not steal all remote CPU tags at once

2014-02-16 Thread Alexander Gordeev
r stealing could be provoked. This update is an attempt to soften the described scenario and limit the number of tags to be stolen at once to the value of percpu_batch_size. Signed-off-by: Alexander Gordeev Cc: Kent Overstreet Cc: Peter Zijlstra Cc: Jens Axboe Cc: "Nicholas A. Belli

[PATCH net-next 01/35] bnx2: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Michael Chan Cc

[PATCH net-next 04/35] bna: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Rasesh Mody Cc

[PATCH net-next 09/35] cxgb4vf: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Casey Leedom Cc

[PATCH net-next 08/35] cxgb4vf: Remove superfluous call to pci_disable_msix()

2014-02-18 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 Cc: Casey Leedom Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- .../net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c|1 - 1 files changed, 0

[PATCH net-next 06/35] cxgb3: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Santosh Raspatur

[PATCH net-next 10/35] enic: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Christian Benvenuti

[PATCH net-next 02/35] bnx2x: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Ariel Elior Cc

[PATCH net-next 00/35] net: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 Thread Alexander Gordeev
...@qlogic.com Cc: linux-net-driv...@solarflare.com Cc: linux-...@vger.kernel.org Cc: linux-r...@vger.kernel.org Cc: net...@vger.kernel.org Cc: pv-driv...@vmware.com Cc: wil6...@qca.qualcomm.com Alexander Gordeev (35): bnx2: Use pci_enable_msix_range() instead of pci_enable_msix() bnx2x: Use

[PATCH net-next 11/35] benet: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Sathya Perla Cc

[PATCH net-next 07/35] cxgb4: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Dimitris

[PATCH net-next 14/35] igb: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 28/35] qlcnic: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Himanshu Madhani

[PATCH net-next 35/35] wil6210: Use pci_enable_msi_range() instead of pci_enable_msi_block()

2014-02-18 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: Vladimir Kondratiev

[PATCH net-next 22/35] vxge: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jon Mason Cc: net

[PATCH net-next 32/35] niu: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: "David S. M

[PATCH net-next 30/35] qlge: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Shahed Shaikh Cc

[PATCH net-next 31/35] sfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Shradha Shah Cc

[PATCH net-next 23/35] forcedeth: Fix invalid errno reporting in nv_request_irq()

2014-02-18 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: "David S. Miller" Cc: Patrick McHardy Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/nvidia/forcedeth.c | 22 ++ 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/ne

[PATCH net-next 29/35] qlge: Get rid of an redundant assignment

2014-02-18 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Shahed Shaikh Cc: Jitendra Kalsaria Cc: Ron Mercer Cc: linux-dri...@qlogic.com Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/qlogic/qlge/qlge_main.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git

[PATCH net-next 34/35] vmxnet3: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Shreyas Bhatewara

[PATCH net-next 13/35] i40e: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 33/35] vmxnet3: Fix MSI-X/MSI enablement code

2014-02-18 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 Cc: Shreyas Bhatewara Cc: pv-driv...@vmware.com Cc: net

[PATCH net-next 12/35] e1000e: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 26/35] netxen: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Manish Chopra Cc

[PATCH net-next 25/35] forcedeth: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: "David S. M

[PATCH net-next 27/35] qlcnic: Cleanup qlcnic_enable_msix() return values

2014-02-18 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Himanshu Madhani Cc: Rajesh Borundia Cc: Shahed Shaikh Cc: linux-dri...@qlogic.com Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 10 +- 1 files changed, 5 insertions(+), 5

[PATCH net-next 16/35] ixgbe: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 18/35] mlx4: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: "David S. M

[PATCH net-next 20/35] myri10ge: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Hyong-Youb Kim Cc

[PATCH net-next 19/35] mlx5: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Eli Cohen Cc

[PATCH net-next 21/35] s2io: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jon Mason Cc: net

[PATCH net-next 17/35] ixgbevf: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 15/35] igbvf: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Jeff Kirsher Cc

[PATCH net-next 24/35] forcedeth: Cleanup MSI-X to MSI to INTx fallback code

2014-02-18 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: "David S. Miller" Cc: Patrick McHardy Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/nvidia/forcedeth.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ether

[PATCH net-next 03/35] tg3: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Nithin Nayak Sujir

[PATCH net-next 05/35] cxgb3: Remove superfluous call to pci_disable_msix()

2014-02-18 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 Cc: Santosh Raspatur Cc: net...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c |3 --- 1 files changed, 0

[PATCH 0/2] ib: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 Thread Alexander Gordeev
: linux-r...@vger.kernel.org Cc: linux-...@vger.kernel.org Alexander Gordeev (2): mthca: Use pci_enable_msix_range() instead of pci_enable_msix() qib: Use pci_enable_msix_range() instead of pci_enable_msix() drivers/infiniband/hw/mthca/mthca_main.c |9 ++--- drivers/infiniband/hw/qib

[PATCH 2/2] qib: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Mike Marciniszyn

[PATCH 1/2] mthca: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-02-18 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: Roland Dreier Cc

Re: [PATCH 2/2] PCI/MSI: Phase out pci_enable_msi_block()

2014-04-30 Thread Alexander Gordeev
On Mon, Apr 14, 2014 at 03:28:34PM +0200, Alexander Gordeev wrote: > There are no users of pci_enable_msi_block() function have > left. Obsolete it in favor of pci_enable_msi_range() and > pci_enable_msi_exact() functions. Hi Bjorn, How about this one? Thanks! -- Regards, Alexande

Re: [PATCH 2/2] PCI/MSI: Phase out pci_enable_msi_block()

2014-05-01 Thread Alexander Gordeev
superfluous, since all state switches and allocations are done in arch_setup_msi_irqs() anyway. In fact, I think arch_msi_check_device() could be eliminated, but I do not want to engage with PPC folks at this stage ;) > arch_setup_msi_irqs() is clearly not stateless, but I assume > free_msi

Re: [PATCH RFC 0/2] percpu_ida: Take into account CPU topology when stealing tags

2014-05-01 Thread Alexander Gordeev
} - spin_unlock(&remote->lock); + spin_unlock_irqrestore(&remote->lock, flags); if (err) - goto out; + return err; } - spin_lock(&pool->lock); + spin_lock_irqsave(&am

Re: [PATCH RFC 0/2] percpu_ida: Take into account CPU topology when stealing tags

2014-05-01 Thread Alexander Gordeev
On Thu, May 01, 2014 at 11:24:42PM +0200, Alexander Gordeev wrote: > On Tue, Apr 22, 2014 at 01:56:29PM +0200, Peter Zijlstra wrote: > > I've not had time to revisit/finish them, but you should definitely > > clean up the percpu_ida stuff and reduce existing contention before

[PATCH v2 RESEND] rapidio/tsi721: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-05-13 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Matt Porter Cc: Alexandre Bounine Cc: linux-...@vger.kernel.org --- drivers/rapidio/devices/tsi721.c | 11 +++ 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/rapidio/devices/tsi721.c b/drivers/rapidio/devices/tsi721.c index

Re: [PATCH v2 RESEND] rapidio/tsi721: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-05-13 Thread Alexander Gordeev
On Tue, May 13, 2014 at 05:01:32PM +0200, Alexander Gordeev wrote: > 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

Re: [PATCH v2 RESEND] rapidio/tsi721: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-05-13 Thread Alexander Gordeev
On Tue, May 13, 2014 at 02:46:34PM -0700, Andrew Morton wrote: > On Tue, 13 May 2014 17:01:32 +0200 Alexander Gordeev > wrote: > > > As result of deprecation of MSI-X/MSI enablement functions > > pci_enable_msix() and pci_enable_msi_block() all drivers > > using thes

Re: [PATCH] ntp: make is_error_status() use its argument

2014-05-12 Thread Alexander Gordeev
No objections from me, of course. Good catch. В Mon, 12 May 2014 10:54:29 -0700 John Stultz пишет: > On 05/12/2014 06:35 AM, George Spelvin wrote: > > It's an inline function always called with the global time_status > > as an argument, so there's zero functional difference, but the > > non-CONF

Re: [PATCH 2/2] qib: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-09 Thread Alexander Gordeev
lock() 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 > > This worked fine! > > Roland, can you fix up the subj

Re: [PATCH v2 RESEND 4/4] xhci: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-03-25 Thread Alexander Gordeev
Sarah Sharp -- 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/

[PATCH RFC 1/2] sched: Introduce topology level masks and for_each_tlm() macro

2014-03-26 Thread Alexander Gordeev
rally recommended to disable preemption when calling for_each_tlm() macro. Although it is not guaranteed the finding process is not migrated to another CPU upon preemption enable, we do not want it moved in the middle of the nested loops causing accesses to the original CPU's topology level masks.

[PATCH RFC 0/2] percpu_ida: Take into account CPU topology when stealing tags

2014-03-26 Thread Alexander Gordeev
are welcomed :) Thanks! Cc: Kent Overstreet Cc: Jens Axboe Cc: Shaohua Li Cc: Nicholas Bellinger Cc: Ingo Molnar Cc: Peter Zijlstra Alexander Gordeev (2): sched: Introduce topology level masks and for_each_tlm() macro percpu_ida: Use for_each_tlm() macro for CPU lookup in steal_tags()

[PATCH RFC 2/2] percpu_ida: Use for_each_tlm() macro for CPU lookup in steal_tags()

2014-03-26 Thread Alexander Gordeev
a side effect, percpu_ida::cpu_last_stolen variable became superfluous and get eliminated. Signed-off-by: Alexander Gordeev Cc: Kent Overstreet Cc: Jens Axboe Cc: Shaohua Li Cc: Nicholas Bellinger --- include/linux/percpu_ida.h |1 - lib/percpu_ida.c | 46 ++---

[PATCH 1/2] GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Frank Haverkamp Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Acked-by: Frank Haverkamp --- drivers/misc/genwqe/card_utils.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/misc/genwqe/card_utils.c b/drivers/misc/genwqe

[PATCH 2/2] PCI/MSI: Phase out pci_enable_msi_block()

2014-04-14 Thread Alexander Gordeev
: Alexander Gordeev Cc: linux-m...@linux-mips.org Cc: linuxppc-...@lists.ozlabs.org Cc: linux-s...@vger.kernel.org Cc: x...@kernel.org Cc: linux-...@vger.kernel.org --- drivers/pci/msi.c | 79 +- include/linux/pci.h |5 +-- 2 files changed, 34

[PATCH 0/2] Phase out pci_enable_msi_block()

2014-04-14 Thread Alexander Gordeev
...@vger.kernel.org Cc: x...@kernel.org Cc: linux-...@vger.kernel.org Alexander Gordeev (2): GenWQE: Use pci_enable_msi_exact() instead of pci_enable_msi_block() PCI/MSI: Phase out pci_enable_msi_block() drivers/misc/genwqe/card_utils.c |2 +- drivers/pci/msi.c| 79

[PATCH v2 RESEND 22/23] qla4xxx: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Vikas Chaudhary Cc: iscsi-dri...@qlogic.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/qla4xxx/ql4_nx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi

[PATCH v2 RESEND 09/23] hpsa: Fallback to MSI rather than to INTx if MSI-X failed

2014-04-14 Thread Alexander Gordeev
Currently the driver falls back to INTx mode when MSI-X initialization failed. This is a suboptimal behaviour for chips that also support MSI. This update changes that behaviour and falls back to MSI mode in case MSI-X mode initialization failed. Signed-off-by: Alexander Gordeev Cc: "Step

[PATCH v2 RESEND 10/23] hpsa: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-14 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 | 29 + 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/drivers/scs

[PATCH v2 RESEND 17/23] pm8001: Fix invalid return when request_irq() failed

2014-04-14 Thread Alexander Gordeev
When a call to request_irq() failed pm8001_setup_msix() still returns the 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 Acked-by: Jack Wang

[PATCH v2 RESEND 18/23] pm8001: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. 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/scsi/pm8001/pm8001_init.c | 39 +++-- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers

[PATCH v2 RESEND 23/23] vmw_pvscsi: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Arvind Kumar Cc: pv-driv...@vmware.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org Acked-by: Arvind Kumar --- drivers/scsi/vmw_pvscsi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers

[PATCH v2 RESEND 19/23] pmcraid: Get rid of a redundant assignment

2014-04-14 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 v2 RESEND 21/23] qla2xxx: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
message code 0x00c6 preserved, although it is 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

[PATCH v2 RESEND 16/23] mpt3sas: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Nagalakshmi Nandigama Cc: Sreekanth Reddy Cc: supp...@lsi.com Cc: dl-mptfusionli...@lsi.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/mpt3sas/mpt3sas_base.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v2 RESEND 20/23] pmcraid: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-14 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 | 13 ++--- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index c06af7f..6d0f208

[PATCH v2 RESEND 14/23] megaraid: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Neela Syam Kolli Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/megaraid/megaraid_sas_base.c | 20 +++- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b

[PATCH v2 RESEND 15/23] mpt2sas: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-04-14 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Cc: Nagalakshmi Nandigama Cc: Sreekanth Reddy Cc: supp...@lsi.com Cc: dl-mptfusionli...@lsi.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/mpt2sas/mpt2sas_base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH v2 RESEND 13/23] megaraid: Fail resume if MSI-X re-initialization failed

2014-04-14 Thread Alexander Gordeev
Currently the driver fails to analize MSI-X re-enablement status on resuming and always assumes the success. This update checks the MSI-X initialization result and fails to resume if MSI-Xs re-enablement failed. Signed-off-by: Alexander Gordeev --- drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH v2 RESEND 11/23] lpfc: Remove superfluous call to pci_disable_msix()

2014-04-14 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 Cc: James Smart Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org Acked-by: James Smart --- drivers/scsi/lpfc/lpfc_init.c |9 ++--- 1 files

<    2   3   4   5   6   7   8   9   10   11   >