linux-brain/arch/x86
Shirish S b5b43a3dba x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk
[ Upstream commit 30aa3d26ed ]

The MC4_MISC thresholding quirk needs to be applied during S5 -> S0 and
S3 -> S0 state transitions, which follow different code paths. Carve it
out into a separate function and call it mce_amd_feature_init() where
the two code paths of the state transitions converge.

 [ bp: massage commit message and the carved out function. ]

Signed-off-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/1547651417-23583-3-git-send-email-shirish.s@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-17 20:39:56 +01:00
..
boot x86, boot: Remove multiple copy of static function sanitize_boot_params() 2019-08-06 19:05:25 +02:00
configs x86/unwind: Rename unwinder config options to 'CONFIG_UNWINDER_*' 2017-12-25 14:26:13 +01:00
crypto crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2019-05-21 18:50:15 +02:00
entry x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations 2019-08-06 19:05:29 +02:00
events perf/x86/amd/ibs: Handle erratum #420 only on the affected CPU family (10h) 2019-11-12 19:18:41 +01:00
hyperv x86/hyperv: mark hyperv_init as __init function 2019-12-01 09:14:37 +01:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2019-05-31 06:47:31 -07:00
include kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack 2019-12-01 09:13:38 +01:00
kernel x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk 2019-12-17 20:39:56 +01:00
kvm KVM: x86: fix out-of-bounds write in KVM_GET_EMULATED_CPUID (CVE-2019-19332) 2019-12-17 20:38:58 +01:00
lib x86/asm: Fix MWAITX C-state hint value 2019-10-17 13:44:02 -07:00
math-emu x86: math-emu: Hide clang warnings for 16-bit overflow 2019-08-06 19:05:23 +02:00
mm x86/mm: Use WRITE_ONCE() when setting PTEs 2019-08-25 10:50:03 +02:00
net bpf: get rid of pure_initcall dependency to enable jits 2019-08-25 10:50:02 +02:00
oprofile x86/oprofile: Fix bogus GCC-8 warning in nmi_setup() 2018-02-28 10:19:41 +01:00
pci x86/PCI: Avoid AMD FCH XHCI USB PME# from D0 defect 2019-12-17 20:38:48 +01:00
platform efi/x86: Do not clean dummy variable in kexec path 2019-11-06 12:43:12 +01:00
power PM / hibernate: Check the success of generating md5 digest before hibernation 2019-11-24 08:23:02 +01:00
purgatory License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ras License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
realmode x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2019-04-05 22:31:39 +02:00
tools x86/insn: Fix awk regexp warnings 2019-12-01 09:14:21 +01:00
um um: Drop own definition of PTRACE_SYSEMU/_SINGLESTEP 2018-11-21 09:24:06 +01:00
video
xen kprobes/x86/xen: blacklist non-attachable xen interrupt functions 2019-12-05 15:37:26 +01:00
.gitignore
Kbuild Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-09-07 09:25:15 -07:00
Kconfig x86/olpc: Fix build error with CONFIG_MFD_CS5535=m 2019-11-24 08:23:16 +01:00
Kconfig.cpu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.debug x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit 2017-12-25 14:26:14 +01:00
Makefile x86/retpolines: Fix up backport of a9d57ef15c 2019-10-05 12:48:05 +02:00
Makefile_32.cpu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile.um License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00