Re: [PATCH v3 00/11] Introduce pcim_enable_msi*() family helpers

2013-12-06 Thread Alexander Gordeev
On Tue, Nov 26, 2013 at 10:09:49AM +0100, Alexander Gordeev wrote: > Patches 3,4 - fixes for PowerPC pSeries platform [...] > PCI/MSI/pSeries: Fix wrong error code reporting > PCI/MSI/pSeries: Make quota traversing and requesting race-safe Hi Bjorn, The two unreviewed PowerPC p

[PATCH RFC v2 0/4] perf: IRQ-bound performance events

2014-01-04 Thread Alexander Gordeev
16:36 EST -0.484913 seconds Performance counter stats for 'system wide': 374 L1-dcache-load-misses 0.485939068 seconds time elapsed The patchset is against Arnaldo's repo, in "perf/core" branch. The

[PATCH RFC v2 3/4] perf/x86/Intel: IRQ-bound performance events

2014-01-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- arch/x86/kernel/cpu/perf_event.h |5 ++ arch/x86/kernel/cpu/perf_event_intel.c | 72 +++ 2 files changed, 67 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu

[PATCH RFC v2 4/4] perf/tool: IRQ-bound performance events

2014-01-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- tools/perf/builtin-stat.c |9 + tools/perf/util/evlist.c | 38 ++ tools/perf/util/evlist.h |3 +++ tools/perf/util/evsel.c|8 tools/perf/util/evsel.h|3

[PATCH RFC v2 2/4] perf/x86: IRQ-bound performance events

2014-01-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- arch/x86/kernel/cpu/perf_event.c | 55 +++- arch/x86/kernel/cpu/perf_event.h | 10 ++ arch/x86/kernel/cpu/perf_event_amd.c |2 + arch/x86/kernel/cpu/perf_event_intel.c |4 ++ arch/x86/kernel/cpu

[PATCH RFC v2 1/4] perf/core: IRQ-bound performance events

2014-01-04 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev --- include/linux/irq.h | 10 + include/linux/irqdesc.h |4 + include/linux/perf_event.h | 24 +++ include/uapi/linux/perf_event.h | 15 ++- kernel/events/Makefile |2 +- kernel/events/core.c| 176

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

2013-12-23 Thread Alexander Gordeev
might be larger than the returned value, but the driver may not use the extra vectors it did not request. -- 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

[PATCH v5 1/4] PCI/MSI: Factor out pci_msi_vec_count() interface

2013-12-29 Thread Alexander Gordeev
Device drivers can use this interface to obtain maximum number of MSI interrupts the device supports and use that number i.e. in a following call to pci_enable_msi_block() interface. Signed-off-by: Alexander Gordeev Reviewed-by: Tejun Heo --- Documentation/PCI/MSI-HOWTO.txt | 15

[PATCH v5 2/4] PCI/MSI: Get rid of pci_enable_msi_block_auto() interface

2013-12-29 Thread Alexander Gordeev
pci_enable_msi_block_auto() has been introduced recently and its only user is AHCI driver, which is also updated by this change. Signed-off-by: Alexander Gordeev Acked-by: Tejun Heo --- Documentation/PCI/MSI-HOWTO.txt | 39 --- drivers/ata/ahci.c | 56

[PATCH v5 0/4] Introduce pci_enable_msi/msix_range() interfaces

2013-12-29 Thread Alexander Gordeev
drivers are expected to have more clearer and straight code. The tree could be found in "pci-next-msi-v5" branch in repo: https://github.com/a-gordeev/linux.git Alexander Gordeev (4): PCI/MSI: Factor out pci_msi_vec_count() interface PCI/MSI: Get rid of pci_enable_msi_block_

[PATCH v5 3/4] PCI/MSI: Introduce pci_msix_vec_count() interface

2013-12-29 Thread Alexander Gordeev
this change. Signed-off-by: Alexander Gordeev Reviewed-by: Tejun Heo --- Documentation/PCI/MSI-HOWTO.txt | 13 + drivers/pci/msi.c | 18 +- drivers/pci/pcie/portdrv_core.c |7 --- include/linux/pci.h |6 +++--- 4 files changed

