]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk
authorShirish S <Shirish.S@amd.com>
Wed, 16 Jan 2019 15:10:40 +0000 (15:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 05:38:37 +0000 (07:38 +0200)
commitb05237350b4acdcb762640d4f1f8b8b067c86aef
treef08d28ff36bff3193757ae83e2fd87ae508f0e7e
parente6b8b66f965e9ecc76662d7888c4fbc5df4976b7
x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk

commit 30aa3d26edb0f3d7992757287eec0ca588a5c259 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c