linux-stable/arch
Rhythm Mahajan 9e1f4df32e x86/cpu: Fix LFENCE serialization check in init_amd()
The commit: 3f23527982 ("x86/cpu: Restore AMD's DE_CFG MSR after resume")
which was backported from the upstream commit: 2632daebaf renamed the
MSR_F10H_DECFG_LFENCE_SERIALIZE macro to MSR_AMD64_DE_CFG_LFENCE_SERIALIZE.
The fix for 4.14 and 4.9 changed MSR_F10H_DECFG_LFENCE_SERIALIZE to
MSR_AMD64_DE_CFG_LFENCE_SERIALIZE_BIT in the init_amd() function, but should
have used MSR_AMD64_DE_CFG_LFENCE_SERIALIZE.  This causes a discrepency in the
LFENCE serialization check in the init_amd() function.

This causes a ~16% sysbench memory regression, when running:
    sysbench --test=memory run

Fixes: 3f23527982 ("x86/cpu: Restore AMD's DE_CFG MSR after resume")
Signed-off-by: Rhythm Mahajan <rhythm.m.mahajan@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-17 08:30:38 +01:00
..
alpha alpha: fix R_ALPHA_LITERAL reloc for large modules 2023-03-17 08:30:38 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:50:54 +09:00
arm ARM: dts: spear320-hmi: correct STMPE GPIO compatible 2023-03-11 16:26:53 +01:00
arm64 arm64: dts: amlogic: meson-gxl: add missing unit address to eth-phy-mux node name 2023-03-11 16:26:34 +01:00
blackfin
c6x
cris
frv
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:46:34 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:46:34 +01:00
ia64 ia64: make IA64_MCA_RECOVERY bool instead of tristate 2023-02-06 07:46:34 +01:00
m32r
m68k m68k: Check syscall_trace_enter() return code 2023-03-11 16:26:42 +01:00
metag
microblaze exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
mips MIPS: Fix a compilation issue 2023-03-17 08:30:38 +01:00
mn10300
nios2 exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
parisc parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case 2023-02-22 12:46:03 +01:00
powerpc powerpc/pseries/lparcfg: add missing RTAS retry status handling 2023-03-11 16:26:40 +01:00
s390 s390/setup: init jump labels before command line parsing 2023-03-11 16:26:55 +01:00
score
sh exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
sparc exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
tile
um UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-10-26 13:16:56 +02:00
unicore32 linux/const.h: move UL() macro to include/linux/const.h 2022-11-10 15:47:24 +01:00
x86 x86/cpu: Fix LFENCE serialization check in init_amd() 2023-03-17 08:30:38 +01:00
xtensa exit: Add and use make_task_dead. 2023-02-06 07:46:33 +01:00
.gitignore
Kconfig