[PATCH v5 4/4] PCI/MSI: Introduce pci_enable_msi/msix_range() interfaces

2013-12-29 Thread Alexander Gordeev
e fallback logic behind the implementation. As result, device drivers are expected to have more clearer and straight code. Signed-off-by: Alexander Gordeev Suggested-by: Ben Hutchings Reviewed-by: Tejun Heo --- Documentation/PCI/MSI-HOWTO.txt | 261 --- d

Re: [PATCH v3 11/13] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-21 Thread Alexander Gordeev
Reviewed-by: Tomas Henzl Christoph, this patch was declined by James few times. I think it needs his approval as well. James? Thanks! -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

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

2014-08-25 Thread Alexander Gordeev
On Fri, Mar 07, 2014 at 08:49:32AM +0100, 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] crypto: qat - Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-29 Thread Alexander Gordeev
On Tue, Aug 19, 2014 at 09:32:04AM +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 1/2] PCI/MSI/PPC: Remove arch_msi_check_device()

2014-08-19 Thread Alexander Gordeev
On Thu, Jul 31, 2014 at 03:53:33PM +0200, Alexander Gordeev wrote: > Michael, Ben, > > Any feedback? Michael, Ben? > Thanks! -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] crypto: qat - Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-19 Thread Alexander Gordeev
: Tadeusz Struk Cc: Herbert Xu Cc: "David S. Miller" Cc: qat-li...@intel.com Cc: linux-cry...@vger.kernel.org Cc: linux-...@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/crypto/qat/qat_dh895xcc/adf_isr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) di

Re: [PATCH v3 00/13] scsi: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-20 Thread Alexander Gordeev
been reviewed for several months. -- 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

[PATCH 1/3] blk-mq: Cleanup blk_mq_tag_busy() and blk_mq_tag_idle()

2014-09-03 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Jens Axboe --- block/blk-mq-tag.c | 4 +--- block/blk-mq-tag.h | 17 - 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index c1b9242..4953b64 100644 --- a/block/blk-mq-tag.c +++ b/block

[PATCH 3/3] blk-mq: Fix formula to calculate fair share of tags

2014-09-03 Thread Alexander Gordeev
Fair share of tags is number of tags diveded on number of users. Not sure why it is different. Signed-off-by: Alexander Gordeev Cc: Jens Axboe --- block/blk-mq-tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index d1eb579

[PATCH 2/3] blk-mq: Eliminate superfluous check of BLK_MQ_S_TAG_ACTIVE flag

2014-09-03 Thread Alexander Gordeev
Signed-off-by: Alexander Gordeev Cc: Jens Axboe --- block/blk-mq-tag.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c index 4953b64..d1eb579 100644 --- a/block/blk-mq-tag.c +++ b/block/blk-mq-tag.c @@ -60,8 +60,7 @@ static inline

[PATCH 0/3] blk-mq: Minor tweaks

2014-09-03 Thread Alexander Gordeev
Hi Jens, These are few changes to blk-mq/blk-mq-tag, nothing really serious. Cc: Jens Axboe Alexander Gordeev (3): blk-mq: Cleanup blk_mq_tag_busy() and blk_mq_tag_idle() blk-mq: Eliminate superfluous check of BLK_MQ_S_TAG_ACTIVE flag blk-mq: Fix formula to calculate fair share of tags

Re: [PATCH v3 11/13] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-09-04 Thread Alexander Gordeev
On Mon, Aug 18, 2014 at 08:01:51AM +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

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

2014-09-07 Thread Alexander Gordeev
: Alexander Gordeev --- arch/powerpc/include/asm/machdep.h | 2 -- arch/powerpc/kernel/msi.c | 12 +- arch/powerpc/platforms/cell/axon_msi.c | 9 arch/powerpc/platforms/powernv/pci.c | 19 --- arch/powerpc/platforms/pseries/msi.c | 42

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

