]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86, pci: introduce pci=ioapicreroute kernel cmdline option
authorStefan Assmann <sassmann@suse.de>
Wed, 11 Jun 2008 14:35:15 +0000 (16:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 15:50:51 +0000 (17:50 +0200)
Introduce pci=ioapicreroute kernel cmdline option to enable rerouting of boot
interrupts to the primary io-apic.

Signed-off-by: Stefan Assmann <sassmann@suse.de>
Signed-off-by: Olaf Dabrunz <od@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/kernel-parameters.txt
arch/x86/pci/common.c
include/asm-x86/io_apic.h
include/asm-x86/pci.h

index 1aebe9dffbaa6277deceb18c2c9ba371b1e4b141..df262b3c3d6e012306cde597dafb0d63f09b1f09 100644 (file)
@@ -1521,6 +1521,10 @@ and is between 256 and 4096 characters. It is defined in the file
                noioapicquirk   [APIC] Disable all boot interrupt quirks.
                                Safety option to keep boot IRQs enabled. This
                                should never be necessary.
+               ioapicreroute   [APIC] Enable rerouting of boot IRQs to the
+                               primary IO-APIC for bridges that cannot disable
+                               boot IRQs. This fixes a source of spurious IRQs
+                               when the system masks IRQs.
                biosirq         [X86-32] Use PCI BIOS calls to get the interrupt
                                routing table. These calls are known to be buggy
                                on several machines and they hang the machine
index bc6a101ed7ecee68758f37ea1d10d0ca1057469f..0a9eaa736d94fb858cb97a2bc141421eacb4f001 100644 (file)
@@ -23,6 +23,7 @@ unsigned int pci_probe = PCI_PROBE_BIOS | PCI_PROBE_CONF1 | PCI_PROBE_CONF2 |
 static int pci_bf_sort;
 int pci_routeirq;
 int noioapicquirk;
+int noioapicreroute = 1;
 int pcibios_last_bus = -1;
 unsigned long pirq_table_addr;
 struct pci_bus *pci_root_bus;
@@ -499,6 +500,10 @@ char * __devinit  pcibios_setup(char *str)
        } else if (!strcmp(str, "noioapicquirk")) {
                noioapicquirk = 1;
                return NULL;
+       } else if (!strcmp(str, "ioapicreroute")) {
+               if (noioapicreroute != -1)
+                       noioapicreroute = 0;
+               return NULL;
        }
        return str;
 }
index 8ca0110819f465fbe2445211b84ad5d7acc9a88a..a39670ae17df168d38f60a4bb546c450f3682391 100644 (file)
@@ -160,12 +160,16 @@ extern int skip_ioapic_setup;
 /* 1 if "noapic" boot option passed */
 extern int noioapicquirk;
 
+/* -1 if "noapic" boot option passed */
+extern int noioapicreroute;
+
 /* 1 if the timer IRQ uses the '8259A Virtual Wire' mode */
 extern int timer_through_8259;
 
 static inline void disable_ioapic_setup(void)
 {
        noioapicquirk = 1;
+       noioapicreroute = -1;
        skip_ioapic_setup = 1;
 }
 
index 30eec93a845ed47ee5b1c3665c489cf134b6735f..52a29f7668efd5228e397fed91d0d48a40776bb2 100644 (file)
@@ -20,6 +20,7 @@ struct pci_sysdata {
 
 extern int pci_routeirq;
 extern int noioapicquirk;
+extern int ioapicreroute;
 
 /* scan a bus after allocating a pci_sysdata for it */
 extern struct pci_bus *pci_scan_bus_on_node(int busno, struct pci_ops *ops,