Re: [PATCH v2 1/2] cpu/SMT: Enable SMT only if a core is online

From: Thomas Gleixner
Date: Wed Jul 31 2024 - 06:27:56 EST


On Wed, Jul 31 2024 at 08:31, Nysal Jan K. A. wrote:
> If the user has decided to offline certain cores, enabling SMT should
> not online CPUs in those cores. This patch fixes the issue and changes
> the behaviour as described, by introducing an arch specific function
> topology_is_core_online(). It is currently implemented only for PowerPC.
>
> Fixes: 73c58e7e1412 ("powerpc: Add HOTPLUG_SMT support")
> Reported-by: Tyrel Datwyler <tyreld@xxxxxxxxxxxxx>
> Closes: https://groups.google.com/g/powerpc-utils-devel/c/wrwVzAAnRlI/m/5KJSoqP4BAAJ
> Signed-off-by: Nysal Jan K.A <nysal@xxxxxxxxxxxxx>

Assuming this goes through the PPC tree:

Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

Michael: If I should route it through my tree, let me know.

Thanks,

tglx