Skip to contentSkip to conversation

i386: require ACPI for NUMA with generic architecture

PATCH In review Chuck Ebbert 2 participants 2 messages Jul 6, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386: require ACPI for NUMA with generic architecture

X86 Generic Architecture (X86_GENERICARCH) includes support for Summit architecture. Enabling X86_GENERICARCH, SMP and HIGHMEM64G allows NUMA to be selected but that configuration will not build because it requires ACPI for the Summit NUMA support.

Fix:
require ACPI for NUMA support with X86_GENERICARCH

update the menu comment noting this

set default NR_CPUS to 32 for GENERICARCH (since it
includes BIGSMP and SUMMIT which default to 32)

arch/i386/Kconfig +4 -4
@@ -228,7 +228,7 @@ config NR_CPUS
 	int "Maximum number of CPUs (2-255)"
 	range 2 255
 	depends on SMP
-	default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000
+	default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000 || X86_GENERICARCH
 	default "8"
 	help
 	  This allows you to specify the maximum number of CPUs which this
@@ -546,15 +546,15 @@ config X86_PAE
 # Common NUMA Features
 config NUMA
 	bool "Numa Memory Allocation and Scheduler Support"
-	depends on SMP && HIGHMEM64G && (X86_NUMAQ || X86_GENERICARCH || (X86_SUMMIT && ACPI))
+	depends on SMP && HIGHMEM64G && (X86_NUMAQ || (ACPI && (X86_GENERICARCH || X86_SUMMIT)))
 	default n if X86_PC
 	default y if (X86_NUMAQ || X86_SUMMIT)
 	help
 		NUMA support. Note this only works on IBM x440 or IBM NUMAQ.
 		Don't try to use it anywhere else.
 
-comment "NUMA (Summit) requires SMP, 64GB highmem support, ACPI"
-	depends on X86_SUMMIT && (!HIGHMEM64G || !ACPI)
+comment "NUMA (Summit, Generic arch) requires SMP, 64GB highmem support, ACPI"
+	depends on (X86_SUMMIT || X86_GENERICARCH) && (!HIGHMEM64G || !ACPI)
 
 config NODES_SHIFT
 	int
Signature · 2 lines
Chuck
 "You can't read a newspaper if you can't read."  --George W. Bush
#1 lore raw
Quoted 5 lines · Chuck Ebbert

X86 Generic Architecture (X86_GENERICARCH) includes support for Summit architecture. Enabling X86_GENERICARCH, SMP and HIGHMEM64G allows NUMA to be selected but that configuration will not build because it requires ACPI for the Summit NUMA support.

Quoted 7 lines

Fix:
require ACPI for NUMA support with X86_GENERICARCH

update the menu comment noting this

set default NR_CPUS to 32 for GENERICARCH (since it
includes BIGSMP and SUMMIT which default to 32)

Good catch. With X86_GENRICARCARCH perhaps NUMA should always be on
or am I missing something with how it is supposed to work? Shouldn't X86_GENRICARCARCH buy you the ablility to boot(correctly) on all the diffrent archs listed?

Thanks,
Keith