2014-09-07 Thread Alexander Gordeev
Moving MSI checks from arch_msi_check_device() function to arch_setup_msi_irqs() function makes code more compact and allows removing unnecessary hook arch_msi_check_device() from generic MSI code. Cc: Thomas Gleixner Cc: Jason Cooper Cc: linux-...@vger.kernel.org Signed-off-by: Alexander

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

2014-09-07 Thread Alexander Gordeev
-...@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/pci/msi.c | 49 + include/linux/msi.h | 3 --- 2 files changed, 13 insertions(+), 39 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 5a40516..6c2cc41 100644 --- a

[PATCH v2 0/3] PCI/MSI: Remove arch_msi_check_device()

2014-09-07 Thread Alexander Gordeev
- patch 3: msi_check_device() renamed to pci_msi_supported(). This is the very same patch I sent earlier; Thanks! Cc: Thomas Gleixner Cc: Jason Cooper Cc: Michael Ellerman Cc: linuxppc-...@lists.ozlabs.org Cc: linux-...@vger.kernel.org Alexander Gordeev (3):

Re: [PATCH 0/2] PCI/MSI: Remove arch_msi_check_device()

2014-09-07 Thread Alexander Gordeev
i would not cause trouble for anyone. > Oh, I forgot -- if you'd rather take the first one through the PPC > tree, you can do that and I can merge the second one later. Let me > know if you want to do that. Nah, your treee is just fine. Thanks! > Bjorn -- Regards, Alexander

Re: [PATCH v2 RESEND 01/23] be2iscsi: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Mon, Jul 28, 2014 at 11:29:51PM +, Jayamohan Kallickal wrote: > > > -Original Message- > From: Alexander Gordeev [mailto:agord...@redhat.com] > Sent: Saturday, July 26, 2014 1:09 AM > To: linux-kernel@vger.kernel.org; Jayamohan Kallickal > Subject: Re: [

Re: [PATCH v2 RESEND 04/23] bfa: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Wed, Jul 16, 2014 at 08:05:08PM +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 06/23] csiostor: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Wed, Jul 16, 2014 at 08:05:10PM +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 08/23] hpsa: Fallback to MSI rather than to INTx if MSI-X failed

2014-08-11 Thread Alexander Gordeev
On Sat, Jul 26, 2014 at 09:16:47AM +0100, Alexander Gordeev wrote: > On Wed, Jul 16, 2014 at 08:05:12PM +0200, Alexander Gordeev wrote: > > Currently the driver falls back to INTx mode when MSI-X > > initialization failed. This is a suboptimal behaviour > > for chips that a

Re: [PATCH v2 RESEND 12/23] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Sat, Jul 26, 2014 at 09:22:27AM +0100, Alexander Gordeev wrote: > On Wed, Jul 16, 2014 at 08:05:16PM +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 t

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

2014-08-11 Thread Alexander Gordeev
On Mon, Jul 28, 2014 at 11:26:13AM +0530, Kashyap Desai wrote: > > -Original Message- > > From: Alexander Gordeev [mailto:agord...@redhat.com] > > Sent: Saturday, July 26, 2014 1:54 PM > > To: linux-kernel@vger.kernel.org; Neela Syam Kolli > > Subject: Re: [P

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

2014-08-11 Thread Alexander Gordeev
On Wed, Jul 16, 2014 at 08:05:18PM +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 16/23] mpt3sas: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Wed, Jul 16, 2014 at 08:05:20PM +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 17/23] pm8001: Fix invalid return when request_irq() failed

2014-08-11 Thread Alexander Gordeev
On Tue, Jul 29, 2014 at 07:24:03AM -0700, Christoph Hellwig wrote: > On Tue, Jul 29, 2014 at 04:15:45PM +0200, Alexander Gordeev wrote: > > Hmm.. 18/23 applies with a minor fuzz against > > git://git.infradead.org/users/hch/scsi-queue.git drivers-for-3.17 > > Okay, it was ju

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

