[PATCH] x86: let MPS support selectable

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>, Daniel Exner <dex@...>, Len Brown <lenb@...>, linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Thursday, June 19, 2008 - 3:18 am

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

---
 arch/x86/Kconfig            |   15 ++++++++++++++-
 arch/x86/Kconfig.debug      |    9 ---------
 arch/x86/mm/k8topology_64.c |    4 ++++
 3 files changed, 18 insertions(+), 10 deletions(-)

Index: linux-2.6/arch/x86/Kconfig
===================================================================
--- linux-2.6.orig/arch/x86/Kconfig
+++ linux-2.6/arch/x86/Kconfig
@@ -233,6 +233,19 @@ config SMP
 
 	  If you don't know what to do here, say N.
 
+config X86_FIND_SMP_CONFIG
+	def_bool y
+	depends on X86_MPPARSE || X86_VOYAGER || X86_VISWS
+	depends on X86_32
+
+config X86_MPPARSE
+	def_bool y
+	bool "Enable MPS table"
+	depends on (X86_32 && (X86_LOCAL_APIC && !X86_VISWS)) || X86_64
+	help
+	  For old smp systems that do not have proper acpi support. Newer systems
+	  (esp with 64bit cpus) with acpi support, MADT and DSDT will override it
+
 choice
 	prompt "Subarchitecture Type"
 	default X86_PC
@@ -289,7 +302,7 @@ if X86_GENERICARCH
 
 config X86_NUMAQ
 	bool "NUMAQ (IBM/Sequent)"
-	depends on SMP && X86_32 && PCI
+	depends on SMP && X86_32 && PCI && X86_MPPARSE
 	select NUMA
 	help
 	  This option is used for getting Linux to run on a NUMAQ (IBM/Sequent)
Index: linux-2.6/arch/x86/Kconfig.debug
===================================================================
--- linux-2.6.orig/arch/x86/Kconfig.debug
+++ linux-2.6/arch/x86/Kconfig.debug
@@ -130,15 +130,6 @@ config 4KSTACKS
 	  on the VM subsystem for higher order allocations. This option
 	  will also use IRQ stacks to compensate for the reduced stackspace.
 
-config X86_FIND_SMP_CONFIG
-	def_bool y
-	depends on X86_MPPARSE || X86_VOYAGER || X86_VISWS
-	depends on X86_32
-
-config X86_MPPARSE
-	def_bool y
-	depends on (X86_32 && (X86_LOCAL_APIC && !X86_VISWS)) || X86_64
-
 config DOUBLEFAULT
 	default y
 	bool "Enable doublefault exception handler" if EMBEDDED
Index: linux-2.6/arch/x86/mm/k8topology_64.c
===================================================================
--- linux-2.6.orig/arch/x86/mm/k8topology_64.c
+++ linux-2.6/arch/x86/mm/k8topology_64.c
@@ -57,18 +57,22 @@ static __init void early_get_boot_cpu_id
 	/*
 	 * Find possible boot-time SMP configuration:
 	 */
+#ifdef CONFIG_X86_MPPARSE
 	early_find_smp_config();
+#endif
 #ifdef CONFIG_ACPI
 	/*
 	 * Read APIC information from ACPI tables.
 	 */
 	early_acpi_boot_init();
 #endif
+#ifdef CONFIG_X86_MPPARSE
 	/*
 	 * get boot-time SMP configuration:
 	 */
 	if (smp_found_config)
 		early_get_smp_config();
