Skip to contentSkip to conversation

x86, irq: update_mptable needs pci_routeirq

tip:irq/numa tip-bot for Yinghai Lu 1 participant 1 message May 18, 2009 1 message not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Commit-ID:  629e15d245f46bef9d26199b450f882f9437a8fe
Gitweb:     http://git.kernel.org/tip/629e15d245f46bef9d26199b450f882f9437a8fe
Author:     Yinghai Lu <[email protected]>
AuthorDate: Fri, 15 May 2009 13:05:16 -0700
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 18 May 2009 09:33:17 +0200

x86, irq: update_mptable needs pci_routeirq

To get all device irq routing and to save them.

This is basically an implicit pci=routeirq enablement if (and on if) the update_mptable boot option (which is off by default) has been specified.

[ Impact: extend the update_mptable boot opion's scope ]

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/mpparse.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
arch/x86/kernel/mpparse.c +7 -0
index cd2a41a..e6bf9d0 100644
@@ -17,6 +17,7 @@
 #include <linux/acpi.h>
 #include <linux/module.h>
 #include <linux/smp.h>
+#include <linux/pci.h>
 
 #include <asm/mtrr.h>
 #include <asm/mpspec.h>
@@ -961,6 +962,9 @@ static int __initdata enable_update_mptable;
 static int __init update_mptable_setup(char *str)
 {
 	enable_update_mptable = 1;
+#ifdef CONFIG_PCI
+	pci_routeirq = 1;
+#endif
 	return 0;
 }
 early_param("update_mptable", update_mptable_setup);
@@ -973,6 +977,9 @@ static int __initdata alloc_mptable;
 static int __init parse_alloc_mptable_opt(char *p)
 {
 	enable_update_mptable = 1;
+#ifdef CONFIG_PCI
+	pci_routeirq = 1;
+#endif
 	alloc_mptable = 1;
 	if (!p)
 		return 0;