]> 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)
commitfc5cc88d7dcf226b1270a39cecb777eeb4ca5efc
tree260b3fe5220a54a831f7bcf3d3dbf227897124e4
parenta20968a4500dced6de1873b6a196b14fb6234830
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: 40e993fbfb53 ("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