2014-08-11 Thread Alexander Gordeev
On Mon, Jul 28, 2014 at 11:47:19AM +, Vikas Chaudhary wrote: > > Acked-By: Vikas Chaudhary Christoph, This patch seems ready.. > On 26/07/14 2:11 pm, "Alexander Gordeev" wrote: > > >On Wed, Jul 16, 2014 at 08:05:26PM +0200, Alexander Gordeev wrote: > >&

Re: [PATCH v2 RESEND 21/23] qla2xxx: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-11 Thread Alexander Gordeev
On Wed, Jul 16, 2014 at 08:05:25PM +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

[PATCH v2 2/2] PCI/MSI: Remove arch_msi_check_device()

2014-08-11 Thread Alexander Gordeev
-off-by: Alexander Gordeev --- drivers/pci/msi.c | 49 + include/linux/msi.h | 3 --- 2 files changed, 13 insertions(+), 39 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 5a40516..6c2cc41 100644 --- a/drivers/pci/msi.c +++ b

Re: [PATCH v2 2/2] PCI/MSI: Remove arch_msi_check_device()

2014-08-11 Thread Alexander Gordeev
On Mon, Aug 11, 2014 at 02:33:25PM +, bharat.bhus...@freescale.com wrote: > > > > -Original Message- > > From: linux-pci-ow...@vger.kernel.org > > [mailto:linux-pci-ow...@vger.kernel.org] > > On Behalf Of Alexander Gordeev > > Sent: Monday, A

Re: [PATCH RFC 0/2] percpu_tags: Prototype implementation

2014-08-11 Thread Alexander Gordeev
On Fri, Jul 18, 2014 at 12:20:56PM +0200, Alexander Gordeev wrote: > The performance test is not decent, though. I used "fio" random > read against a "null_blk" device sitting on top of "percpu_tags", > which is not exactly how "percpu_ida" is

