]> git.baikalelectronics.ru Git - kernel.git/commit
x86/split_lock: Bits in IA32_CORE_CAPABILITIES are not architectural
authorTony Luck <tony.luck@intel.com>
Thu, 16 Apr 2020 20:57:53 +0000 (13:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 18 Apr 2020 10:48:44 +0000 (12:48 +0200)
commite9980ba0ad8ef4688f9a95a8a996d9c2dcf7cf26
tree260b3fe5220a54a831f7bcf3d3dbf227897124e4
parent1cf20a651c98269fa920e8d8b92c216a3525e86c
x86/split_lock: Bits in IA32_CORE_CAPABILITIES are not architectural

The Intel Software Developers' Manual erroneously listed bit 5 of the
IA32_CORE_CAPABILITIES register as an architectural feature. It is not.

Features enumerated by IA32_CORE_CAPABILITIES are model specific and
implementation details may vary in different cpu models. Thus it is only
safe to trust features after checking the CPU model.

Icelake client and server models are known to implement the split lock
detect feature even though they don't enumerate IA32_CORE_CAPABILITIES

[ tglx: Use switch() for readability and massage comments ]

Fixes: 168110888c41 ("x86/split_lock: Enable split lock detection by kernel")
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200416205754.21177-3-tony.luck@intel.com
arch/x86/kernel/cpu/intel.c