2.6.3-rc2 MSI Support for IA64
PATCH 1/1 2.6.3-rc2 MSI Support for IA64
Below is a patch, which provides MSI support on IA64 architecture. This patch, based on kernel 2.6.3-rc2, was tested on both Intel and HP IA64 machines with the use of Adaptec 39320D Ultra320 SCSI adapter <AIC79XX PCI-X SCSI HBA DRIVER>.
Thanks,
Long
----------------------------------------------------------------------------
arch/ia64/Kconfig +12 -0
@@ -433,6 +433,18 @@ information about which PCI hardware does work under Linux and which doesn't. +config PCI_USE_VECTOR + bool "Message Signaled Interrupt (MSI) Support" + default n + help + This enables MSI, Message Signaled Interrupt, on specific + MSI capable device functions detected upon requests from the + device drivers. Message Signal Interrupt enables an MSI-capable + hardware device to send an inbound Memory Write on its PCI bus + instead of asserting IRQ signal on device IRQ pin. + + If you don't know what to do here, say N. + config PCI_DOMAINS bool default PCI
arch/ia64/kernel/irq_ia64.c +2 -0
@@ -57,6 +57,7 @@ };EXPORT_SYMBOL (isa_irq_to_vector_map); +#ifndef CONFIG_PCI_USE_VECTOR int ia64_alloc_vector (void ) {
@@ -67,6 +68,7 @@panic ("ia64_alloc_vector: out of interrupt vectors!" ); return next_vector++; } +#endif extern unsigned int do_IRQ (unsigned long irq,struct pt_regs *regs);
drivers/pci/msi.c +43 -36
144 lines not on this page · raw message
drivers/pci/msi.h +44 -5
92 lines not on this page · raw message
Quoted 7 lines · long
drivers/pci/msi.c +3
-0@@ -316,6 +310,19 @@return current_vector; } +int ia64_alloc_vector (void ) +{ +static int next_vector =IA64_FIRST_DEVICE_VECTOR ;
drivers/pci/msi.c line 325
Quoted 10 lines
drivers/pci/msi.c +10
-0+ +if (next_vector >IA64_LAST_DEVICE_VECTOR ) +/* XXX could look for sharable vectors instead of panic'ing... */ +panic ("ia64_alloc_vector: out of interrupt vectors!" ); + + nr_alloc_vectors++; + +return next_vector++; +} +
IMHO this should be CONFIG_IA64 only.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."