Re: [PATCH v2 RESEND 12/23] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-12 Thread Alexander Gordeev
; ? and that it has picked up the pci mods ? James, I lost the context and not sure what PCI modifications you are referring :( I will send a patch that combines your version shortly. Thanks! > -- james s -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list:

[PATCH v3 12/23] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-12 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 | 39 +-- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi

Re: [PATCH v2 RESEND 04/23] bfa: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-12 Thread Alexander Gordeev
On Mon, Aug 11, 2014 at 11:02:56AM +, Anil Gurumurthy wrote: > Acked-by: Anil Gurumurthy Many thanks, Anil! If your Ack apply to this patch only or to all three 'bfa' patches in this series? Thanks! > -Original Message- > From: Alexander Gordeev [mailto:

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

2014-08-13 Thread Alexander Gordeev
On Wed, Aug 13, 2014 at 11:04:54AM -0500, scame...@beardog.cce.hp.com wrote: > On Wed, Jul 16, 2014 at 08:05:12PM +0200, Alexander Gordeev wrote: > > Currently the driver falls back to INTx mode when MSI-X > > initialization failed. This is a suboptimal behaviour > > for ch

[PATCH v3 12/13] pmcraid: Get rid of a redundant assignment

2014-08-18 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 file changed, 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 6f3275d..6e575ed 100644 --- a/drivers/scsi

[PATCH v3 02/13] hpsa: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Acked-by: "Stephen M. Cameron" Cc: iss_storage...@hp.com Cc: linux-s...@vger.kernel.org Cc: linux-...@vger.kernel.org --- drivers/scsi/hpsa.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/drivers/scs

[PATCH v3 03/13] megaraid: Fail resume if MSI-X re-initialization failed

2014-08-18 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 Acked-by: Kashyap Desai Cc: Neela Syam Kolli Cc

[PATCH v3 05/13] mpt2sas: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-18 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Reviewed-by: Tomas Henzl 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 file changed, 3 insertions

[PATCH v3 01/13] hpsa: Fallback to MSI rather than to INTx if MSI-X failed

2014-08-18 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 Acked-by

[PATCH v3 11/13] lpfc: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 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 | 39 +-- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi

[PATCH v3 00/13] scsi: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 Thread Alexander Gordeev
kernel.org Cc: linux-...@vger.kernel.org Alexander Gordeev (13): hpsa: Fallback to MSI rather than to INTx if MSI-X failed hpsa: Use pci_enable_msix_range() instead of pci_enable_msix() megaraid: Fail resume if MSI-X re-initialization failed megaraid: Use pci_enable_msix_range() instea

[PATCH v3 04/13] megaraid: Use pci_enable_msix_range() instead of pci_enable_msix()

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

[PATCH v3 07/13] qla2xxx: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 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 Acked-by: Chad Dupuis Cc: qla2xxx

[PATCH v3 06/13] mpt3sas: Use pci_enable_msix_exact() instead of pci_enable_msix()

2014-08-18 Thread Alexander Gordeev
. Signed-off-by: Alexander Gordeev Reviewed-by: Tomas Henzl 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 file changed, 2 insertions

[PATCH v3 09/13] csiostor: Remove superfluous call to pci_disable_msix()

2014-08-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: 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 file

[PATCH v3 10/13] csiostor: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 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_hw.h | 2 +- drivers/scsi/csiostor/csio_isr.c | 22 +- 2 files changed, 10 insertions(+), 14 deletions(-) diff

[PATCH v3 08/13] be2iscsi: Use pci_enable_msix_range()

2014-08-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: Jayamohan Kallickal

[PATCH v3 13/13] pmcraid: Use pci_enable_msix_range() instead of pci_enable_msix()

2014-08-18 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 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 6e575ed..bcb64eb

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-29 Thread Alexander Gordeev
On Wed, Oct 29, 2014 at 08:46:15AM -0700, Paul E. McKenney wrote: > On Wed, Oct 29, 2014 at 03:16:23PM +0000, Alexander Gordeev wrote: > > On Wed, Oct 29, 2014 at 07:34:39AM -0700, Paul E. McKenney wrote: > > > On Wed, Oct 29, 2014 at 01:45:19PM +, Alexander Gordeev wrote: &

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-30 Thread Alexander Gordeev
u_check_callbacks(int cpu, int user) > > { > > RCU_TRACE(check_cpu_stalls()); > > - if (user || rcu_is_cpu_rrupt_from_idle()) > > + if (user) > > rcu_sched_qs(); > > else if (!in_softirq()) > > rcu_bh_qs(); > >

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-30 Thread Alexander Gordeev
I did build one with the patch I posted. Or you mean something else here? > Thanx, Paul > -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-31 Thread Alexander Gordeev
On Thu, Oct 30, 2014 at 08:45:59PM -0700, Paul E. McKenney wrote: > On Thu, Oct 30, 2014 at 09:54:34PM +0000, Alexander Gordeev wrote: > > On Thu, Oct 30, 2014 at 01:43:18PM -0700, Paul E. McKenney wrote: > > > > > Have you done any testing of this change? > > > &g

[PATCH v2] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() from tiny RCU

2014-10-31 Thread Alexander Gordeev
because rcu_sched_qs() invokes rcu_qsctr_help(). In the described scenario rcu_sched_qs() and raise_softirq(RCU_SOFTIRQ) get called twice in steps 3 and 4. This redundancy could be eliminated by removing rcu_is_cpu_rrupt_from_idle() function. Signed-off-by: Alexander Gordeev Cc: Paul E.

[PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-29 Thread Alexander Gordeev
rcu_is_cpu_rrupt_from_idle() is redundant. Signed-off-by: Alexander Gordeev Cc: Paul E. McKenney --- kernel/rcu/tiny.c | 12 +--- kernel/rcu/tree.c | 14 +- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index c0623fc

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-29 Thread Alexander Gordeev
On Wed, Oct 29, 2014 at 05:47:29AM -0700, Paul E. McKenney wrote: > On Wed, Oct 29, 2014 at 12:07:07PM +0100, Alexander Gordeev wrote: > > Function rcu_is_cpu_rrupt_from_idle() is called from scheduling- > > clock interrupt handler to check if the current CPU was interrupted > &g

Re: [PATCH] rcu: Remove redundant rcu_is_cpu_rrupt_from_idle() function

2014-10-29 Thread Alexander Gordeev
On Wed, Oct 29, 2014 at 07:34:39AM -0700, Paul E. McKenney wrote: > On Wed, Oct 29, 2014 at 01:45:19PM +0000, Alexander Gordeev wrote: > > On Wed, Oct 29, 2014 at 05:47:29AM -0700, Paul E. McKenney wrote: > > > On Wed, Oct 29, 2014 at 12:07:07PM +0100, Alexander Gordeev wrote

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-10-06 Thread Alexander Gordeev
t twice? I *did* consider moving the threaded handler code to the softirq part. I just wanted to get updates in stages: to address hardware interrupts latency first and possibly threaded hander next. Getting done these two together would be too big change for me ;) > -- > tejun -- Regards, Ale

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-10-06 Thread Alexander Gordeev
; proposed changes. Do you have a refreshed version or is the current > version good for inclusion? No, this one would not apply. I can send updated version on top of v5 I posted earlier. Should I? > tejun -- Regards, Alexander Gordeev agord...@redhat.com -- To unsubscribe from this list:

[PATCH 6/5] AHCI: Optimize single IRQ interrupt processing

2014-10-06 Thread Alexander Gordeev
verage waittime decreased two times. Both before and after the change the transfer time is the same, while 'perf record -e cycles:k ...' shows 1%-4% CPU time spent in ahci_single_irq_intr() routine before the update and not even sampled/shown ahci_single_irq_intr() after the update. Signed-off-

[PATCH 7/5] AHCI: Do not acquire ata_host::lock from single IRQ handler

2014-10-06 Thread Alexander Gordeev
There is no need to acquire ata_host::lock spinlock from hardware context single IRQ interrupt handler since the handler does not access host data that could be altered by concurrent processors. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- drivers/ata/libahci.c | 4 1

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-10-01 Thread Alexander Gordeev
On Wed, Sep 24, 2014 at 10:39:13AM -0400, Tejun Heo wrote: > Hello, Alexander. > > On Wed, Sep 24, 2014 at 03:08:44PM +0100, Alexander Gordeev wrote: > > > Hmmm, how would the whole system benefit from it if there's only > > > single device? Each individual serv

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-10-01 Thread Alexander Gordeev
On Wed, Oct 01, 2014 at 04:31:14PM +0100, Alexander Gordeev wrote: > I am attaching excerpts from some new perf tests I have done (this Attaching :) -- Regards, Alexander Gordeev agord...@redhat.com 0.04% dd [kernel.kallsyms] [k] ata_std_qc_defer 0.04% dd [kernel.kallsyms]

Re: [PCI/MSI] WARNING: CPU: 0 PID: 1 at drivers/pci/msi.c:1034 pci_enable_msi_range+0x2c1/0x2f0()

2014-10-03 Thread Alexander Gordeev
On Fri, Oct 03, 2014 at 09:25:22PM +0800, Fengguang Wu wrote: > Hi Alexander, > > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/msi > commit 4ab2ee7c77875669230a797a3ed2228990f82545 ("PCI/MSI: Rename > pci_msi_check_device() to pci_msi

[PATCH] rcu: Shut up bogus gcc array bounds warning

2015-07-09 Thread Alexander Gordeev
ng is fixed in gcc and kernel drops support of older versions, the dummy item may be removed from the array. Cc: "Paul E. McKenney" Suggested-by: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletio

Make RCU tree CPU topology aware?

2015-08-17 Thread Alexander Gordeev
rrent access patterns are just optimal? 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.kernel.org/majordomo-info.h

Re: Make RCU tree CPU topology aware?

2015-08-18 Thread Alexander Gordeev
On Mon, Aug 17, 2015 at 08:28:16AM -0700, Paul E. McKenney wrote: > On Mon, Aug 17, 2015 at 11:39:34AM +0100, Alexander Gordeev wrote: > > Hi Paul, > > > > Currently RCU tree distributes CPUs to leafs based on consequent CPU > > IDs. That means CPUs from remote caches

[PATCH 0/2] sched/core: Cleanup leftovers in __schedule()

2016-02-28 Thread Alexander Gordeev
*** BLURB HERE *** Alexander Gordeev (2): sched/core: Get rid of 'cpu' argument in wq_worker_sleeping() sched/core: Get rid of 'cpu' variable in __schedule() kernel/sched/core.c | 7 ++- kernel/workqueue.c | 4 ++-- kernel/workqueue_internal.h | 2 +-

[PATCH 2/2] sched/core: Get rid of 'cpu' variable in __schedule()

2016-02-28 Thread Alexander Gordeev
'cpu' variable is only used to acquire the current runqueue. By using this_rq() instead, we can get rid of that variable. Cc: Oleg Nesterov Cc: Peter Zijlstra Signed-off-by: Alexander Gordeev --- kernel/sched/core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) di

[PATCH 1/2] sched/core: Get rid of 'cpu' argument in wq_worker_sleeping()

2016-02-28 Thread Alexander Gordeev
Given that wq_worker_sleeping() could only be called for a CPU it is running on, we do not need passing a CPU ID as an argument. Cc: Oleg Nesterov Cc: Peter Zijlstra Signed-off-by: Alexander Gordeev --- kernel/sched/core.c | 2 +- kernel/workqueue.c | 4 ++-- kernel

[PATCH] PCI/MSI: Remove pci_enable_msix()

2014-10-10 Thread Alexander Gordeev
There are no users of pci_enable_msix() function left. Obsolete it in favor of pci_enable_msix_range() and pci_enable_msix_exact() functions. Signed-off-by: Alexander Gordeev Cc: linux-...@vger.kernel.org --- Documentation/PCI/PCIEBUS-HOWTO.txt | 15 +++--- Documentation/PCI/pci.txt

Re: [PATCH tip/core/rcu 06/24] rcu: Cleanup rcu_init_geometry() code and arithmetics

2015-05-14 Thread Alexander Gordeev
;= MAX_RCU_LVLS; i++) > > + for (i = 0; i < rcu_num_lvls; i++) > > rcu_num_nodes += num_rcu_lvl[i]; > > - rcu_num_nodes -= nr_cpu_ids; So nr_cpu_ids is added rcu_num_nodes in the cycle and subtracted from rcu_num_nodes afterwards. The new version of code does not neigher

Re: [PATCH v2] AHCI: Add generic MSI-X interrupt support to SATA PCI driver

2015-05-17 Thread Alexander Gordeev
evice_id *ent) >*/ > n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); > > - ahci_init_interrupts(pdev, n_ports, hpriv); > + irq = ahci_init_interrupts(pdev, n_ports, hpriv); > + if (irq < 0) > + return irq; >