+#endif
 	early_init_lapic_mapping();
 }
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: update mptable, Yinghai Lu, (Tue May 6, 1:38 pm)
[PATCH] x86: update mptable v2, Yinghai Lu, (Wed May 7, 3:48 am)
[PATCH] x86: update mptable v3, Yinghai Lu, (Fri May 16, 10:32 pm)
[PATCH] x86: update mptable v4, Yinghai Lu, (Mon May 19, 3:35 pm)
[PATCH] x86: update mptable v5, Yinghai Lu, (Mon May 19, 3:52 pm)
[PATCH] x86: update mptable v6, Yinghai Lu, (Sun May 25, 7:00 pm)
[PATCH] x86: update mptable v7, Yinghai Lu, (Sun Jun 1, 4:17 pm)
Re: [PATCH] x86: update mptable v7, Len Brown, (Wed Jun 18, 6:18 pm)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Wed Jun 18, 6:32 pm)
Re: [PATCH] x86: update mptable v7, Len Brown, (Wed Jun 18, 8:33 pm)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Wed Jun 18, 8:49 pm)
Re: [PATCH] x86: update mptable v7, Len Brown, (Thu Jun 19, 1:20 am)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Thu Jun 19, 2:26 am)
Re: [PATCH] x86: update mptable v7, H. Peter Anvin, (Thu Jun 19, 2:28 am)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Thu Jun 19, 2:35 am)
Re: [PATCH] x86: update mptable v7, Eric W. Biederman, (Thu Jun 19, 12:32 am)
Re: [PATCH] x86: update mptable v7, Len Brown, (Thu Jun 19, 1:27 am)
Re: [PATCH] x86: update mptable v7, Eric W. Biederman, (Thu Jun 19, 2:37 am)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Thu Jun 19, 3:31 am)
Re: [PATCH] x86: update mptable v7, Len Brown, (Thu Jun 19, 2:16 pm)
Re: [PATCH] x86: update mptable v7, Ingo Molnar, (Fri Jun 20, 2:47 am)
Re: [PATCH] x86: update mptable v7, Andi Kleen, (Fri Jun 20, 5:12 am)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Fri Jun 20, 3:20 am)
Re: [PATCH] x86: update mptable v7, H. Peter Anvin, (Thu Jun 19, 1:09 am)
Re: [PATCH] x86: update mptable v7, Yinghai Lu, (Thu Jun 19, 1:11 am)
[PATCH] x86: update mptable fix with no ioapic, Yinghai Lu, (Wed Jun 18, 5:32 pm)
[PATCH] x86: update mptable fix with no ioapic v2, Yinghai Lu, (Wed Jun 18, 8:29 pm)
Re: [PATCH] x86: update mptable fix with no ioapic v2, Ingo Molnar, (Thu Jun 19, 8:13 am)
[PATCH] x86: let MPS support selectable, Yinghai Lu, (Thu Jun 19, 3:18 am)
Re: [PATCH] x86: let MPS support selectable, Maciej W. Rozycki, (Thu Jun 19, 11:10 am)
Re: [PATCH] x86: let MPS support selectable, Yinghai Lu, (Thu Jun 19, 1:39 pm)
Re: [PATCH] x86: let MPS support selectable, Len Brown, (Thu Jun 19, 2:03 pm)
Re: [PATCH] x86: let MPS support selectable, Maciej W. Rozycki, (Thu Jun 19, 2:48 pm)
Re: [PATCH] x86: let MPS support selectable, Ingo Molnar, (Thu Jun 26, 5:31 am)
Re: [PATCH] x86: let MPS support selectable, Ingo Molnar, (Thu Jun 19, 8:13 am)
Re: [PATCH] x86: let MPS support selectable, Ingo Molnar, (Thu Jun 19, 8:49 am)
[PATCH] x86: update mptable v7 - fix, Yinghai Lu, (Sun Jun 8, 10:53 pm)
Re: [PATCH] x86: update mptable v7 - fix, Ingo Molnar, (Mon Jun 9, 6:13 am)
Re: [PATCH] x86: update mptable v7 - fix, Yinghai Lu, (Mon Jun 9, 1:51 pm)
Re: [PATCH] x86: update mptable v7 - fix, Ingo Molnar, (Mon Jun 9, 3:09 pm)
Re: [PATCH] x86: update mptable v7 - fix, Maciej W. Rozycki, (Mon Jun 9, 3:49 pm)
Re: [PATCH] x86: update mptable v7 - fix, Yinghai Lu, (Mon Jun 9, 3:38 pm)
Re: [PATCH] x86: update mptable v7 - fix, H. Peter Anvin, (Mon Jun 9, 3:46 pm)
Re: [PATCH] x86: update mptable v7 - fix, Maciej W. Rozycki, (Mon Jun 9, 2:11 pm)
Re: [PATCH] x86: update mptable v3, Ingo Molnar, (Mon May 19, 11:46 am)
[PATCH] x86: fixed mtrr change WP to WB, Yinghai Lu, (Tue May 6, 1:41 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, H. Peter Anvin, (Tue May 6, 1:48 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, Yinghai Lu, (Tue May 6, 2:24 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, H. Peter Anvin, (Tue May 6, 2:31 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, Yinghai Lu, (Tue May 6, 2:34 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, H. Peter Anvin, (Tue May 6, 2:43 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, Yinghai Lu, (Tue May 6, 3:05 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, H. Peter Anvin, (Tue May 6, 3:08 pm)
Re: [PATCH] x86: fixed mtrr change WP to WB, Yinghai Lu, (Tue May 6, 3:15 pm)