x86/cpu/topology: remove limit of CPUs due to noapic on x86
Subsystems (2)
PATCH v3 1/1 x86/cpu/topology: remove limit of CPUs due to noapic on x86
On x86 the command line parameter "noapic" should not limit the number of possible CPUs, as it only limits the use of IRQ sharing or device IRQ remapping. This restores the behavior previous to the rework of possible CPUs management.
---
v3: remove a unnecessary new line
--- arch/x86/kernel/cpu/topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/cpu/topology.c +3 -3
@@ -428,8 +428,8 @@ void __init topology_apply_cmdline_limits_early(void) {unsigned int possible = nr_cpu_ids; -/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' 'noapic' */ -if (!setup_max_cpus || ioapic_is_disabled || apic_is_disabled) +/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' */ +if (!setup_max_cpus || apic_is_disabled) possible =1 ;/* 'possible_cpus=N' */
@@ -443,7 +443,7 @@ void __init topology_apply_cmdline_limits_early(void)static __init bool restrict_to_up (void ) { -if (!smp_found_config || ioapic_is_disabled) +if (!smp_found_config)return true;/* * XEN PV is special as it does not advertise the local APIC
Signature · 1 line
2.47.1
[tip: x86/urgent] x86/cpu/topology: Remove limit of CPUs due to disabled IO/APIC
The following commit has been merged into the x86/urgent branch of tip:
The following commit has been merged into the x86/urgent branch of tip:
Commit-ID: 73da582a476ea6e3512f89f8ed57dfed945829a2 Gitweb: https://git.kernel.org/tip/73da582a476ea6e3512f89f8ed57dfed945829a2 Author: Fernando Fernandez Mancera <[email protected]> AuthorDate: Mon, 02 Dec 2024 14:58:45 Committer: Thomas Gleixner <[email protected]> CommitterDate: Thu, 05 Dec 2024 14:43:32 +01:00
x86/cpu/topology: Remove limit of CPUs due to disabled IO/APIC
The rework of possible CPUs management erroneously disabled SMP when the IO/APIC is disabled either by the 'noapic' command line parameter or during IO/APIC setup. SMP is possible without IO/APIC.
Remove the ioapic_is_disabled conditions from the relevant possible CPU management code paths to restore the orgininal behaviour.
--- arch/x86/kernel/cpu/topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/kernel/cpu/topology.c +3 -3
@@ -428,8 +428,8 @@ void __init topology_apply_cmdline_limits_early(void) {unsigned int possible = nr_cpu_ids; -/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' 'noapic' */ -if (!setup_max_cpus || ioapic_is_disabled || apic_is_disabled) +/* 'maxcpus=0' 'nosmp' 'nolapic' 'disableapic' */ +if (!setup_max_cpus || apic_is_disabled) possible =1 ;/* 'possible_cpus=N' */
@@ -443,7 +443,7 @@ void __init topology_apply_cmdline_limits_early(void)static __init bool restrict_to_up (void ) { -if (!smp_found_config || ioapic_is_disabled) +if (!smp_found_config)return true;/* * XEN PV is special as it does not advertise the local APIC