[PATCH 0/9] rcu: Cleanup RCU tree initialization

2015-03-07 Thread Alexander Gordeev
Hello, This is an attempt to make RCU tree initialization bit more clear and optimize memory footprint of data associated with the tree. Cc: "Paul E. McKenney" Alexander Gordeev (9): rcu: Panic if RCU tree can not accommodate all CPUs rcu: Remove superfluous local v

[PATCH 8/9] rcu: Limit count of static data to the number of RCU levels

2015-03-07 Thread Alexander Gordeev
levels. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 21 - kernel/rcu/tree.h | 12 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index ccea2c7..c085d2c 100644 --- a/

[PATCH 9/9] rcu: Simplify arithmetic to calculate number of RCU nodes

2015-03-07 Thread Alexander Gordeev
This update makes arithmetic to calculate number of RCU nodes more straight and easy to read. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.h| 17 - kernel/rcu/tree_plugin.h | 4 ++-- 2 files changed, 6 insertions(+), 15 deletion

[PATCH 6/9] rcu: Limit rcu_capacity[] size to RCU_NUM_LVLS items

2015-03-07 Thread Alexander Gordeev
enney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 12 ++-- kernel/rcu/tree.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index eb8b8d7..6856096 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @

[PATCH 5/9] rcu: Limit rcu_state::levelcnt[] to RCU_NUM_LVLS items

