]> asedeno.scripts.mit.edu Git - linux.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)
committerBorislav Petkov <bp@suse.de>
Wed, 16 Jan 2019 18:42:00 +0000 (19:42 +0100)
commit30aa3d26edb0f3d7992757287eec0ca588a5c259
treec13b32d620ced62b38cde7e3b2e8ae9853c311ce
parentc95b323dcd3598dd7ef5005d6723c1ba3b801093
x86/MCE/AMD: Carve out the MC4_MISC thresholding quirk

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
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c