Re: [PATCH RESEND] x86/cpu/topology: remove limit of CPUs due to noapic on x86_64

From: Thomas Gleixner
Date: Sun Dec 01 2024 - 08:49:42 EST


On Mon, Nov 25 2024 at 16:13, Fernando F. Mancera wrote:
> On 25/11/2024 09:37, Ingo Molnar wrote:
>> So what's the motivation? Arguably the x86-64 boot option behavior was
>> weird: a working local APIC is very much needed to have an SMP system.
>>
>
> Sorry if I am wrong here but I am not an expert on the matter. I
> believed that "noapic" disables I/O APIC which handles external
> interrupts while the local APICs are still enabled as they are managed
> by "nolapic". If that is the case, SMP should still be possible.
>
> If both I/O APIC and Local APICs are disabled then the kernel should
> fallback to a single CPU mode. That is the behavior that kernel has with
> my patch.
>
> The motivation is to fix multiple users with systems that requires
> "noapic" to work and after the rework their systems are using a single CPU.

Sorry, my bad. I messed up the "noapic" option handling.