2015-03-07 Thread Alexander Gordeev
parameter update) one might assume a new value could overflow the value of RCU_NUM_LVLS. However, that is not the case, since leaf-level fanout is only permitted to increase, resulting in rcu_num_lvls possibly to decrease. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/

[PATCH 7/9] rcu: Remove unnecessary fields from rcu_state structure

2015-03-07 Thread Alexander Gordeev
Members rcu_state::levelcnt[] and rcu_state::levelspread[] are only used at init. There is no reason to keep them afterwards. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 29 - kernel/rcu/tree.h | 2 -- 2 files c

[PATCH 4/9] rcu: Simplify rcu_init_geometry() capacity arithmetics

2015-03-07 Thread Alexander Gordeev
Current code suggests that introducing the extra level to rcu_capacity[] array makes some of the arithmetic easier. Well, in fact it appears rather confusing and unnecessary. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 16 +++- 1 file

[PATCH 3/9] rcu: Cleanup rcu_init_geometry() code and arithmetics

2015-03-07 Thread Alexander Gordeev
whole num_rcu_lvl[]. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index fb89630..f9ef1e0 100644 --- a/kernel/rcu/tree.c ++

[PATCH 1/9] rcu: Panic if RCU tree can not accommodate all CPUs

2015-03-07 Thread Alexander Gordeev
run- time then it indicates a serios problem elsewhere and should be handled with a panic. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tr

