]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/cpu.c
cpu/hotplug: Boot HT siblings at least once
authorThomas Gleixner <tglx@linutronix.de>
Fri, 29 Jun 2018 14:05:48 +0000 (16:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 2 Jul 2018 09:25:29 +0000 (11:25 +0200)
commit0cc3cd21657be04cb0559fe8063f2130493f92cf
treeca7ad7e935411e3c9142e9dedbe3f655be0f8cfb
parent506a66f374891ff08e064a058c446b336c5ac760
cpu/hotplug: Boot HT siblings at least once

Due to the way Machine Check Exceptions work on X86 hyperthreads it's
required to boot up _all_ logical cores at least once in order to set the
CR4.MCE bit.

So instead of ignoring the sibling threads right away, let them boot up
once so they can configure themselves. After they came out of the initial
boot stage check whether its a "secondary" sibling and cancel the operation
which puts the CPU back into offline state.

Reported-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Tony Luck <tony.luck@intel.com>
kernel/cpu.c