linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 -tip 0/3] x86, MSI, AHCI: Support multiple MSIs
@ 2012-10-07  5:24 Alexander Gordeev
  2012-10-07  5:25 ` [PATCH v4 -tip 1/3] x86, MSI: Support multiple MSIs in presense of IRQ remapping Alexander Gordeev
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alexander Gordeev @ 2012-10-07  5:24 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Thomas Gleixner, Bjorn Helgaas, Suresh Siddha,
	Yinghai Lu, Jeff Garzik, Matthew Wilcox, x86, linux-pci,
	linux-ide

Hello,

Compared to v3:

	Based on Ingo's review:

	I have not noticed that v3 2/5 patch "x86, MSI: Allocate as many
	multiple IRQs as requested" is redundant, since the AHCI code
	tries to allocate maximum possible number of MSIs. As there are
	no other users of this functionality, I removed the patch for now;

	v3 patch 3/5 "x86, MSI: Minor readability fixes" merged into
  	v4 patch 1/3 "x86, MSI: Support multiple MSIs in presense of IRQ
	remapping";

	1,3/3:	multi-line comments fixed;
		loops 'for (; i; i--)' changed to 'for (i--; i >= 0; i--)';

	3/3:	ahci_host_activate() failure path tested;
		ahci_port_priv::lock field commented;


Alexander Gordeev (3):
  1/3 x86, MSI: Support multiple MSIs in presense of IRQ remapping
  2/3 PCI, MSI: Enable multiple MSIs with pci_enable_msi_block_auto()
  3/3 AHCI: Support multiple MSIs

 Documentation/PCI/MSI-HOWTO.txt |   37 ++++++++-
 arch/x86/kernel/apic/io_apic.c  |  165 +++++++++++++++++++++++++++++++--------
 drivers/ata/ahci.c              |   93 +++++++++++++++++++++-
 drivers/ata/ahci.h              |    6 ++
 drivers/ata/libahci.c           |  118 ++++++++++++++++++++++++++--
 drivers/pci/msi.c               |   26 ++++++
 include/linux/irq.h             |    5 +
 include/linux/pci.h             |    7 ++
 kernel/irq/chip.c               |   30 +++++--
 9 files changed, 432 insertions(+), 55 deletions(-)

-- 
1.7.7.6


-- 
Regards,
Alexander Gordeev
agordeev@redhat.com

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH v4 -tip 0/3] x86, MSI, AHCI: Support multiple MSIs
@ 2012-11-19 15:00 Alexander Gordeev
  2012-11-19 15:02 ` [PATCH v4 -tip 3/3] " Alexander Gordeev
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Gordeev @ 2012-11-19 15:00 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Ingo Molnar, Thomas Gleixner, Bjorn Helgaas, Suresh Siddha,
	Yinghai Lu, Matthew Wilcox, x86, linux-pci, linux-ide,
	linux-kernel

Hi Jeff,

I am resending this series with changes based on Ingo's review of v3.

Patch #3 has a single change in functionality compared to the previous
version you acked before - that is a fix of invalid index spotted by Ingo
(below is the interdiff's hunk). Could you please review the patch again
and ack or comment?

@@ -1129,8 +1131,8 @@
 out_free_all_irqs:
 	i = host->n_ports;
 out_free_irqs:
-	for (; i; i--)
-		devm_free_irq(host->dev, irq + i - 1, host->ports[i]);
+	for (i--; i >= 0; i--)
+		devm_free_irq(host->dev, irq + i, host->ports[i]);
 
 	return rc;
 }

Whole series compared to v3:

	I have not noticed that v3 2/5 patch "x86, MSI: Allocate as many
	multiple IRQs as requested" is redundant, since the AHCI code
	tries to allocate maximum possible number of MSIs. As there are
	no other users of this functionality, I removed v3 2/5 patch for now;

	v3 patch 3/5 "x86, MSI: Minor readability fixes" merged into
  	v4 patch 1/3 "x86, MSI: Support multiple MSIs in presense of IRQ
	remapping";

	1/3:	- racy can_create_irqs() check removed;
		- multi-line comments fixed;
		- loops 'for (; i; i--)' changed to 'for (i--; i >= 0; i--)';

		v1 conditionally acked by Suresh
		v2 concerned Yinghai's comments

	2/3:	v2 acked by Bjorn, no changes since

	3/3:	- ahci_host_activate() failure path fixed and tested;
		- ahci_port_priv::lock field commented;
		- multi-line comments fixed;

		v3 acked by Jeff

Alexander Gordeev (3):
  x86, MSI: Support multiple MSIs in presense of IRQ remapping
  PCI, MSI: Enable multiple MSIs with pci_enable_msi_block_auto()
  AHCI: Support multiple MSIs

 Documentation/PCI/MSI-HOWTO.txt |   37 ++++++++-
 arch/x86/kernel/apic/io_apic.c  |  165 +++++++++++++++++++++++++++++++--------
 drivers/ata/ahci.c              |   93 +++++++++++++++++++++-
 drivers/ata/ahci.h              |    6 ++
 drivers/ata/libahci.c           |  118 ++++++++++++++++++++++++++--
 drivers/pci/msi.c               |   26 ++++++
 include/linux/irq.h             |    5 +
 include/linux/pci.h             |    7 ++
 kernel/irq/chip.c               |   30 +++++--
 9 files changed, 432 insertions(+), 55 deletions(-)

-- 
1.7.7.6


-- 
Regards,
Alexander Gordeev
agordeev@redhat.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-12-03 10:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-07  5:24 [PATCH v4 -tip 0/3] x86, MSI, AHCI: Support multiple MSIs Alexander Gordeev
2012-10-07  5:25 ` [PATCH v4 -tip 1/3] x86, MSI: Support multiple MSIs in presense of IRQ remapping Alexander Gordeev
2012-10-07  5:26 ` [PATCH v4 -tip 2/3] PCI, MSI: Enable multiple MSIs with pci_enable_msi_block_auto() Alexander Gordeev
2012-10-07  5:27 ` [PATCH v4 -tip 3/3] AHCI: Support multiple MSIs Alexander Gordeev
2012-10-25  9:09   ` Ingo Molnar
2012-10-25  9:25     ` Alexander Gordeev
2012-10-25  9:36       ` Alexander Gordeev
2012-11-09 16:20         ` Alexander Gordeev
  -- strict thread matches above, loose matches on Subject: below --
2012-11-19 15:00 [PATCH v4 -tip 0/3] x86, MSI, " Alexander Gordeev
2012-11-19 15:02 ` [PATCH v4 -tip 3/3] " Alexander Gordeev
2012-12-03 10:05   ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).