[PATCH 2/9] rcu: Remove superfluous local variable in rcu_init_geometry()

2015-03-07 Thread Alexander Gordeev
Local variable 'n' mimics 'nr_cpu_ids' while the both are used within one function. There is no reason for 'n' to exist whatsoever. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 14 +++--- 1 file changed, 7 ins

Re: [PATCH 1/9] rcu: Panic if RCU tree can not accommodate all CPUs

2015-03-07 Thread Alexander Gordeev
On Sat, Mar 07, 2015 at 09:42:34AM -0800, Paul E. McKenney wrote: > On Sat, Mar 07, 2015 at 06:03:36PM +0100, Alexander Gordeev wrote: > > Currently a condition when RCU tree is unable to accommodate > > the configured number of CPUs is not permitted and causes > > a fall

Re: [PATCH 3/9] rcu: Cleanup rcu_init_geometry() code and arithmetics

2015-03-07 Thread Alexander Gordeev
sorts of changes, I usually also do some user-level testing. -- 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.ker

[PATCH 04/10] rcu: Simplify rcu_init_geometry() capacity arithmetics

2015-03-09 Thread Alexander Gordeev
Current code suggests that introducing the extra level to rcu_capacity[] array makes some of the arithmetic easier. Well, in fact it appears rather confusing and unnecessary. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 16 +++- 1 file

[PATCH 06/10] rcu: Limit rcu_capacity[] size to RCU_NUM_LVLS items

2015-03-09 Thread Alexander Gordeev
enney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.c | 12 ++-- kernel/rcu/tree.h | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 98e36c3..dbcec66 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @

[PATCH 00/10] rcu: Cleanup RCU tree initialization

2015-03-09 Thread Alexander Gordeev
: "Paul E. McKenney" Alexander Gordeev (10): rcu: Panic if RCU tree can not accommodate all CPUs rcu: Remove superfluous local variable in rcu_init_geometry() rcu: Cleanup rcu_init_geometry() code and arithmetics rcu: Simplify rcu_init_geometry() capacity arithmetics rcu: Limit

[PATCH 09/10] rcu: Simplify arithmetic to calculate number of RCU nodes

2015-03-09 Thread Alexander Gordeev
This update makes arithmetic to calculate number of RCU nodes more straight and easy to read. Cc: "Paul E. McKenney" Signed-off-by: Alexander Gordeev --- kernel/rcu/tree.h| 17 - kernel/rcu/tree_plugin.h | 4 ++-- 2 files changed, 6 insertions(+), 15 deletion

<    5   6   7   8   9   10   11   12   >